CVE-2026-99677: Linux kernel XFS builds a pNFS read layout from an uninitialised mapping when a client asks for a layout past the end of the file

ByLinuxtastic

December 1, 2026 #CVE, #Linux Kernel

With pNFS, an NFS client can ask the server for a layout, a map of where a file’s blocks live on shared storage, and read or write those blocks directly. On an XFS export the server answers from xfs_fs_map_blocks(), and the kernel CNA record says it “lets two bad layout ranges through. An offset of 2^63 or more is negative and passes ‘offset > limit’. A length above the limit, such as NFS4_UINT64_MAX, wraps ‘offset > limit – length’ and stays unclamped. With NFS4_UINT64_MAX, a read layout is built from an uninitialized mapping.” Red Hat and SUSE rate it Important at 7.1, Ubuntu High at 7.2 under CVSS 4.0. If a host exports XFS over NFS with pNFS (pnfs in its export options) to clients it does not fully trust, upgrade it to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64 or 7.3.5 and reboot.

CVE-2026-99677 at a glance.

ComponentLinux kernel, XFS: xfs_fs_map_blocks() in fs/xfs/xfs_pnfs.c, the export operation the in-kernel NFS server calls to answer a pNFS block-layout LAYOUTGET
Affected versionsmainline 4.0 up to 7.4-rc2 (from commit 52785112, “xfs: implement pNFS export operations”); 5.10.x below 5.10.275, 5.15.x below 5.15.226, 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.118, 6.18.x below 6.18.64, 7.3.x below 7.3.5. Kernels before 4.0 have no XFS pNFS export
Fixed inmainline 7.4-rc2 (commit 29f3c1be, the one Debian and Ubuntu cite) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5; eight fix commits in the record. The fix rejects a negative offset or one at the limit and clamps the length with min_t(); two lines added, three removed. The record says it depends on “xfs: cap the block count of xfs_iomap_write_direct() at one extent”
SeverityRed Hat Important, CVSS 3.1 7.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H), score marked draft; SUSE Important, 7.1 under both CVSS 3.1 and 4.0; Ubuntu High, CVSS 4.0 7.2 (VC:H); the kernel CNA gives no score and NVD is Received with no score, CWE or CPE. The vendors agree on everything but how much the uninitialised mapping discloses
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00177 (8th percentile) on 1 December 2026
Who is exposedNFS servers on an affected kernel that export an XFS filesystem with the pnfs export option, which enables the block layout, to clients that can issue LAYOUTGET; the attacker is an NFS client of that export (PR:L). Red Hat’s statement: “Exploitation requires the host to operate as an NFS server”, and “Systems that do not export XFS shares via pNFS or do not run NFS server services are unaffected by this flaw”. NFS clients, servers without the pnfs option, and exports of other filesystems are not in the path
PublishedCVE record 20 November 2026 (kernel CNA, updated 23 November with the stable backports); this page built 1 December 2026, last updated 1 December 2026

What it is

pNFS block layout lets a client bypass the NFS server’s data path: it asks for a layout covering an offset and length of a file, the server maps that range to physical blocks on storage both can see, and the client reads or writes the blocks itself. On XFS the mapping is done by xfs_fs_map_blocks(), which first clamps the request to the maximum file size so it never maps past the end, then looks up the extents and, for a write, allocates blocks. The clamp used two comparisons, and the record names the input that defeats each. offset is a signed 64-bit value; a client that sends 2^63 or more makes it negative, and a negative number is not greater than the limit, so the first test passes. length is unsigned; a client that sends NFS4_UINT64_MAX, the protocol’s “to the end of the file”, makes limit - length wrap, the second test passes, and the length is never clamped.

With an unclamped length the function asks for an extent mapping over a range that runs past everything the file has, and the record’s consequence is that “a read layout is built from an uninitialized mapping”: the structure returned to the client describes blocks that were never filled in, which is why Red Hat and Ubuntu score confidentiality, and the server-side handling of that mapping is what gives the availability impact. The fix on GitHub, by Daejun Park and committed by Carlos Maiolino, reviewed by Darrick J. Wong, Pankaj Raghav and Christoph Hellwig, replaces the first test with offset < 0 || offset >= limit, rejecting both the negative offset and one exactly at the limit, and replaces the clamp with length = min_t(u64, length, limit - offset), which cannot wrap because the offset is now known to be below the limit.

