Bug 2393481 (CVE-2025-39697) - CVE-2025-39697 kernel: NFS: Fix a race when updating an existing write
Summary: CVE-2025-39697 kernel: NFS: Fix a race when updating an existing write
Keywords:
Status: NEW
Alias: CVE-2025-39697
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-05 18:01 UTC by OSIDB Bzimport
Modified: 2025-09-10 13:27 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-05 18:01:19 UTC
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().

Comment 1 Praise Ogwuche 2025-09-05 21:52:58 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025090548-CVE-2025-39697-5284@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.