Lucene search

K
cvelistLinuxCVELIST:CVE-2024-41037
HistoryJul 29, 2024 - 2:31 p.m.

CVE-2024-41037 ASoC: SOF: Intel: hda: fix null deref on system suspend entry

2024-07-2914:31:51
Linux
www.cve.org
7
linux kernel
vulnerability
sof
intel
hda
null deref
system suspend
asoc

EPSS

0

Percentile

5.0%

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

ASoC: SOF: Intel: hda: fix null deref on system suspend entry

When system enters suspend with an active stream, SOF core
calls hw_params_upon_resume(). On Intel platforms with HDA DMA used
to manage the link DMA, this leads to call chain of

hda_dsp_set_hw_params_upon_resume()
-> hda_dsp_dais_suspend()
-> hda_dai_suspend()
-> hda_ipc4_post_trigger()

A bug is hit in hda_dai_suspend() as hda_link_dma_cleanup() is run first,
which clears hext_stream->link_substream, and then hda_ipc4_post_trigger()
is called with a NULL snd_pcm_substream pointer.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "sound/soc/sof/intel/hda-dai.c"
    ],
    "versions": [
      {
        "version": "2b009fa0823c",
        "lessThan": "8246bbf818ed",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2b009fa0823c",
        "lessThan": "993af0f2d9f2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2b009fa0823c",
        "lessThan": "9065693dcc13",
        "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/sof/intel/hda-dai.c"
    ],
    "versions": [
      {
        "version": "6.4",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.4",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.41",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.10",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]