# CVE-2025-39697: NFS: Fix a race when updating an existing write

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-09-05T17:21:03.178Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 0ff42a32784e0f2cb46a46da8e9f473538c13e1b; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< f230d40147cc37eb3aef4d50e2e2c06ea73d9a77; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< c32e3c71aaa1c1ba05da88605e2ddd493c58794f; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 181feb41f0b268e6288bf9a7b984624d7fe2031d; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 92278ae36935a54e65fef9f8ea8efe7e80481ace; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 202a3432d21ac060629a760fff3b0a39859da3ea; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 76d2e3890fb169168c73f2e4f8375c7cc24a765e
- Anyone running Linux 4.14

## Description

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

NFS: Fix a race when updating an existing write

After nfs\_lock\_and\_join\_requests() tests for whether the request is
still attached to the mapping, nothing prevents a call to
nfs\_inode\_remove\_request() from succeeding until we actually lock the
page group.
The reason is that whoever called nfs\_inode\_remove\_request() doesn't
necessarily have a lock on the page group head.

So in order to avoid races, let's take the page group lock earlier in
nfs\_lock\_and\_join\_requests(), and hold it across the removal of the
request in nfs\_inode\_remove\_request().

## Affected and fixed versions

- Linux: \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 0ff42a32784e0f2cb46a46da8e9f473538c13e1b; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< f230d40147cc37eb3aef4d50e2e2c06ea73d9a77; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< c32e3c71aaa1c1ba05da88605e2ddd493c58794f; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 181feb41f0b268e6288bf9a7b984624d7fe2031d; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 92278ae36935a54e65fef9f8ea8efe7e80481ace; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 202a3432d21ac060629a760fff3b0a39859da3ea; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 76d2e3890fb169168c73f2e4f8375c7cc24a765e (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 76d2e3890fb169168c73f2e4f8375c7cc24a765e 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-39697. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39697.md
Affected: Linux >= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, < 0ff42a32784e0f2cb46a46da8e9f473538c13e1b; >= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, < f230d40147cc37eb3aef4d50e2e2c06ea73d9a77; >= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, < c32e3c71aaa1c1ba05da88605e2ddd493c58794f; >= bd37d6fce184836bd5e7cd9…
Fixed in: Linux 0ff42a32784e0f2cb46a46da8e9f473538c13e1b, Linux 181feb41f0b268e6288bf9a7b984624d7fe2031d, Linux 92278ae36935a54e65fef9f8ea8efe7e80481ace, Linux 202a3432d21ac060629a760fff3b0a39859da3ea, Linux 76d2e3890fb169168c73f2e4f8375c7cc24a765e

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-39697 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 0ff42a32784e0f2cb46a46da8e9f473538c13e1b; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< f230d40147cc37eb3aef4d50e2e2c06ea73d9a77; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< c32e3c71aaa1c1ba05da88605e2ddd493c58794f; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 181feb41f0b268e6288bf9a7b984624d7fe2031d; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 92278ae36935a54e65fef9f8ea8efe7e80481ace; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 202a3432d21ac060629a760fff3b0a39859da3ea; \>= bd37d6fce184836bd5e7cd90ce40116a4fadaf2a, \< 76d2e3890fb169168c73f2e4f8375c7cc24a765e; Linux 4.14.

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

Yes. Fixed in Linux 0ff42a32784e0f2cb46a46da8e9f473538c13e1b, Linux 181feb41f0b268e6288bf9a7b984624d7fe2031d, Linux 92278ae36935a54e65fef9f8ea8efe7e80481ace, Linux 202a3432d21ac060629a760fff3b0a39859da3ea, Linux 76d2e3890fb169168c73f2e4f8375c7cc24a765e. Upgrade Linux to 76d2e3890fb169168c73f2e4f8375c7cc24a765e or later.

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

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/0ff42a32784e0f2cb46a46da8e9f473538c13e1b>
- patch: <https://git.kernel.org/stable/c/f230d40147cc37eb3aef4d50e2e2c06ea73d9a77>
- patch: <https://git.kernel.org/stable/c/c32e3c71aaa1c1ba05da88605e2ddd493c58794f>
- patch: <https://git.kernel.org/stable/c/181feb41f0b268e6288bf9a7b984624d7fe2031d>
- patch: <https://git.kernel.org/stable/c/92278ae36935a54e65fef9f8ea8efe7e80481ace>
- patch: <https://git.kernel.org/stable/c/202a3432d21ac060629a760fff3b0a39859da3ea>
- patch: <https://git.kernel.org/stable/c/76d2e3890fb169168c73f2e4f8375c7cc24a765e>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

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

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