CVE-2026-142946: ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()
In the Linux kernel, the following vulnerability has been resolved:
ASoC: amd: acp-es8336: Switch to use acpibusgetprimarydevice()
Replace acpigetfirstphysicalnode() that is slated for removal with acpibusgetprimarydevice() that takes a reference to the device it is about to return.
This addresses a potential use-after-free that may occur if the device returned by acpigetfirstphysicalnode() is removed right after dropping its ACPI companion's physicalnodelock in that function.
It also fixes a device reference counting issue that may lead to a premature device release if gpiodgetoptional() fails in stes8336lateprobe().
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 the Linux kernel driver acp-es8336, replace acpi_get_first_physical_node() with acpi_bus_get_primary_device() to take a reference to the device being returned.
Event History
Frequently Asked Questions
Which systems are likely exposed to this issue?
The affected code is in the Linux kernel's ASoC AMD ACP ES8336 driver path. Exposure is therefore limited to systems that use this driver and reach its late-probe path.
What condition can trigger the use-after-free?
The race can occur if the device returned by acpi_get_first_physical_node() is removed after that function drops the ACPI companion's physical_node_lock. The issue also involves a reference-counting error when gpiod_get_optional() fails during st_es8336_late_probe().
How can I determine whether my kernel includes the fix?
Check whether your kernel source or downstream patch set includes the change replacing acpi_get_first_physical_node() with acpi_bus_get_primary_device() in the ACP ES8336 driver. The listed stable commit references identify fixes for this issue.