CVE-2026-99374: NFSv4/flexfiles: Use the full 64-bit stripe_unit
In the Linux kernel, the following vulnerability has been resolved:
NFSv4/flexfiles: Use the full 64-bit stripeunit
fflayoutalloclseg() decodes stripeunit as the 64-bit value the protocol defines and struct nfs4fflayoutsegment stores it as one, but both consumers narrow it back to 32 bits: nfs4fflayoutcalcdssid() divides with dodiv(), which casts the divisor, and fflayoutpgtest() copies it into a u32 first. A stripeunit that does not fit is silently truncated, so the client stripes on a unit the server did not specify -- or divides by zero, if the low 32 bits happen to be clear.
Divide by the full value, with div64u64() and div64u64rem().
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.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
Use the full 64-bit stripe_unit when dividing; use div64_u64() and div64_u64_rem() instead of narrowing it to 32 bits or using do_div().