# CVE-2026-142943

- Bağlantı: https://www.allsafe.com.tr/cve-2026-142943/
- Yayımlanma: 2026-12-03T07:18:35+03:00
- Yazar: Postmaster

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

ASoC: amd: acp3x-es83xx: Keep an owned codec device reference

acpi_get_first_physical_node() returns a borrowed device pointer. The
 private data
allocation failure path in acp3x_es83xx_probe() puts that pointer despite not owning
a reference. The successful path also saves the borrowed pointer for later card 
operations.

This was reproduced on current mainline with failslab restricted to the
 real static
callback. The rejected devm_kzalloc() returned -ENOMEM, and normal codec platform-
device unregister then produced a KASAN slab-use-after-free in device_del(), with
allocation in acpi_create_platform_device() and release in acpi_unbind_one().

Use acpi_bus_get_primary_device() to acquire the reference while the
 physical-node
lock is held. After allocating private data, register a devres put action before
publishing the pointer. This balances action allocation and later probe failures,
keeps the saved pointer alive during card use, and drops the reference after ASoC
card unregister during successful teardown. The existing OOM put now correctly balances
the owned lookup.

The same filtered KASAN guest with this change reached the same -ENOMEM and
 unregister
path without KASAN, WARNING, Oops or panic. The test directly invoked the production
callback and did not emulate a complete ACP/ASoC card or physical Huawei hardware.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-142943)
