{"id":"CVE-2026-139521","state":"PUBLISHED","title":"NFS: filelayout: calculate dense stripe width in 64 bits","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: filelayout: calculate dense stripe width in 64 bits\n\nfilelayout_get_dense_offset() calculates the stripe width from the\nstripe unit and count, where both values are provided by the server.\nTheir product is stored on 32 bits, and can wrap to zero despite\npassing individual checks. For example, a 1 GiB stripe unit (0x40000000)\nand four stripes (4) cause the following div_u64() to raise a divide\nerror during the first read through the dense layout.\n\nUpdate u32 to u64 and use div64_u64() instead of div_u64().\nstripe_unit is a u32 and stripe_count is limited to 4096, so the\nproduct cannot overflow a u64.","publishedAt":"2026-11-30T13:35:31.228Z","updatedAt":"2026-11-30T13:35:31.228Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"2023ecd92fc3c594a6677fd72be8c1a843b67781","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"23f2d1abde4d905edfaecc85fa03a117d5c74719","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"6c00e4a99060a04132e3dd26a8aaf52b332b6cdf","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"f73e551d4023f1018669a879ab365153b497a375","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"3823b7bf79a9955a9e1c66b856e455e46df2c83f","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"f816bfe5cf8ffbc4953b2050207053ea8a3125a6","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"4e33aa616a4d15372302dc71069383aa81d92ba8","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"9ba13ef0e3ad033d3ddbaeb740b12d135a88363d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayout.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.39","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayout.c"]}],"references":["https://git.kernel.org/stable/c/2023ecd92fc3c594a6677fd72be8c1a843b67781","https://git.kernel.org/stable/c/23f2d1abde4d905edfaecc85fa03a117d5c74719","https://git.kernel.org/stable/c/6c00e4a99060a04132e3dd26a8aaf52b332b6cdf","https://git.kernel.org/stable/c/f73e551d4023f1018669a879ab365153b497a375","https://git.kernel.org/stable/c/3823b7bf79a9955a9e1c66b856e455e46df2c83f","https://git.kernel.org/stable/c/f816bfe5cf8ffbc4953b2050207053ea8a3125a6","https://git.kernel.org/stable/c/4e33aa616a4d15372302dc71069383aa81d92ba8","https://git.kernel.org/stable/c/9ba13ef0e3ad033d3ddbaeb740b12d135a88363d"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139521.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139521","state":"PUBLISHED","datePublished":"2026-11-30T13:35:31.228Z","dateUpdated":"2026-11-30T13:35:31.228Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.938Z"},"containers":{"cna":{"title":"NFS: filelayout: calculate dense stripe width in 64 bits","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: filelayout: calculate dense stripe width in 64 bits\n\nfilelayout_get_dense_offset() calculates the stripe width from the\nstripe unit and count, where both values are provided by the server.\nTheir product is stored on 32 bits, and can wrap to zero despite\npassing individual checks. For example, a 1 GiB stripe unit (0x40000000)\nand four stripes (4) cause the following div_u64() to raise a divide\nerror during the first read through the dense layout.\n\nUpdate u32 to u64 and use div64_u64() instead of div_u64().\nstripe_unit is a u32 and stripe_count is limited to 4096, so the\nproduct cannot overflow a u64."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"2023ecd92fc3c594a6677fd72be8c1a843b67781","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"23f2d1abde4d905edfaecc85fa03a117d5c74719","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"6c00e4a99060a04132e3dd26a8aaf52b332b6cdf","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"f73e551d4023f1018669a879ab365153b497a375","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"3823b7bf79a9955a9e1c66b856e455e46df2c83f","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"f816bfe5cf8ffbc4953b2050207053ea8a3125a6","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"4e33aa616a4d15372302dc71069383aa81d92ba8","versionType":"git"},{"version":"cfe7f4120f8b1b9465c333d1e42efd4669b1799f","status":"affected","lessThan":"9ba13ef0e3ad033d3ddbaeb740b12d135a88363d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayout.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.39","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/filelayout/filelayout.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2023ecd92fc3c594a6677fd72be8c1a843b67781"},{"url":"https://git.kernel.org/stable/c/23f2d1abde4d905edfaecc85fa03a117d5c74719"},{"url":"https://git.kernel.org/stable/c/6c00e4a99060a04132e3dd26a8aaf52b332b6cdf"},{"url":"https://git.kernel.org/stable/c/f73e551d4023f1018669a879ab365153b497a375"},{"url":"https://git.kernel.org/stable/c/3823b7bf79a9955a9e1c66b856e455e46df2c83f"},{"url":"https://git.kernel.org/stable/c/f816bfe5cf8ffbc4953b2050207053ea8a3125a6"},{"url":"https://git.kernel.org/stable/c/4e33aa616a4d15372302dc71069383aa81d92ba8"},{"url":"https://git.kernel.org/stable/c/9ba13ef0e3ad033d3ddbaeb740b12d135a88363d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:31.228Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}