Skip to contentSkip to conversation

CVE-2026-99680: xfs: mark the inode preallocated for pNFS write layouts past EOF

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

xfs: mark the inode preallocated for pNFS write layouts past EOF

xfs_fs_map_blocks() marks the inode XFS_DIFLAG_PREALLOC only when it allocates blocks for a write layout. A write layout past EOF can also hand out allocated blocks, such as speculative preallocation. blockgc then frees them under the layout, and another file may get them.

Mark the inode whenever a write mapping ends past EOF.

The Linux kernel CVE team has assigned CVE-2026-99680 to this issue.

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

	Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 6.12.118 with commit fea6d9e15570eeb41c9e01f22f45a8498d9fe200
	Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 6.18.64 with commit ff7646096b6ed2ad415258bfbfb07fa6204698dc
	Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 7.3.5 with commit 2748b9277ff5e35e222b6c4d46a8285e3cf6051d
	Issue introduced in 4.0 with commit 527851124d10f9c50b1c578e0a56fcd49922422d and fixed in 7.4-rc2 with commit 8b8e265991556d99b6d721697f148975a7c68767

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-2026-99680

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/xfs/xfs_pnfs.c

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/fea6d9e15570eeb41c9e01f22f45a8498d9fe200
	https://git.kernel.org/stable/c/ff7646096b6ed2ad415258bfbfb07fa6204698dc
	https://git.kernel.org/stable/c/2748b9277ff5e35e222b6c4d46a8285e3cf6051d
	https://git.kernel.org/stable/c/8b8e265991556d99b6d721697f148975a7c68767