CVE-2026-139683: md: reject v0.90 arrays with too many devices
In the Linux kernel, the following vulnerability has been resolved:
md: reject v0.90 arrays with too many devices
The v0.90 superblock has room for MDSBDISKS device descriptors, but super90load() only rejects nonpositive raiddisks values. A crafted superblock can therefore copy a larger value into mddev->raiddisks. When metadata is next updated, super90sync() walks sb->disks[] up to that count and reads and writes beyond the 4 KiB superblock buffer.
A checksum-valid RAID1 member advertising 64 devices can be assembled by mdadm --incremental --run. The first write to the array then produces out-of-bounds writes from super90sync() under KASAN.
Reject device counts that cannot be represented by the v0.90 format while loading the superblock.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems that assemble Linux MD arrays using the legacy v0.90 metadata format are exposed if they process a crafted, checksum-valid member whose advertised device count exceeds what the v0.90 superblock can represent. The described trigger uses a RAID1 member assembled through mdadm --incremental --run.
What must happen for the out-of-bounds access to occur?
A crafted v0.90 superblock must be loaded with an oversized raid_disks value, and the array must subsequently update its metadata. During that update, super_90_sync() iterates past the fixed 4 KiB superblock buffer while accessing the device descriptor array.
How can administrators determine whether an array is potentially affected?
Check whether the system uses MD arrays with v0.90 superblock metadata and whether untrusted or unexpected array members could be assembled, including through incremental mdadm assembly. A member advertising a device count larger than the v0.90 format can represent is the relevant malformed condition.