CVE-2026-99677: xfs: clamp the pNFS layout range to the maximum file size
In the Linux kernel, the following vulnerability has been resolved:
xfs: clamp the pNFS layout range to the maximum file size
xfsfsmapblocks() 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 NFS4UINT64MAX, wraps "offset > limit - length" and stays unclamped. With NFS4UINT64MAX, 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 xfsiomapwritedirect() at one extent".
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch xfs: clamp the pNFS layout range to the maximum file size
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel with XFS and pNFS layout handling are relevant. The vulnerable path is associated with processing layout ranges for XFS files.
What request values are needed to trigger the flawed range handling?
A layout offset of 2^63 or greater can be interpreted as negative and bypass the existing offset check. A length above the permitted limit, including NFS4_UINT64_MAX, can cause arithmetic wraparound and avoid clamping.
What is the observable impact of the NFS4_UINT64_MAX length case?
With NFS4_UINT64_MAX, the kernel can build a read layout from an uninitialized mapping.
What should be done if patching cannot be applied immediately?
The provided information does not specify a workaround. Reducing exposure to untrusted pNFS layout requests may be appropriate, but no supported mitigation is stated in the available data.