{"api_version":"1","generated_at":"2026-11-30T20:00:27+00:00","cve":"CVE-2026-139679","urls":{"html":"https://cve.report/CVE-2026-139679","api":"https://cve.report/api/cve/CVE-2026-139679.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139679","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139679"},"summary":{"title":"md/raid5: reject a per-device size smaller than one chunk","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: reject a per-device size smaller than one chunk\n\nBoth raid5_run() and raid5_resize() align the per-device size down to a\nwhole multiple of the chunk size:\n\n\tmddev->dev_sectors &= ~(chunk_sectors - 1);\n\nNeither checks the result, so a size smaller than one chunk silently\nbecomes zero.\n\nIn raid5_run() that is harmless: the array size is derived from the same\nzero, so the disk just ends up with no capacity.\n\nIn raid5_resize() it leaves the array inconsistent -- mddev->dev_sectors\nbecomes zero, while mddev->array_sectors and the gendisk capacity keep the\nprevious. A later raid4/raid5 -> raid0 takeover copies the zero into every\nrdev->sectors (raid0_takeover_raid45()), so create_strip_zones() builds a\nstrip zone table whose zone_end is zero. Any read then passes\nbio_check_eod() against the stale capacity and hits the BUG() in\nfind_zone():\n\n kernel BUG at drivers/md/raid0.c:318!\n Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\n Call Trace:\n   raid0_make_request\n   md_handle_request\n   submit_bio_noacct_nocheck\n   block_read_full_folio\n   read_part_sector\n   bdev_disk_changed\n   bdev_open\n\nReject a size smaller than one chunk in both functions, so that a running\nraid4/raid5 array always has mddev->dev_sectors >= one chunk.\n\nThe check is done where the value takes effect, not where it is assigned.\nmddev->dev_sectors is written from several places, and none of them can\ntell whether the value is usable: the chunk size may still change later.\nraid5_run() and raid5_resize() are where every input is final, so one check\nin each covers them all.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:55","updated_at":"2026-11-30 14:19:55"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/45df58239521644da57fa99c264ed2f14e8f3f21","name":"https://git.kernel.org/stable/c/45df58239521644da57fa99c264ed2f14e8f3f21","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/58a851e4fa0921f0293568a7031ff6f9193ad167","name":"https://git.kernel.org/stable/c/58a851e4fa0921f0293568a7031ff6f9193ad167","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/370ca0760b18c64592a258bcb057ff0a2531aabf","name":"https://git.kernel.org/stable/c/370ca0760b18c64592a258bcb057ff0a2531aabf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ffee6e3374c17a75cb4574a3fd289272dc64a090","name":"https://git.kernel.org/stable/c/ffee6e3374c17a75cb4574a3fd289272dc64a090","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139679","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139679","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected eea136d69f9facb2d3807386bbac1e6b1161795f ffee6e3374c17a75cb4574a3fd289272dc64a090 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected eea136d69f9facb2d3807386bbac1e6b1161795f 58a851e4fa0921f0293568a7031ff6f9193ad167 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected eea136d69f9facb2d3807386bbac1e6b1161795f 45df58239521644da57fa99c264ed2f14e8f3f21 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected eea136d69f9facb2d3807386bbac1e6b1161795f 370ca0760b18c64592a258bcb057ff0a2531aabf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/md/raid5.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ffee6e3374c17a75cb4574a3fd289272dc64a090","status":"affected","version":"eea136d69f9facb2d3807386bbac1e6b1161795f","versionType":"git"},{"lessThan":"58a851e4fa0921f0293568a7031ff6f9193ad167","status":"affected","version":"eea136d69f9facb2d3807386bbac1e6b1161795f","versionType":"git"},{"lessThan":"45df58239521644da57fa99c264ed2f14e8f3f21","status":"affected","version":"eea136d69f9facb2d3807386bbac1e6b1161795f","versionType":"git"},{"lessThan":"370ca0760b18c64592a258bcb057ff0a2531aabf","status":"affected","version":"eea136d69f9facb2d3807386bbac1e6b1161795f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/md/raid5.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.11"},{"lessThan":"3.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: reject a per-device size smaller than one chunk\n\nBoth raid5_run() and raid5_resize() align the per-device size down to a\nwhole multiple of the chunk size:\n\n\tmddev->dev_sectors &= ~(chunk_sectors - 1);\n\nNeither checks the result, so a size smaller than one chunk silently\nbecomes zero.\n\nIn raid5_run() that is harmless: the array size is derived from the same\nzero, so the disk just ends up with no capacity.\n\nIn raid5_resize() it leaves the array inconsistent -- mddev->dev_sectors\nbecomes zero, while mddev->array_sectors and the gendisk capacity keep the\nprevious. A later raid4/raid5 -> raid0 takeover copies the zero into every\nrdev->sectors (raid0_takeover_raid45()), so create_strip_zones() builds a\nstrip zone table whose zone_end is zero. Any read then passes\nbio_check_eod() against the stale capacity and hits the BUG() in\nfind_zone():\n\n kernel BUG at drivers/md/raid0.c:318!\n Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\n Call Trace:\n   raid0_make_request\n   md_handle_request\n   submit_bio_noacct_nocheck\n   block_read_full_folio\n   read_part_sector\n   bdev_disk_changed\n   bdev_open\n\nReject a size smaller than one chunk in both functions, so that a running\nraid4/raid5 array always has mddev->dev_sectors >= one chunk.\n\nThe check is done where the value takes effect, not where it is assigned.\nmddev->dev_sectors is written from several places, and none of them can\ntell whether the value is usable: the chunk size may still change later.\nraid5_run() and raid5_resize() are where every input is final, so one check\nin each covers them all."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:58.736Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ffee6e3374c17a75cb4574a3fd289272dc64a090"},{"url":"https://git.kernel.org/stable/c/58a851e4fa0921f0293568a7031ff6f9193ad167"},{"url":"https://git.kernel.org/stable/c/45df58239521644da57fa99c264ed2f14e8f3f21"},{"url":"https://git.kernel.org/stable/c/370ca0760b18c64592a258bcb057ff0a2531aabf"}],"title":"md/raid5: reject a per-device size smaller than one chunk","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139679","datePublished":"2026-11-30T13:36:58.736Z","dateReserved":"2026-11-30T13:22:15.947Z","dateUpdated":"2026-11-30T13:36:58.736Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:55","lastModifiedDate":"2026-11-30 14:19:55","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139679","Ordinal":"1","Title":"md/raid5: reject a per-device size smaller than one chunk","CVE":"CVE-2026-139679","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139679","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: reject a per-device size smaller than one chunk\n\nBoth raid5_run() and raid5_resize() align the per-device size down to a\nwhole multiple of the chunk size:\n\n\tmddev->dev_sectors &= ~(chunk_sectors - 1);\n\nNeither checks the result, so a size smaller than one chunk silently\nbecomes zero.\n\nIn raid5_run() that is harmless: the array size is derived from the same\nzero, so the disk just ends up with no capacity.\n\nIn raid5_resize() it leaves the array inconsistent -- mddev->dev_sectors\nbecomes zero, while mddev->array_sectors and the gendisk capacity keep the\nprevious. A later raid4/raid5 -> raid0 takeover copies the zero into every\nrdev->sectors (raid0_takeover_raid45()), so create_strip_zones() builds a\nstrip zone table whose zone_end is zero. Any read then passes\nbio_check_eod() against the stale capacity and hits the BUG() in\nfind_zone():\n\n kernel BUG at drivers/md/raid0.c:318!\n Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI\n Call Trace:\n   raid0_make_request\n   md_handle_request\n   submit_bio_noacct_nocheck\n   block_read_full_folio\n   read_part_sector\n   bdev_disk_changed\n   bdev_open\n\nReject a size smaller than one chunk in both functions, so that a running\nraid4/raid5 array always has mddev->dev_sectors >= one chunk.\n\nThe check is done where the value takes effect, not where it is assigned.\nmddev->dev_sectors is written from several places, and none of them can\ntell whether the value is usable: the chunk size may still change later.\nraid5_run() and raid5_resize() are where every input is final, so one check\nin each covers them all.","Type":"Description","Title":"md/raid5: reject a per-device size smaller than one chunk"}]}}}