CVE-2026-99482: ASoC: amd: ps: fix snd_acp63_remove() teardown ordering
In the Linux kernel, the following vulnerability has been resolved:
ASoC: amd: ps: fix sndacp63remove() teardown ordering
The ACP IRQ handlers dereference the SoundWire, SoundWire DMA, and PDM child platform devices, but sndacp63remove() unregisters them while the interrupt is still held by devres, which frees it only after remove returns. An interrupt in this window is a use-after-free.
Mask the ACP interrupt sources and call devmfreeirq() before the first child device is unregistered. The masking goes through the new acphwops->disableinterrupts callback, keeping the remove path platform-agnostic. The interrupt line is shared, and acphwdeinit() clears the sources only after the children are gone, which would leave the line raised with no handler left to ack it. The window predates the tagged refactor, which only reshaped the dereferences.
devmfreeirq() waits for in-flight handlers, but not for work the hardirq has already queued: acp63irqhandler() schedules amdsdwirqthread on the SoundWire manager. Draining that work in the manager's remove path is a soundwire-side change and follows separately.
This issue was found by an in-house static analysis tool.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
In snd_acp63_remove(), mask ACP interrupt sources through acp_hw_ops->disable_interrupts and call devm_free_irq() before unregistering the first child platform device.