Skip to contentSkip to conversation

CVE-2026-99482: ASoC: amd: ps: fix snd_acp63_remove() teardown ordering

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ASoC: amd: ps: fix snd_acp63_remove() teardown ordering

The ACP IRQ handlers dereference the SoundWire, SoundWire DMA, and PDM child platform devices, but snd_acp63_remove() 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 devm_free_irq() before the first child device is unregistered. The masking goes through the new acp_hw_ops->disable_interrupts callback, keeping the remove path platform-agnostic. The interrupt line is shared, and acp_hw_deinit() 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.

devm_free_irq() waits for in-flight handlers, but not for work the hardirq has already queued: acp63_irq_handler() schedules amd_sdw_irq_thread 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.

The Linux kernel CVE team has assigned CVE-2026-99482 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.9 with commit eaf825037d6df89811d43391be920bf6ad731463 and fixed in 6.12.117 with commit be66694b2f818d7b14eb5022382b15df837459d8
	Issue introduced in 6.9 with commit eaf825037d6df89811d43391be920bf6ad731463 and fixed in 6.18.61 with commit 2ff55599528d7712c46956c038665a4d5a5160e5
	Issue introduced in 6.9 with commit eaf825037d6df89811d43391be920bf6ad731463 and fixed in 7.3.2 with commit 01ab732291bb05cc60952cbb365f4523b747ccfb
	Issue introduced in 6.9 with commit eaf825037d6df89811d43391be920bf6ad731463 and fixed in 7.4-rc1 with commit c53791d673ed4da6759d276078627ec4d0c6536b

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99482

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	sound/soc/amd/ps/acp63.h
	sound/soc/amd/ps/pci-ps.c
	sound/soc/amd/ps/ps-common.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/be66694b2f818d7b14eb5022382b15df837459d8
	https://git.kernel.org/stable/c/2ff55599528d7712c46956c038665a4d5a5160e5
	https://git.kernel.org/stable/c/01ab732291bb05cc60952cbb365f4523b747ccfb
	https://git.kernel.org/stable/c/c53791d673ed4da6759d276078627ec4d0c6536b