CVE-2025-39697

MEDIUM

Linux Kernel - Race Condition in NFS Write Request Handling

Title source: llm
STIX 2.1

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().

Scores

CVSS v3 4.7
EPSS 0.0002
EPSS Percentile 4.2%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-362
Status published
Products (25)
debian/debian_linux 11.0
linux/Kernel 4.14.0 - 5.10.242linux
linux/Kernel 5.11.0 - 5.15.191linux
linux/Kernel 5.16.0 - 6.1.150linux
linux/Kernel 6.13.0 - 6.16.4linux
linux/Kernel 6.2.0 - 6.6.104linux
linux/Kernel 6.7.0 - 6.12.44linux
Linux/Linux < 4.14
Linux/Linux 4.14
Linux/Linux 5.10.242 - 5.10.*
... and 15 more
Published Sep 05, 2025
Tracked Since Feb 18, 2026