{"id":"CVE-2026-99374","state":"PUBLISHED","title":"NFSv4/flexfiles: Use the full 64-bit stripe_unit","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4/flexfiles: Use the full 64-bit stripe_unit\n\nff_layout_alloc_lseg() decodes stripe_unit as the 64-bit value the\nprotocol defines and struct nfs4_ff_layout_segment stores it as one, but\nboth consumers narrow it back to 32 bits: nfs4_ff_layout_calc_dss_id()\ndivides with do_div(), which casts the divisor, and ff_layout_pg_test()\ncopies it into a u32 first.  A stripe_unit that does not fit is silently\ntruncated, so the client stripes on a unit the server did not specify --\nor divides by zero, if the low 32 bits happen to be clear.\n\nDivide by the full value, with div64_u64() and div64_u64_rem().","publishedAt":"2026-11-19T14:23:10.418Z","updatedAt":"2026-11-19T14:38:07.794Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"20b1d75fb840cc27490028a5b13914e22375f273","status":"affected","lessThan":"43b9e0c39eed665be2267329b5c041ba2b2a997c","versionType":"git"},{"version":"20b1d75fb840cc27490028a5b13914e22375f273","status":"affected","lessThan":"2e58e4f9a8dcab90d384d5888ffec38c8718ea05","versionType":"git"},{"version":"20b1d75fb840cc27490028a5b13914e22375f273","status":"affected","lessThan":"0cc1191538b1523dfe944eedc799fdd146c05fbf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/flexfilelayout/flexfilelayout.c","fs/nfs/flexfilelayout/flexfilelayout.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","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/flexfilelayout/flexfilelayout.c","fs/nfs/flexfilelayout/flexfilelayout.h"]}],"references":["https://git.kernel.org/stable/c/43b9e0c39eed665be2267329b5c041ba2b2a997c","https://git.kernel.org/stable/c/2e58e4f9a8dcab90d384d5888ffec38c8718ea05","https://git.kernel.org/stable/c/0cc1191538b1523dfe944eedc799fdd146c05fbf"],"weaknesses":[],"ingestedAt":"2026-11-19T14:42:06.048Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99374.json","commit":"ac44738435f10e6dbe2f4dd504cf13737f9cf963","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99374","state":"PUBLISHED","datePublished":"2026-11-19T14:23:10.418Z","dateUpdated":"2026-11-19T14:38:07.794Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.411Z"},"containers":{"cna":{"title":"NFSv4/flexfiles: Use the full 64-bit stripe_unit","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSv4/flexfiles: Use the full 64-bit stripe_unit\n\nff_layout_alloc_lseg() decodes stripe_unit as the 64-bit value the\nprotocol defines and struct nfs4_ff_layout_segment stores it as one, but\nboth consumers narrow it back to 32 bits: nfs4_ff_layout_calc_dss_id()\ndivides with do_div(), which casts the divisor, and ff_layout_pg_test()\ncopies it into a u32 first.  A stripe_unit that does not fit is silently\ntruncated, so the client stripes on a unit the server did not specify --\nor divides by zero, if the low 32 bits happen to be clear.\n\nDivide by the full value, with div64_u64() and div64_u64_rem()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"20b1d75fb840cc27490028a5b13914e22375f273","status":"affected","lessThan":"43b9e0c39eed665be2267329b5c041ba2b2a997c","versionType":"git"},{"version":"20b1d75fb840cc27490028a5b13914e22375f273","status":"affected","lessThan":"2e58e4f9a8dcab90d384d5888ffec38c8718ea05","versionType":"git"},{"version":"20b1d75fb840cc27490028a5b13914e22375f273","status":"affected","lessThan":"0cc1191538b1523dfe944eedc799fdd146c05fbf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/flexfilelayout/flexfilelayout.c","fs/nfs/flexfilelayout/flexfilelayout.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","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/flexfilelayout/flexfilelayout.c","fs/nfs/flexfilelayout/flexfilelayout.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/43b9e0c39eed665be2267329b5c041ba2b2a997c"},{"url":"https://git.kernel.org/stable/c/2e58e4f9a8dcab90d384d5888ffec38c8718ea05"},{"url":"https://git.kernel.org/stable/c/0cc1191538b1523dfe944eedc799fdd146c05fbf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:38:07.794Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}