# CVE-2026-139681: md/raid5: reject raid4/5 arrays with too few disks

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:59.839Z
- Modified: 2026-11-30T14:19:56.163Z
- Assigned by: Linux

## Description

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. setup_conf() 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 raid5_set_limits().

Reject such arrays before the r5conf is created. This prevents the invalid
geometry from reaching queue limit setup, where roundup_pow_of_two() can be
called with a zero stripe size.

(As written by CVE List.)

## Affected

- Linux Linux: from f63f17350e537300312e9e19b51f69b61fa44291 before 68b2d45568062fcdd94349f5a68cc1534d170354; from f63f17350e537300312e9e19b51f69b61fa44291 before d59da066617f6193130b4597fbaf24a38c86784e; from f63f17350e537300312e9e19b51f69b61fa44291 before 14ddbcd6827b0ef354e989d85b36e3e1bb400ec0; from f63f17350e537300312e9e19b51f69b61fa44291 before 0d9bbbb6fafa22659ccd4d7ab94329a43c2632d0; 6.9 (not affected: before 6.9; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/68b2d45568062fcdd94349f5a68cc1534d170354>
- <https://git.kernel.org/stable/c/d59da066617f6193130b4597fbaf24a38c86784e>
- <https://git.kernel.org/stable/c/14ddbcd6827b0ef354e989d85b36e3e1bb400ec0>
- <https://git.kernel.org/stable/c/0d9bbbb6fafa22659ccd4d7ab94329a43c2632d0>

## Sources

- CVE List: [CVE-2026-139681](https://www.cve.org/CVERecord?id=CVE-2026-139681), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139681](https://nvd.nist.gov/vuln/detail/CVE-2026-139681), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139681 · Whole record: https://cve.day/CVE-2026-139681.json · Rebuilt by cve.day 2026-11-30T14:33:40.105Z
