CVE-2026-139683: Linux kernel MD accepts a v0.90 RAID superblock that claims more devices than the format holds, then writes past the buffer

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

Linux software RAID still understands the original v0.90 metadata format, whose superblock “has room for MD_SB_DISKS device descriptors”. The kernel CNA record says the loader “only rejects nonpositive raid_disks values. A crafted superblock can therefore copy a larger value into mddev->raid_disks. When metadata is next updated, super_90_sync() walks sb->disks[] up to that count and reads and writes beyond the 4 KiB superblock buffer.” The record gives the trigger: “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.” The CNA and Red Hat score it 7.8. On any host that auto-assembles arrays from attached disks, which udev does by default, upgrade to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65 or 7.3.6 and reboot; until then, do not plug in untrusted drives.

CVE-2026-139683 at a glance.

ComponentLinux kernel, MD software RAID (drivers/md/md.c): super_90_load() and the super_90_sync() metadata writer for v0.90 arrays
Affected versionsevery kernel from the initial git import (Fixes: 1da177e4c3f4, 2.6.12) up to the fixed releases: 5.10 before 5.10.275, 5.15 before 5.15.226, 6.1 before 6.1.193, 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1
Fixed inmainline 7.4-rc1 (commit 1a33a379, the one Debian cites) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6. One line: if (sb->raid_disks <= 0) becomes if (sb->raid_disks <= 0 || sb->raid_disks > MD_SB_DISKS)
SeverityKernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD shows the CNA metric only; Red Hat Important, 7.8 on the same vector (draft, CWE-787), bug 2587266 “Memory corruption via crafted v0.90 RAID superblock”; Ubuntu Medium, no score
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS: no score yet on 2 December 2026 (the API had no entry)
Who is exposedA host that assembles MD arrays from disks it did not create: workstations and servers with the default udev rule that runs mdadm --incremental on every block device that appears, so a crafted USB stick or loop image is enough; and any user who can assemble arrays. Red Hat: “a local attacker who can assemble or interact with software RAID arrays”. The array must be written to for the overflow to fire
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

The v0.90 superblock is a fixed 4 KiB structure at the end of each member device, with an array of MD_SB_DISKS (27) descriptors for the members. When the kernel loads one, super_90_load() validates the header and copies fields into the in-memory array description, including raid_disks, the number of members. The only check on that number was that it be positive.

The record describes the consequence: a superblock claiming more members than the descriptor array can hold passes the load, and the oversized count lands in mddev->raid_disks. Nothing bad happens until the array’s metadata is next written, at which point super_90_sync() loops over sb->disks[] for every claimed member and reads and writes well past the end of the 4 KiB buffer. The record’s reproducer is a checksum-valid RAID1 member claiming 64 devices; mdadm --incremental --run assembles it, and the first write to the array produces the out-of-bounds writes under KASAN. On most desktops udev runs that command for every disk that appears, which turns a plugged-in drive into the trigger.

The fix, by Jérémy Jean of ANSSI and committed by Yu Kuai, adds the upper bound to the existing check so a v0.90 superblock claiming more than MD_SB_DISKS members is rejected at load time, before the count reaches the array. The bug has been present since the 2.6.12 import, so every maintained series took the backport. git.kernel.org refuses automated readers, so the commit was read on GitHub.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Every maintained series carries the code; the practical filter is whether the host auto-assembles arrays from attached disks.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSAunstable 7.3.6-1
UbuntuMedium, no Ubuntu CVSS; linux needs evaluation in every supported release (26.10, 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS and the ESM releases); no USN on 2 December 2026nothing released on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2587266, CWE-787); kernel affected on RHEL 6, 7, 8, 9 and 10 (and kernel-rt on 7, 8, 9); OpenShift 4 and 5 CoreOS affected; no errata on 2 December 2026nothing released on 2 December 2026
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

Three questions: is the running kernel below the fixed version for its series, is the MD driver present, and does udev auto-assemble arrays from any disk that appears. The third is yes on almost every distribution install that has mdadm.

# 1. the running kernel against the fixed version for its series
uname -r        # fixed: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later

# 2. is MD built in or loaded, and is mdadm installed
grep -c . /proc/mdstat 2>/dev/null; lsmod | grep -E '^md_mod|^raid1'
command -v mdadm

# 3. does udev assemble arrays automatically from new block devices
grep -l 'mdadm --incremental' /lib/udev/rules.d/*md* /etc/udev/rules.d/* 2>/dev/null
# 4. any v0.90 arrays already present (informational)
mdadm --detail --scan 2>/dev/null | grep -i 'metadata=0.90'

A kernel at or above the fixed version is done. No /proc/mdstat, no md_mod and no mdadm means the superblock parser is never invoked and there is nothing to reach. If the udev incremental rule is present, which is the default wherever mdadm is installed, any disk, USB stick or loop image that appears is examined and a crafted v0.90 member is assembled without anyone asking, so the exposure is “whoever can attach a block device”. Existing legitimate v0.90 arrays are not themselves a risk; the superblock has to be crafted. There is no log line for the overflow on a production kernel; a KASAN build reports a slab-out-of-bounds in super_90_sync.

How to fix it

Install the fixed kernel and reboot. Debian forky and sid had 7.3.6-1; bookworm, trixie, Ubuntu and Red Hat had it pending on 2 December. The record lists no mitigation; the operational one is to stop automatic assembly of arrays from unknown disks until the kernel is fixed.

# Debian forky / sid (bookworm and trixie once a security update names this CVE)
apt update && apt install linux-image-amd64 && systemctl reboot
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf update kernel && systemctl reboot
zypper patch && systemctl reboot
# Interim: only assemble arrays named in mdadm.conf, not whatever appears
# add to /etc/mdadm/mdadm.conf (Debian/Ubuntu) or /etc/mdadm.conf (RHEL/SUSE):
#   AUTO -all
# then reload and confirm the policy
udevadm control --reload && mdadm --incremental --run /dev/null 2>&1 | head -1

AUTO -all tells mdadm --incremental to assemble only arrays listed by ARRAY lines, so a crafted member on a new disk is ignored while the host’s own arrays still come up at boot; put the real arrays in the file first (mdadm --detail --scan prints them) and regenerate the initramfs if the root array is one of them. What not to do: do not disable the MD modules on a host whose root or data lives on an array to “mitigate” this; the exposure is the crafted superblock, and the fixed kernel plus a conservative AUTO policy is the answer.

Sources

  • CVE-2026-139683 at CVE.org — the kernel CNA record: the “only rejects nonpositive raid_disks values” and “reads and writes beyond the 4 KiB superblock buffer” sentences, the mdadm –incremental –run reproducer, the git ranges, the single file (30 November 2026)
  • Fix commit 1a33a379 (mainline, 7.4-rc1) and the stable backports in the record; git.kernel.org refuses automated readers, so it was read on GitHub: Jérémy Jean (ANSSI), committed by Yu Kuai, Fixes: 1da177e4c3f4 (the 2.6.12 import), no Cc: stable, one file +1/−1 adding sb->raid_disks > MD_SB_DISKS to the reject condition
  • NVD entry — Received on 30 November 2026; shows the CNA’s 7.8 as its only metric, no NVD score or CWE on 2 December
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium, needs evaluation in every release, no USN) · Red Hat (Important 7.8, bug 2587266, kernel affected on RHEL 6-10) · SUSE and Alpine (both refused the automated reader on 2 December)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS no score yet on 2 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.