CVE-2025-38095 dma-buf: insert memory barrier before updating num_fences

High 7.8 Published Updated

A missing memory barrier in the Linux kernel's dma-buf subsystem can cause a null pointer dereference, leading to a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38095?

CVE-2025-38095 is a high-severity vulnerability in Debian Debian Linux, published on 3 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

dma-buf: insert memory barrier before updating num_fences

smp_store_mb() inserts memory barrier after storing operation. It is different with what the comment is originally aiming so Null pointer dereference can be happened if memory update is reordered.

Weakness: CWE-476

Which versions are affected by CVE-2025-38095?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38095?

Apply the vendor's patch.

Is CVE-2025-38095 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-38095, DEBIAN-CVE-2025-38095, GHSA-q59c-3x85-f94g, ROOT-OS-DEBIAN-11-CVE-2025-38095, ROOT-OS-DEBIAN-12-CVE-2025-38095, ROOT-OS-UBUNTU-2204-CVE-2025-38095 and 2 more.

Is CVE-2025-38095 in your software?

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

Check your SBOMs for free