# CVE-2026-139679: md/raid5: reject a per-device size smaller than one chunk

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:58.736Z
- **Modified:** 2026-11-30T14:19:55.867Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local access to a Linux kernel system using RAID5 can trigger a kernel crash by resizing an array to a size smaller than one chunk, causing a BUG() in the raid0 takeover path.

## Who should check

- Anyone running Linux \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< ffee6e3374c17a75cb4574a3fd289272dc64a090; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 58a851e4fa0921f0293568a7031ff6f9193ad167; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 45df58239521644da57fa99c264ed2f14e8f3f21; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 370ca0760b18c64592a258bcb057ff0a2531aabf
- Anyone running Linux 3.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

md/raid5: reject a per-device size smaller than one chunk

Both raid5\_run() and raid5\_resize() align the per-device size down to a
whole multiple of the chunk size:

	mddev-\>dev\_sectors &= ~(chunk\_sectors - 1);

Neither checks the result, so a size smaller than one chunk silently
becomes zero.

In raid5\_run() that is harmless: the array size is derived from the same
zero, so the disk just ends up with no capacity.

In raid5\_resize() it leaves the array inconsistent -- mddev-\>dev\_sectors
becomes zero, while mddev-\>array\_sectors and the gendisk capacity keep the
previous. A later raid4/raid5 -\> raid0 takeover copies the zero into every
rdev-\>sectors (raid0\_takeover\_raid45()), so create\_strip\_zones() builds a
strip zone table whose zone\_end is zero. Any read then passes
bio\_check\_eod() against the stale capacity and hits the BUG() in
find\_zone():

 kernel BUG at drivers/md/raid0.c:318!
 Oops: invalid opcode: 0000 \[\#1\] SMP KASAN NOPTI
 Call Trace:
   raid0\_make\_request
   md\_handle\_request
   submit\_bio\_noacct\_nocheck
   block\_read\_full\_folio
   read\_part\_sector
   bdev\_disk\_changed
   bdev\_open

Reject a size smaller than one chunk in both functions, so that a running
raid4/raid5 array always has mddev-\>dev\_sectors \>= one chunk.

The check is done where the value takes effect, not where it is assigned.
mddev-\>dev\_sectors is written from several places, and none of them can
tell whether the value is usable: the chunk size may still change later.
raid5\_run() and raid5\_resize() are where every input is final, so one check
in each covers them all.

## Affected and fixed versions

- Linux: \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< ffee6e3374c17a75cb4574a3fd289272dc64a090; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 58a851e4fa0921f0293568a7031ff6f9193ad167; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 45df58239521644da57fa99c264ed2f14e8f3f21; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 370ca0760b18c64592a258bcb057ff0a2531aabf (cvelist)
- Linux: 3.11 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 370ca0760b18c64592a258bcb057ff0a2531aabf or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139679. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139679.md
Affected: Linux >= eea136d69f9facb2d3807386bbac1e6b1161795f, < ffee6e3374c17a75cb4574a3fd289272dc64a090; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 58a851e4fa0921f0293568a7031ff6f9193ad167; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 45df58239521644da57fa99c264ed2f14e8f3f21; >= eea136d69f9facb2d380738…
Fixed in: Linux 58a851e4fa0921f0293568a7031ff6f9193ad167, Linux 45df58239521644da57fa99c264ed2f14e8f3f21, Linux 370ca0760b18c64592a258bcb057ff0a2531aabf

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139679 being exploited?

There is no confirmed exploitation: CVE-2026-139679 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139679?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139679?

Linux \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< ffee6e3374c17a75cb4574a3fd289272dc64a090; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 58a851e4fa0921f0293568a7031ff6f9193ad167; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 45df58239521644da57fa99c264ed2f14e8f3f21; \>= eea136d69f9facb2d3807386bbac1e6b1161795f, \< 370ca0760b18c64592a258bcb057ff0a2531aabf; Linux 3.11.

### Is there a fix for CVE-2026-139679?

Yes. Fixed in Linux 58a851e4fa0921f0293568a7031ff6f9193ad167, Linux 45df58239521644da57fa99c264ed2f14e8f3f21, Linux 370ca0760b18c64592a258bcb057ff0a2531aabf. Upgrade Linux to 370ca0760b18c64592a258bcb057ff0a2531aabf or later.

### How do I check if I'm affected by CVE-2026-139679?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ffee6e3374c17a75cb4574a3fd289272dc64a090>
- other: <https://git.kernel.org/stable/c/58a851e4fa0921f0293568a7031ff6f9193ad167>
- other: <https://git.kernel.org/stable/c/45df58239521644da57fa99c264ed2f14e8f3f21>
- other: <https://git.kernel.org/stable/c/370ca0760b18c64592a258bcb057ff0a2531aabf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139679>

HTML: <https://flawdb.com/CVE-2026-139679> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139679>
