# CVE-2026-99677: xfs: clamp the pNFS layout range to the maximum file size

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:24.903Z
- Modified: 2026-11-23T08:18:08.487Z
- Assigned by: Linux

## Description

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

xfs: clamp the pNFS layout range to the maximum file size

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

Reject a negative offset and one at the limit, and clamp the length.
This needs "xfs: cap the block count of xfs_iomap_write_direct() at one
extent".

(As written by CVE List.)

## Affected

- Linux Linux: from 527851124d10f9c50b1c578e0a56fcd49922422d before 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4; from 527851124d10f9c50b1c578e0a56fcd49922422d before bddce9ea41ffab37e71b7a668eceed515a3c4b3d; from 527851124d10f9c50b1c578e0a56fcd49922422d before 26658a10a18cd59f1f270e4fe3b30165a187f8e3; from 527851124d10f9c50b1c578e0a56fcd49922422d before d892672cb91a831de7e4059bf9a15f4ce56333ab; from 527851124d10f9c50b1c578e0a56fcd49922422d before df8632f36be4693677c18966319ae546b4341061; from 527851124d10f9c50b1c578e0a56fcd49922422d before 8e0cea93da8755cfebe9a0ea7e2b37e68d59118d; from 527851124d10f9c50b1c578e0a56fcd49922422d before e8c7a13a7b63542753ab3c6c55b142b09d207c78; from 527851124d10f9c50b1c578e0a56fcd49922422d before 29f3c1be4e554c9dbc66e13333034e0947477cb6; 4.0 (not affected: before 4.0; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4>
- <https://git.kernel.org/stable/c/bddce9ea41ffab37e71b7a668eceed515a3c4b3d>
- <https://git.kernel.org/stable/c/26658a10a18cd59f1f270e4fe3b30165a187f8e3>
- <https://git.kernel.org/stable/c/d892672cb91a831de7e4059bf9a15f4ce56333ab>
- <https://git.kernel.org/stable/c/df8632f36be4693677c18966319ae546b4341061>
- <https://git.kernel.org/stable/c/8e0cea93da8755cfebe9a0ea7e2b37e68d59118d>
- <https://git.kernel.org/stable/c/e8c7a13a7b63542753ab3c6c55b142b09d207c78>
- <https://git.kernel.org/stable/c/29f3c1be4e554c9dbc66e13333034e0947477cb6>

## Sources

- CVE List: [CVE-2026-99677](https://www.cve.org/CVERecord?id=CVE-2026-99677), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99677](https://nvd.nist.gov/vuln/detail/CVE-2026-99677), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99677 · Whole record: https://cve.day/CVE-2026-99677.json · Rebuilt by cve.day 2026-11-25T22:59:52.304Z
