{"id":"CVE-2024-35916","state":"PUBLISHED","title":"dma-buf: Fix NULL pointer dereference in sanitycheck()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: Fix NULL pointer dereference in sanitycheck()\n\nIf due to a memory allocation failure mock_chain() returns NULL, it is\npassed to dma_fence_enable_sw_signaling() resulting in NULL pointer\ndereference there.\n\nCall dma_fence_enable_sw_signaling() only if mock_chain() succeeds.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","publishedAt":"2024-05-19T08:35:09.121Z","updatedAt":"2026-05-11T20:13:43.348Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"0336995512cdab0c65e99e4cdd47c4606debe14e","versionType":"git"},{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"156c226cbbdcf5f3bce7b2408a33b59fab7fae2c","versionType":"git"},{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"eabf131cba1db12005a68378305f13b9090a7a6b","versionType":"git"},{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"2295bd846765c766701e666ed2e4b35396be25e6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/st-dma-fence-chain.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.85","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.26","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.5","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/st-dma-fence-chain.c"]}],"references":["https://git.kernel.org/stable/c/0336995512cdab0c65e99e4cdd47c4606debe14e","https://git.kernel.org/stable/c/156c226cbbdcf5f3bce7b2408a33b59fab7fae2c","https://git.kernel.org/stable/c/eabf131cba1db12005a68378305f13b9090a7a6b","https://git.kernel.org/stable/c/2295bd846765c766701e666ed2e4b35396be25e6"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35916.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35916","state":"PUBLISHED","datePublished":"2024-05-19T08:35:09.121Z","dateUpdated":"2026-05-11T20:13:43.348Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T13:50:33.123Z"},"containers":{"cna":{"title":"dma-buf: Fix NULL pointer dereference in sanitycheck()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: Fix NULL pointer dereference in sanitycheck()\n\nIf due to a memory allocation failure mock_chain() returns NULL, it is\npassed to dma_fence_enable_sw_signaling() resulting in NULL pointer\ndereference there.\n\nCall dma_fence_enable_sw_signaling() only if mock_chain() succeeds.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"0336995512cdab0c65e99e4cdd47c4606debe14e","versionType":"git"},{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"156c226cbbdcf5f3bce7b2408a33b59fab7fae2c","versionType":"git"},{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"eabf131cba1db12005a68378305f13b9090a7a6b","versionType":"git"},{"version":"d62c43a953ce02d54521ec06217d0c2ed6d489af","status":"affected","lessThan":"2295bd846765c766701e666ed2e4b35396be25e6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/st-dma-fence-chain.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.85","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.26","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.5","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/st-dma-fence-chain.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0336995512cdab0c65e99e4cdd47c4606debe14e"},{"url":"https://git.kernel.org/stable/c/156c226cbbdcf5f3bce7b2408a33b59fab7fae2c"},{"url":"https://git.kernel.org/stable/c/eabf131cba1db12005a68378305f13b9090a7a6b"},{"url":"https://git.kernel.org/stable/c/2295bd846765c766701e666ed2e4b35396be25e6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:13:43.348Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.1.85"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.6.26"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.8.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-05-21T15:09:05.507584Z","id":"CVE-2024-35916","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-07T19:40:17.933Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/0336995512cdab0c65e99e4cdd47c4606debe14e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/156c226cbbdcf5f3bce7b2408a33b59fab7fae2c","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eabf131cba1db12005a68378305f13b9090a7a6b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2295bd846765c766701e666ed2e4b35396be25e6","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:21:49.046Z"}}]}}}