Lucene search

K
cvelistLinuxCVELIST:CVE-2024-35916
HistoryMay 19, 2024 - 8:35 a.m.

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

2024-05-1908:35:09
Linux
www.cve.org
10
linux kernel
vulnerability
memory allocation
mock_chain
dma-fence
linuxtesting.org
svace

AI Score

6.4

Confidence

Low

EPSS

0

Percentile

15.5%

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.

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"
      }
    ]
  }
]

AI Score

6.4

Confidence

Low

EPSS

0

Percentile

15.5%