CVE-2024-43818

ASoC: amd: Adjust error handling in case of absent codec device

State
Published
Severity
Not scored
Published
Aug 17, 2024
Updated
May 11, 2026
Reserved
Aug 17, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 02527c3f2300100a25524c8c020d98c7957e485e to before 1ba9856cf7f6492b47c1edf853137f320d583db5Affected
  • 02527c3f2300100a25524c8c020d98c7957e485e to before 99b642dac24f6d09ba3ebf1d690be8aefff86164Affected
  • 02527c3f2300100a25524c8c020d98c7957e485e to before b1173d64edd276c957b6d09e1f971c85b38f1519Affected
  • 02527c3f2300100a25524c8c020d98c7957e485e to before 5080808c3339de2220c602ab7c7fa23dc6c1a5a3Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.103 through 6.1.*Not affected
  • 6.6.44 through 6.6.*Not affected
  • 6.10.3 through 6.10.*Not affected
  • 6.11 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.