CVE-2026-142944: ASoC: amd: acp-es8336: Use an owned codec device reference

Published Dec 3, 2026
·
Updated

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

6 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.0.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  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

Dec 3, 2026
CVE Published
via MITRE·03:26 AM
Data Sourced
via MITRE·03:26 AM
Description
Data Sourced
via OSV·03:26 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

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().

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203