CVE-2026-139676: ASoC: SOF: amd: fix amd_sof_acp_remove() teardown ordering
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: amd: fix amdsofacpremove() teardown ordering
Call freeirq() before amdsofsdwexit() in amdsofacpremove(). amdsofsdwexit() sets adata->sdw to NULL; if an IRQ fires between that point and the subsequent freeirq(), acpirqhandler() may dereference the now-NULL pdev[] pointer, causing a use-after-free.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In amd_sof_acp_remove(), call free_irq() before amd_sof_sdw_exit().
Event History
Frequently Asked Questions
When can this issue be triggered?
The issue requires the AMD SOF ACP device removal path to run and an interrupt to fire after amd_sof_sdw_exit() clears the SoundWire state but before the IRQ is freed. The IRQ handler can then dereference a NULL pdev[] pointer.
Which systems are exposed?
Systems using the Linux kernel AMD SOF ACP audio driver and exercising its device teardown or removal path are relevant. The provided information does not identify specific kernel versions, hardware models, or default configurations.
What change addresses the race condition?
The fix changes teardown ordering in amd_sof_acp_remove() so free_irq() is called before amd_sof_sdw_exit(). This prevents the interrupt handler from running after the SoundWire state has been cleared.