{"id":"CVE-2026-139681","summary":"md/raid5: reject raid4/5 arrays with too few disks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: reject raid4/5 arrays with too few disks\n\nraid4 and raid5 require at least two disks, while raid6 requires at least\nfour disks. setup_conf() only rejects raid6 arrays with fewer than four\ndisks. As a result, an invalid raid4 or raid5 array can be assembled with\nno data disks and later reach raid5_set_limits().\n\nReject such arrays before the r5conf is created. This prevents the invalid\ngeometry from reaching queue limit setup, where roundup_pow_of_two() can be\ncalled with a zero stripe size.","modified":"2026-12-01T21:02:39.145095150Z","published":"2026-11-30T13:36:59.839Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139681.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0d9bbbb6fafa22659ccd4d7ab94329a43c2632d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/14ddbcd6827b0ef354e989d85b36e3e1bb400ec0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/68b2d45568062fcdd94349f5a68cc1534d170354"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d59da066617f6193130b4597fbaf24a38c86784e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139681.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139681"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f63f17350e537300312e9e19b51f69b61fa44291"},{"fixed":"68b2d45568062fcdd94349f5a68cc1534d170354"},{"fixed":"d59da066617f6193130b4597fbaf24a38c86784e"},{"fixed":"14ddbcd6827b0ef354e989d85b36e3e1bb400ec0"},{"fixed":"0d9bbbb6fafa22659ccd4d7ab94329a43c2632d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139681.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.9.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139681.json"}}],"schema_version":"1.9.2"}