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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-20T05:50:24.903Z
- **Modified:** 2026-11-23T08:18:08.487Z

## Who should check

- Anyone running Linux \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< bddce9ea41ffab37e71b7a668eceed515a3c4b3d; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 26658a10a18cd59f1f270e4fe3b30165a187f8e3; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< d892672cb91a831de7e4059bf9a15f4ce56333ab; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< df8632f36be4693677c18966319ae546b4341061; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 8e0cea93da8755cfebe9a0ea7e2b37e68d59118d; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< e8c7a13a7b63542753ab3c6c55b142b09d207c78; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 29f3c1be4e554c9dbc66e13333034e0947477cb6
- Anyone running Linux 4.0

## 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".

## Affected and fixed versions

- Linux: \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< bddce9ea41ffab37e71b7a668eceed515a3c4b3d; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 26658a10a18cd59f1f270e4fe3b30165a187f8e3; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< d892672cb91a831de7e4059bf9a15f4ce56333ab; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< df8632f36be4693677c18966319ae546b4341061; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 8e0cea93da8755cfebe9a0ea7e2b37e68d59118d; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< e8c7a13a7b63542753ab3c6c55b142b09d207c78; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 29f3c1be4e554c9dbc66e13333034e0947477cb6 (cvelist)
- Linux: 4.0 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 29f3c1be4e554c9dbc66e13333034e0947477cb6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99677. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99677.md
Affected: Linux >= 527851124d10f9c50b1c578e0a56fcd49922422d, < 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4; >= 527851124d10f9c50b1c578e0a56fcd49922422d, < bddce9ea41ffab37e71b7a668eceed515a3c4b3d; >= 527851124d10f9c50b1c578e0a56fcd49922422d, < 26658a10a18cd59f1f270e4fe3b30165a187f8e3; >= 527851124d10f9c50b1c578…
Fixed in: Linux 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4, Linux 26658a10a18cd59f1f270e4fe3b30165a187f8e3, Linux 8e0cea93da8755cfebe9a0ea7e2b37e68d59118d, Linux 29f3c1be4e554c9dbc66e13333034e0947477cb6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99677 being exploited?

There is no confirmed exploitation: CVE-2026-99677 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99677?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99677?

Linux \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< bddce9ea41ffab37e71b7a668eceed515a3c4b3d; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 26658a10a18cd59f1f270e4fe3b30165a187f8e3; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< d892672cb91a831de7e4059bf9a15f4ce56333ab; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< df8632f36be4693677c18966319ae546b4341061; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 8e0cea93da8755cfebe9a0ea7e2b37e68d59118d; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< e8c7a13a7b63542753ab3c6c55b142b09d207c78; \>= 527851124d10f9c50b1c578e0a56fcd49922422d, \< 29f3c1be4e554c9dbc66e13333034e0947477cb6; Linux 4.0.

### Is there a fix for CVE-2026-99677?

Yes. Fixed in Linux 7d1a420f9cec55eb76310cb4d4c5fbd76358d4c4, Linux 26658a10a18cd59f1f270e4fe3b30165a187f8e3, Linux 8e0cea93da8755cfebe9a0ea7e2b37e68d59118d, Linux 29f3c1be4e554c9dbc66e13333034e0947477cb6. Upgrade Linux to 29f3c1be4e554c9dbc66e13333034e0947477cb6 or later.

### How do I check if I'm affected by CVE-2026-99677?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99677>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99677> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99677>
