# CVE-2025-40325: md/raid10: wait barrier before returning discard request with REQ\_NOWAIT

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 14, 2026-11-26)
- **Published:** 2025-04-18T07:01:41.619Z
- **Modified:** 2026-11-05T22:17:36.417Z

## Who should check

- Anyone running Linux \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 9fd04328b37b6b911c2556f6dd2625a58c3c30db; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 29c742ff222dd39335b927a6909c23b8752a053c; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 31ff67982c5fa39c0093b9d9f429fef91c2494b7; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 31d3156efe909b53ba174861a3da880c688f5edc; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 3db4404435397a345431b45f57876a3df133f3b4; 39db562b3fedb93978a7e42dd216b306740959f8; \>= 5.15.111, \< 5.16
- Anyone running Linux 5.17

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

## Affected and fixed versions

- Linux: \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 9fd04328b37b6b911c2556f6dd2625a58c3c30db; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 29c742ff222dd39335b927a6909c23b8752a053c; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 31ff67982c5fa39c0093b9d9f429fef91c2494b7; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 31d3156efe909b53ba174861a3da880c688f5edc; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 3db4404435397a345431b45f57876a3df133f3b4; 39db562b3fedb93978a7e42dd216b306740959f8; \>= 5.15.111, \< 5.16 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 5.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40325. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40325.md
Affected: Linux >= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, < 9fd04328b37b6b911c2556f6dd2625a58c3c30db; >= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, < 29c742ff222dd39335b927a6909c23b8752a053c; >= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, < 31ff67982c5fa39c0093b9d9f429fef91c2494b7; >= c9aa889b035fca4598ae985…
Fixed in: Linux 9fd04328b37b6b911c2556f6dd2625a58c3c30db, Linux 29c742ff222dd39335b927a6909c23b8752a053c, Linux 31ff67982c5fa39c0093b9d9f429fef91c2494b7, Linux 31d3156efe909b53ba174861a3da880c688f5edc, Linux 3db4404435397a345431b45f57876a3df133f3b4, Linux 5.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40325 being exploited?

There is no confirmed exploitation: CVE-2025-40325 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40325?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40325?

Linux \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 9fd04328b37b6b911c2556f6dd2625a58c3c30db; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 29c742ff222dd39335b927a6909c23b8752a053c; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 31ff67982c5fa39c0093b9d9f429fef91c2494b7; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 31d3156efe909b53ba174861a3da880c688f5edc; \>= c9aa889b035fca4598ae985a0f0c76ebbb547ad2, \< 3db4404435397a345431b45f57876a3df133f3b4; 39db562b3fedb93978a7e42dd216b306740959f8; \>= 5.15.111, \< 5.16; Linux 5.17.

### Is there a fix for CVE-2025-40325?

Yes. Fixed in Linux 9fd04328b37b6b911c2556f6dd2625a58c3c30db, Linux 29c742ff222dd39335b927a6909c23b8752a053c, Linux 31ff67982c5fa39c0093b9d9f429fef91c2494b7, Linux 31d3156efe909b53ba174861a3da880c688f5edc, Linux 3db4404435397a345431b45f57876a3df133f3b4, Linux 5.16. Upgrade Linux to 5.16 or later.

### How do I check if I'm affected by CVE-2025-40325?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/31d3156efe909b53ba174861a3da880c688f5edc>
- patch: <https://git.kernel.org/stable/c/3db4404435397a345431b45f57876a3df133f3b4>
- other: <https://git.kernel.org/stable/c/9fd04328b37b6b911c2556f6dd2625a58c3c30db>
- other: <https://git.kernel.org/stable/c/29c742ff222dd39335b927a6909c23b8752a053c>
- other: <https://git.kernel.org/stable/c/31ff67982c5fa39c0093b9d9f429fef91c2494b7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40325>

HTML: <https://flawdb.com/CVE-2025-40325> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40325>
