Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2024-35916
HistoryMay 19, 2024 - 9:15 a.m.

CVE-2024-35916

2024-05-1909:15:12
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
30
linux kernel
vulnerability
dma-buf
null pointer
dereference
fix
memory allocation
mock_chain
dma_fence_enable_sw_signaling
linux verification center
svace
nvd

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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

dma-buf: Fix NULL pointer dereference in sanitycheck()

If due to a memory allocation failure mock_chain() returns NULL, it is
passed to dma_fence_enable_sw_signaling() resulting in NULL pointer
dereference there.

Call dma_fence_enable_sw_signaling() only if mock_chain() succeeds.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Affected configurations

Vulners
Node
linuxlinux_kernelRange6.16.1.85
OR
linuxlinux_kernelRange6.2.06.6.26
OR
linuxlinux_kernelRange6.7.06.8.5
OR
linuxlinux_kernelRange6.9.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/dma-buf/st-dma-fence-chain.c"
    ],
    "versions": [
      {
        "version": "d62c43a953ce",
        "lessThan": "0336995512cd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d62c43a953ce",
        "lessThan": "156c226cbbdc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d62c43a953ce",
        "lessThan": "eabf131cba1d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "d62c43a953ce",
        "lessThan": "2295bd846765",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/dma-buf/st-dma-fence-chain.c"
    ],
    "versions": [
      {
        "version": "6.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.1",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.85",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.26",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.5",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%