CVE-2024-43818 ASoC: amd: Adjust error handling in case of absent codec device
A null pointer dereference in the Linux kernel AMD ASoC driver can cause a system crash when a codec device is absent.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-43818?
CVE-2024-43818 is a medium-severity vulnerability in Linux kernel, published on 17 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ASoC: amd: Adjust error handling in case of absent codec device
acpi_get_first_physical_node() can return NULL in several cases (no such device, ACPI table error, reference count drop to 0, etc). Existing check just emit error message, but doesn't perform return. Then this NULL pointer is passed to devm_acpi_dev_add_driver_gpios() where it is dereferenced.
Adjust this error handling by adding error code return.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Weakness: CWE-476
Which versions are affected by CVE-2024-43818?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-43818?
Apply the vendor's patch.
Is CVE-2024-43818 being exploited?
There is no known exploitation of CVE-2024-43818 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-43818, DEBIAN-CVE-2024-43818, GHSA-cc94-3465-jjhp, UBUNTU-CVE-2024-43818.