Critical Barrier Wait Issue in Linux Kernel's RAID10 Discard Handling

linux Updated 02 Oct 2025

Summary

18/04/2025
N/A
No i
Unrated
Not published

CVE-2025-40325: 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... Affects linux versions 6.1.106-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system operations. It supports a wide range of functionalities, including file systems, process management, and device drivers. The RAID10 (Redundant Array of Independent Disks) feature in the Linux kernel allows for data redundancy and performance improvement by combining mirroring and striping techniques. However, a recent vulnerability has been identified in the RAID10 discard handling process, which could lead to potential data integrity issues.

Vulnerability Detail

The vulnerability, identified as CVE-2025-40325, arises from the RAID10 handling of discard requests with the REQ_NOWAIT flag. Specifically, the function raid10_handle_discard fails to wait for a barrier before returning a discard bio that has the REQ_NOWAIT flag set. This oversight can lead to unexpected behavior in the system, as the discard request may not be processed correctly, potentially resulting in data loss or corruption. Additionally, unnecessary warning call traces are printed, which can clutter system logs and hinder quality engineers from effectively monitoring system health.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. However, users are advised to monitor their system logs and be cautious with discard operations until the patch is applied.

Conclusion

CVE-2025-40325 is a significant vulnerability in the Linux kernel's RAID10 discard handling that requires immediate attention. Users should update their systems to the latest patched version to ensure data integrity and system stability. Monitoring tools like Vulert can assist in identifying vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40325 is a vulnerability in the Linux kernel's RAID10 discard handling that can lead to data integrity issues.

If your system uses RAID10 and processes discard requests, this vulnerability could potentially result in data loss or corruption.

Yes, a patch is available in the latest versions of the Linux kernel. Users should update to the patched version to mitigate the risk.

While there are no specific workarounds, it is advisable to monitor system logs for any unusual behavior and avoid discard operations until the patch is applied.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback