ASoC: amd: Adjust error handling in case of absent codec device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s AMD ASoC error handling can pass a NULL device pointer to a function that dereferences it when an ACPI physical node is absent. This can cause a null pointer dereference; the input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected AMD ASoC code; affected versions are not specified.