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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-05-19T08:35:09.121Z
- Modified: 2026-06-17T07:35:42.960Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from d62c43a953ce02d54521ec06217d0c2ed6d489af before 0336995512cdab0c65e99e4cdd47c4606debe14e; from d62c43a953ce02d54521ec06217d0c2ed6d489af before 156c226cbbdcf5f3bce7b2408a33b59fab7fae2c; from d62c43a953ce02d54521ec06217d0c2ed6d489af before eabf131cba1db12005a68378305f13b9090a7a6b; from d62c43a953ce02d54521ec06217d0c2ed6d489af before 2295bd846765c766701e666ed2e4b35396be25e6; 6.1 (not affected: before 6.1; from 6.1.85 up to 6.1.*; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.1 before 6.1.85; from 6.2 before 6.6.26; from 6.7 before 6.8.5; 6.9

## References

- <https://git.kernel.org/stable/c/0336995512cdab0c65e99e4cdd47c4606debe14e> (patch)
- <https://git.kernel.org/stable/c/156c226cbbdcf5f3bce7b2408a33b59fab7fae2c> (patch)
- <https://git.kernel.org/stable/c/eabf131cba1db12005a68378305f13b9090a7a6b> (patch)
- <https://git.kernel.org/stable/c/2295bd846765c766701e666ed2e4b35396be25e6> (patch)

## Sources

- CVE List: [CVE-2024-35916](https://www.cve.org/CVERecord?id=CVE-2024-35916), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-35916](https://nvd.nist.gov/vuln/detail/CVE-2024-35916), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35916 · Whole record: https://cve.day/CVE-2024-35916.json · Rebuilt by cve.day 2026-11-25T22:58:40.602Z
