CVE-2026-139681: md/raid5: reject raid4/5 arrays with too few disks
In the Linux kernel, the following vulnerability has been resolved:
md/raid5: reject raid4/5 arrays with too few disks
raid4 and raid5 require at least two disks, while raid6 requires at least four disks. setupconf() only rejects raid6 arrays with fewer than four disks. As a result, an invalid raid4 or raid5 array can be assembled with no data disks and later reach raid5setlimits().
Reject such arrays before the r5conf is created. This prevents the invalid geometry from reaching queue limit setup, where rounduppowoftwo() can be called with a zero stripe size.
Affected Software
Event History
Frequently Asked Questions
What configurations are affected?
Only invalid md RAID4 or RAID5 arrays assembled with fewer than two disks are described as affected. RAID6 already rejects arrays with fewer than four disks.
What condition is required to trigger the issue?
An invalid RAID4 or RAID5 array must be assembled with no data disks. The invalid geometry can then reach queue-limit setup, where a zero stripe size may be passed to roundup_pow_of_two().
How can administrators determine whether they may be exposed?
Review md RAID4 and RAID5 array definitions and assembly attempts for arrays containing fewer than two disks. Such arrays are invalid and should be rejected rather than allowed to proceed to queue-limit setup.