CVE-2026-139521: NFS: filelayout: calculate dense stripe width in 64 bits
In the Linux kernel, the following vulnerability has been resolved:
NFS: filelayout: calculate dense stripe width in 64 bits
filelayoutgetdenseoffset() calculates the stripe width from the stripe unit and count, where both values are provided by the server. Their product is stored on 32 bits, and can wrap to zero despite passing individual checks. For example, a 1 GiB stripe unit (0x40000000) and four stripes (4) cause the following divu64() to raise a divide error during the first read through the dense layout.
Update u32 to u64 and use div64u64() instead of divu64(). stripeunit is a u32 and stripecount is limited to 4096, so the product cannot overflow a u64.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
What conditions are required to trigger the failure?
A client must use an NFS file layout with dense striping, and the server must provide stripe unit and stripe count values whose 32-bit product wraps to zero. The failure occurs on the first read through that dense layout when the wrapped stripe width is used as a divisor.
Is this limited to a particular server-provided layout configuration?
Yes. The issue depends on a dense file layout whose server-supplied stripe unit and stripe count produce a 32-bit overflow; for example, a 1 GiB stripe unit and four stripes. The individual values can pass validation even though their product wraps.
What is the impact of a successful trigger?
The subsequent division can raise a divide error, causing a kernel failure during the read. The described condition is a zero stripe-width divisor created by integer wraparound.
How can the issue be addressed?
Apply the kernel fix that stores the dense stripe width in a 64-bit value and uses 64-bit division. With a 32-bit stripe unit and a stripe count limited to 4096, the product does not overflow a 64-bit value.