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

Medium 5.3 Published Updated

A NULL pointer dereference in the Linux kernel's dma-buf subsystem can cause a system crash if a memory allocation fails during sanity checks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35916?

CVE-2024-35916 is a medium-severity vulnerability in Linux kernel, published on 19 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2024-35916?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-35916?

Apply the vendor's patch.

Is CVE-2024-35916 being exploited?

There is no known exploitation of CVE-2024-35916 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-35916, DEBIAN-CVE-2024-35916, GHSA-jfx8-wc49-mg5c, UBUNTU-CVE-2024-35916.

Is CVE-2024-35916 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free