Lucene search

K
cvelistLinuxCVELIST:CVE-2024-43818
HistoryAug 17, 2024 - 9:21 a.m.

CVE-2024-43818 ASoC: amd: Adjust error handling in case of absent codec device

2024-08-1709:21:40
Linux
www.cve.org
2
linux kernel
asoc
vulnerability
resolved
error handling
absent codec device

EPSS

0

Percentile

5.1%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "sound/soc/amd/acp-es8336.c"
    ],
    "versions": [
      {
        "version": "02527c3f2300",
        "lessThan": "1ba9856cf7f6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "02527c3f2300",
        "lessThan": "99b642dac24f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "02527c3f2300",
        "lessThan": "b1173d64edd2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "02527c3f2300",
        "lessThan": "5080808c3339",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "sound/soc/amd/acp-es8336.c"
    ],
    "versions": [
      {
        "version": "6.0",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.0",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.103",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.44",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.3",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.1%