CVE-2024-35916
Assigner: Linux
Published: 2024-05-19T08:35:09.121Z
State: PUBLISHED
descriptions: value: 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: product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
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
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
title: dma-buf: Fix NULL pointer dereference in sanitycheck()
x_generator: engine: bippy-d175d3acf727