{"id":"CVE-2026-142943","summary":"ASoC: amd: acp3x-es83xx: Keep an owned codec device reference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: amd: acp3x-es83xx: Keep an owned codec device reference\n\nacpi_get_first_physical_node() returns a borrowed device pointer. The\nprivate data allocation failure path in acp3x_es83xx_probe() puts that\npointer despite not owning a reference. The successful path also saves the\nborrowed pointer for later card operations.\n\nThis was reproduced on current mainline with failslab restricted to the\nreal static callback. The rejected devm_kzalloc() returned -ENOMEM, and\nnormal codec platform-device unregister then produced a KASAN\nslab-use-after-free in device_del(), with allocation in\nacpi_create_platform_device() and release in acpi_unbind_one().\n\nUse acpi_bus_get_primary_device() to acquire the reference while the\nphysical-node lock is held. After allocating private data, register a\ndevres put action before publishing the pointer. This balances action\nallocation and later probe failures, keeps the saved pointer alive during\ncard use, and drops the reference after ASoC card unregister during\nsuccessful teardown. The existing OOM put now correctly balances the owned\nlookup.\n\nThe same filtered KASAN guest with this change reached the same -ENOMEM and\nunregister path without KASAN, WARNING, Oops or panic. The test directly\ninvoked the production callback and did not emulate a complete ACP/ASoC\ncard or physical Huawei hardware.","modified":"2026-12-03T05:01:13.694119445Z","published":"2026-12-03T03:26:12.041Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142943.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/095025078dc3a1b4f0fcdc8b8d9dcb4d192a2a14"},{"type":"WEB","url":"https://git.kernel.org/stable/c/107a5028b008c937e6347b1682691c180579beb3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60263bba81e08d7b4c9d7d8f10699d0fec0cfec5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cba4fbc02480f6ab797b45119bb1a05012bbe80e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142943.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142943"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"54fcd9dd44b2c82a0262e29b288c2d0b36c6bba5"},{"fixed":"107a5028b008c937e6347b1682691c180579beb3"},{"fixed":"60263bba81e08d7b4c9d7d8f10699d0fec0cfec5"},{"fixed":"cba4fbc02480f6ab797b45119bb1a05012bbe80e"},{"fixed":"095025078dc3a1b4f0fcdc8b8d9dcb4d192a2a14"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142943.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142943.json"}}],"schema_version":"1.9.2"}