CVE-2026-139679
md/raid5: reject a per-device size smaller than one chunk
AI summary AI generated
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.
Mitigation
- Upgrade Linux to 370ca0760b18c64592a258bcb057ff0a2531aabf or later.
Who should check
- Anyone running Linux >= eea136d69f9facb2d3807386bbac1e6b1161795f, < ffee6e3374c17a75cb4574a3fd289272dc64a090; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 58a851e4fa0921f0293568a7031ff6f9193ad167; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 45df58239521644da57fa99c264ed2f14e8f3f21; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 370ca0760b18c64592a258bcb057ff0a2531aabf
- Anyone running Linux 3.11
Vulnerability facts
- Affected
- Linux >= eea136d69f9facb2d3807386bbac1e6b1161795f, < ffee6e3374c17a75cb4574a3fd289272dc64a090; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 58a851e4fa0921f0293568a7031ff6f9193ad167; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 45df58239521644da57fa99c264ed2f14e8f3f21; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 370ca0760b18c64592a258bcb057ff0a2531aabf; Linux 3.11
- Fixed in
- Linux 58a851e4fa0921f0293568a7031ff6f9193ad167, Linux 45df58239521644da57fa99c264ed2f14e8f3f21, Linux 370ca0760b18c64592a258bcb057ff0a2531aabf
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= eea136d69f9facb2d3807386bbac1e6b1161795f, < ffee6e3374c17a75cb4574a3fd289272dc64a090; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 58a851e4fa0921f0293568a7031ff6f9193ad167; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 45df58239521644da57fa99c264ed2f14e8f3f21; >= eea136d69f9facb2d3807386bbac1e6b1161795f, < 370ca0760b18c64592a258bcb057ff0a2531aabf | — | cvelist |
| Linux | 3.11 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |