CVE-2026-139521

NFS: filelayout: calculate dense stripe width in 64 bits

Published Nov 30, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

NFS: filelayout: calculate dense stripe width in 64 bits

filelayout_get_dense_offset() 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 div_u64() to raise a divide
error during the first read through the dense layout.

Update u32 to u64 and use div64_u64() instead of div_u64().
stripe_unit is a u32 and stripe_count is limited to 4096, so the
product cannot overflow a u64.

Analysis

AI-generated

Technical impact

The flaw lies in the NFS filelayout subsystem of the Linux kernel. When calculating a dense layout offset, the product of stripe unit and stripe count is written to a 32‑bit variable. If the product overflows to zero, the subsequent 64‑bit division routine raises a divide error, leading to a kernel panic. The vulnerability does not allow code execution but can cause a system crash, resulting in denial of service.

Affected Systems

All Linux kernels that compile the legacy implementation of filelayout_get_dense_offset are affected. This includes the default kernel packages used by most distributions until they are updated to the fixed version that stores the product in a 64‑bit variable and uses div64_u64(). Because no specific kernel release is listed, any kernel built with the unpatched code remains vulnerable.

Risk and Exploitability

The impact is moderate: a kernel crash causes a system-wide denial of service requiring a reboot. The CVSS score of 5.9 and an EPSS probability of less than 1% indicate a moderate severity and low exploitation likelihood, and the vulnerability is not listed in the CISA KEV catalog. Exploitation would require an attacker to manipulate an NFS server’s stripe parameters or to trigger a client read of a file laid out with large stripe unit or count values. The likely attack vector is remote via NFS, as the fault occurs when a client accesses a file that triggers the overflow.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the patch changing the 32‑bit calculation to 64‑bit and replacing div_u64() with div64_u64().
  • If an upgrade is not immediately possible, avoid using dense NFS layouts or limit stripe unit and count values so that their product remains below 2^32−1, preventing the overflow that causes the divide error.
  • If dense layouts must be used, configure the NFS server to enforce stripe unit and stripe count limits that keep the calculation within 32‑bit bounds, thereby eliminating the crash condition.

Generated by OpenCVE AI on December 2, 2026 at 15:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-190
Type Values Removed Values Added
Weaknesses CWE-369
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-190
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: NFS: filelayout: calculate dense stripe width in 64 bits filelayout_get_dense_offset() 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 div_u64() to raise a divide error during the first read through the dense layout. Update u32 to u64 and use div64_u64() instead of div_u64(). stripe_unit is a u32 and stripe_count is limited to 4096, so the product cannot overflow a u64.
Title NFS: filelayout: calculate dense stripe width in 64 bits
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM