Critical Barrier Wait Issue in Linux Kernel's RAID10 Discard Handling
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.