lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025090548-CVE-2025-39697-5284@gregkh>
Date: Fri,  5 Sep 2025 19:21:10 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-39697: NFS: Fix a race when updating an existing write

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

The Linux kernel CVE team has assigned CVE-2025-39697 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.14 with commit bd37d6fce184836bd5e7cd90ce40116a4fadaf2a and fixed in 6.12.44 with commit 92278ae36935a54e65fef9f8ea8efe7e80481ace
	Issue introduced in 4.14 with commit bd37d6fce184836bd5e7cd90ce40116a4fadaf2a and fixed in 6.16.4 with commit 202a3432d21ac060629a760fff3b0a39859da3ea
	Issue introduced in 4.14 with commit bd37d6fce184836bd5e7cd90ce40116a4fadaf2a and fixed in 6.17-rc3 with commit 76d2e3890fb169168c73f2e4f8375c7cc24a765e

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-39697
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	fs/nfs/pagelist.c
	fs/nfs/write.c
	include/linux/nfs_page.h


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/92278ae36935a54e65fef9f8ea8efe7e80481ace
	https://git.kernel.org/stable/c/202a3432d21ac060629a760fff3b0a39859da3ea
	https://git.kernel.org/stable/c/76d2e3890fb169168c73f2e4f8375c7cc24a765e

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