Lucene search

K
cvelistLinuxCVELIST:CVE-2024-35842
HistoryMay 17, 2024 - 2:27 p.m.

CVE-2024-35842 ASoC: mediatek: sof-common: Add NULL check for normal_link string

2024-05-1714:27:32
Linux
www.cve.org
linux kernel
vulnerability
cve-2024-35842
asoc
mediatek
sof-common
null check
normal_link
mt8188
drivers

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

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

ASoC: mediatek: sof-common: Add NULL check for normal_link string

It’s not granted that all entries of struct sof_conn_stream declare
a normal_link (a non-SOF, direct link) string, and this is the case
for SoCs that support only SOF paths (hence do not support both direct
and SOF usecases).

For example, in the case of MT8188 there is no normal_link string in
any of the sof_conn_stream entries and there will be more drivers
doing that in the future.

To avoid possible NULL pointer KPs, add a NULL check for normal_link.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "sound/soc/mediatek/common/mtk-dsp-sof-common.c"
    ],
    "versions": [
      {
        "version": "0caf1120c583",
        "lessThan": "cad471227a37",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0caf1120c583",
        "lessThan": "b1d3db6740d0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0caf1120c583",
        "lessThan": "cde6ca5872bf",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0caf1120c583",
        "lessThan": "e3b3ec967a7d",
        "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/mediatek/common/mtk-dsp-sof-common.c"
    ],
    "versions": [
      {
        "version": "6.0",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.0",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.75",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.14",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.2",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%