CVE-2026-142944: ASoC: amd: acp-es8336: Use an owned codec device reference
In the Linux kernel, the following vulnerability has been resolved:
ASoC: amd: acp-es8336: Use an owned codec device reference
acpigetfirstphysicalnode() returns a borrowed device pointer. If the pa-enable GPIO lookup fails, stes8336lateprobe() puts that pointer despite not owning a reference. A later physical-node teardown can then release the device while devicedel() is still using it.
This was reproduced on current mainline with the real static late-probe callback and normal platform-device unregister. The GPIO lookup returned -EPROBEDEFER and KASAN reported a slab-use-after-free in devicedel(), with the object freed by acpiunbindone().
Use acpibusgetprimarydevice(), which obtains a stable device reference under the physical-node lock, and release it at callback exit with scoped cleanup. Keep the reference callback-local because late probe can be retried; registering one devres action per attempt would accumulate references.
The same KASAN guest with this change reached the same -EPROBEDEFER and unregister path without KASAN, WARNING, Oops or panic. The test directly invoked the production callback and did not emulate a complete ASoC card or physical AMD hardware.
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.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
In st_es8336_late_probe(), use acpi_bus_get_primary_device() to obtain an owned device reference instead of the borrowed pointer from acpi_get_first_physical_node(), and release the reference at callback exit with scoped cleanup.
Event History
Frequently Asked Questions
What runtime condition triggers the use-after-free?
The issue occurs when the pa-enable GPIO lookup in the late-probe callback fails, including with -EPROBE_DEFER, and the physical node is subsequently torn down while platform-device unregister reaches device_del().
How can I identify this issue in testing?
A KASAN-enabled system may report a slab-use-after-free in device_del(), with the device object having been freed by acpi_unbind_one(). The reproducer used the production late-probe callback, a GPIO lookup returning -EPROBE_DEFER, and normal platform-device unregister.
What does the fix change?
The fix replaces a borrowed device pointer from acpi_get_first_physical_node() with a stable, owned reference obtained through acpi_bus_get_primary_device(). That reference is released when the callback exits, avoiding retained references across late-probe retries.