CVE-2024-35916

Source
https://cve.org/CVERecord?id=CVE-2024-35916
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35916.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35916
Downstream
Related
Published
2024-05-19T08:35:09.121Z
Modified
2026-03-13T07:55:24.796235Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
dma-buf: Fix NULL pointer dereference in sanitycheck()
Details

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 mockchain() returns NULL, it is passed to dmafenceenablesw_signaling() resulting in NULL pointer dereference there.

Call dmafenceenableswsignaling() only if mock_chain() succeeds.

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35916.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d62c43a953ce02d54521ec06217d0c2ed6d489af
Fixed
0336995512cdab0c65e99e4cdd47c4606debe14e
Fixed
156c226cbbdcf5f3bce7b2408a33b59fab7fae2c
Fixed
eabf131cba1db12005a68378305f13b9090a7a6b
Fixed
2295bd846765c766701e666ed2e4b35396be25e6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35916.json"