The record adds a dependency: the fix “needs ‘xfs: cap the block count of xfs_iomap_write_direct() at one extent'”, a separate commit that bounds the allocation side, so the stable backports carry both. The Fixes: tag is the 2015 commit that gave XFS its pNFS export operations, which is how the range reaches back to 4.0. Three weeks earlier the same file produced CVE-2026-99679, on the LAYOUTCOMMIT side; this one is LAYOUTGET. git.kernel.org and lore.kernel.org refused our reader, so the backports are described from the record and the mainline commit from its GitHub mirror.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The affected code dates from 4.0, so every supported kernel is in range by version; on 1 December Debian’s DSA-6652-1 for trixie and openSUSE Tumbleweed had the fix out.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianFixed in trixie-security (6.12.118-1, DSA-6652-1), forky and sid (7.3.6-1); trixie (6.12.117-1) and bookworm (6.1.192-3) vulnerabletrixie 6.12.118-1 (DSA-6652-1); unstable 7.3.5-1; nothing for bookworm on 1 December 2026
UbuntuHigh, CVSS 4.0 7.2; linux needed in 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS, 18.04 LTS and 16.04, pending in 26.10 (7.3.0-12.13); 14.04 not affected; every cloud, realtime, raspi, nvidia and FIPS kernel vulnerable; no USNnothing released on 1 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.1 (bug 2577579, “XFS: information disclosure via improper pNFS layout range validation”); RHEL 7, 8, 9 and 10 affected, RHEL 6 not affected; OpenShift CoreOS images affected; no errata on 1 Decembernot yet
openSUSE/SLEimportant, 7.1 under 3.1 and 4.0, state Pending, bugs 1291575 and 1291576; released for openSUSE Tumbleweed; affected on every other listed product from SLES 12 SP5 to 16.1, Micro, Leap 16.x and the LTSS linesTumbleweed 7.3.6-2.1; nothing for SLE on 1 December 2026
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.118 / 6.18.64 / 7.3.5 or later

How to check

Three questions, in order: which kernel is running, does this host serve NFS at all, and does any export carry the pnfs option on an XFS filesystem. The third is the precondition the record and Red Hat both name; an NFS server without it never calls xfs_fs_map_blocks().

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. is the kernel NFS server running, and with NFSv4.1 or later (pNFS needs it)
systemctl is-active nfs-server 2>/dev/null
cat /proc/fs/nfsd/versions 2>/dev/null
lsmod | grep -E '^(nfsd|blocklayoutdriver)'

# 3. the precondition: an XFS export with the pnfs option, and whether the block layout is in use
exportfs -v 2>/dev/null | grep -E 'pnfs'
grep -nE '\bpnfs\b' /etc/exports /etc/exports.d/* 2>/dev/null
for m in $(exportfs 2>/dev/null | awk '{print $1}' | sort -u); do findmnt -no FSTYPE "$m" 2>/dev/null | sed "s|^|$m: |"; done
grep -E 'layout' /proc/net/rpc/nfsd 2>/dev/null

A kernel at or above the fixed stable version for its series is done. A host with no nfsd is not serving and not reachable by this bug, whatever it mounts. An NFS server whose exports have no pnfs option never offers a block layout and never reaches the mapping call, so it is in range by version and not by configuration. An XFS export with pnfs is the record’s case, and every client that can mount it is a candidate attacker; the layout counters in /proc/net/rpc/nfsd show whether clients actually use pNFS, which decides how disruptive dropping the option would be. There is no log line for a bad layout request; a hostile one looks like an ordinary LAYOUTGET.

How to fix it

Install the fixed kernel and reboot the server; XFS and the NFS server are in the running kernel. Debian trixie had DSA-6652-1 out on 1 December and Tumbleweed had the fix; Ubuntu, Red Hat and SUSE’s enterprise kernels were pending.

# Debian trixie (DSA-6652-1) / forky / sid
apt update && apt install linux-image-amd64 && systemctl reboot       # or linux-image-arm64
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf upgrade kernel && systemctl reboot
zypper patch && systemctl reboot
uname -r
# Until then, where clients can live without the block layout: drop pnfs from the XFS exports and re-export
sed -i -E 's/,?\bpnfs\b//' /etc/exports && exportfs -ra && exportfs -v | grep -c pnfs
# clients fall back to reading through the server; a layout they already hold is returned on the next recall

Removing pnfs is a real mitigation here, because the export option is the only way into xfs_fs_map_blocks(), and the cost is performance, not correctness: clients read through the server instead of directly from storage. What not to do: do not disable NFSv4.1 and 4.2 on the server to the same end, which removes sessions and delegations for every client to close a path one option controls. And do not conclude from “information disclosure” in Red Hat’s title that the exposure is a few bytes; the layout describes blocks on storage the client can read directly, which is why the fix clamps rather than filters.

Sources

  • CVE-2026-99677 at CVE.org — the kernel CNA record (20 November 2026, updated 23 November): the commit message with the two bad ranges, the “uninitialized mapping” sentence and the dependency on the iomap_write_direct cap, the git and version ranges, fs/xfs/xfs_pnfs.c
  • Fix commits on git.kernel.org: 29f3c1be (mainline, 7.4-rc2) and the backports 7d1a420f, bddce9ea, 26658a10, d892672c, df8632f3, 8e0cea93, e8c7a13a; git.kernel.org refuses automated readers, so the mainline commit was read on GitHub: Daejun Park, committed by Carlos Maiolino, reviewed by Darrick J. Wong, Pankaj Raghav and Christoph Hellwig, the Fixes: 52785112 tag, the offset < 0 || offset >= limit test and the min_t() clamp
  • NVD entry — Received on 20 November 2026; no NVD score, CWE or CPE on 1 December
  • Distribution trackers: Debian (trixie 6.12.118-1 fixed by DSA-6652-1, bookworm vulnerable) · Ubuntu (High, 7.2; needed in every LTS, 26.10 pending) · Red Hat (Important 7.1, RHEL 7–10 affected, no errata; bug 2577579) · SUSE (important 7.1, Tumbleweed 7.3.6-2.1; bugs 1291575, 1291576)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00177 (percentile 0.076) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.