CVE-2025-39697: Linux Kernel NFS Write-Request Race Condition
- Vendors
- Debian ProjectLinux
CVE-2025-39697 is a race condition in the Linux kernel NFS client write path when updating an existing write request. After nfs_lock_and_join_requests() checks that a request remains attached to its mapping, nfs_inode_remove_request() can remove it before the page-group lock is acquired. This occurs because the removal caller does not necessarily hold the page-group-head lock. The resulting request-lifetime race can cause use-after-free and kernel crashes. The issue was introduced in Linux 4.14.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can crash the affected kernel, causing system-wide denial of service and interrupting workloads. Confidentiality compromise, attacker-controlled memory corruption, privilege escalation, and arbitrary code execution are not established. Attack-vector assessments differ: some classify exploitation as local, high complexity, and requiring low privileges, while Red Hat describes a remote denial-of-service scenario involving NFS write access.
Mitigation
If you can’t patch tonight, do this now.
Where NFS client functionality is unnecessary, prevent the nfs kernel module from loading. On systems that require NFS, restrict untrusted users and workloads from writing to NFS-mounted filesystems and minimize unnecessary NFS usage until the kernel is patched. Disabling NFS functionality may disrupt dependent applications.
Remediation
Patch, then assume compromise.
Upgrade to a supported kernel containing the fix and reboot into the updated kernel. Upstream fixed releases include Linux 6.12.44 and 6.16.4; the fix is also included in 6.17-rc3. Prefer the latest supported stable kernel or the distribution's applicable security update rather than cherry-picking individual commits. The fix acquires the page-group lock earlier in nfs_lock_and_join_requests() and holds it across request removal in nfs_inode_remove_request(). Distribution backports include RHEL 8.10 kernel 4.18.0-553.85.1.el8_10, RHEL 9.6 kernel 5.14.0-570.79.1.el9_6, and SLES/SLED 15 SP6 kernel-default 6.4.0-150600.23.78.1; use the update appropriate to the deployed product and support stream.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-39697 exploited in the wild?
- As of Oct 26, 2026, Mallory has no reports of CVE-2025-39697 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-39697?
- As of Oct 26, 2026, Mallory has found no public exploit for CVE-2025-39697.
- Is there a patch for CVE-2025-39697?
- Upgrade to a supported kernel containing the fix and reboot into the updated kernel. Upstream fixed releases include Linux 6.12.44 and 6.16.4; the fix is also included in 6.17-rc3.
- What products are affected by CVE-2025-39697?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2025-39697?
- CVE-2025-39697 has a CVSS v3.1 score of 4.7 (Medium) and an EPSS score of 0.21% (6th percentile) as of Oct 26, 2026.
Recent activity
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.