CVE-2025-40325 md/raid10: wait barrier before returning discard request with REQ_NOWAIT

Medium 5.5 Published Updated

A missing barrier wait in Linux kernel RAID10 discard handling can cause system instability or crashes when processing non-blocking discard requests.

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-40325?

CVE-2025-40325 is a medium-severity denial of service vulnerability in Linux kernel, published on 18 Apr 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:

md/raid10: wait barrier before returning discard request with REQ_NOWAIT

raid10_handle_discard should wait barrier before returning a discard bio which has REQ_NOWAIT. And there is no need to print warning calltrace if a discard bio has REQ_NOWAIT flag. Quality engineer usually checks dmesg and reports error if dmesg has warning/error calltrace.

Which versions are affected by CVE-2025-40325?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-40325?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-40325 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-62773, AZL-69731, BELL-CVE-2025-40325, DEBIAN-CVE-2025-40325, GHSA-vf7h-45fw-j88p, ROOT-OS-DEBIAN-12-CVE-2025-40325 and 4 more.

Is CVE-2025-40325 in your software?

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

Check your SBOMs for free