PT-2026-163723

CVE-2026-139682

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
md/raid5: don't BUG() on an inconsistent reshape state from the superblock
raid5 run() branches on mddev->reshape position. When it is MaxSector -- no reshape in progress -- the else branch asserts that nothing else describes one:
BUG ON(mddev->level != mddev->new level);
BUG ON(mddev->layout != mddev->new layout);
BUG ON(mddev->chunk sectors != mddev->new chunk sectors);
BUG ON(mddev->delta disks != 0);
Nothing enforces that invariant. Both superblock validators copy the reshape fields straight off disk without cross-checking them against each other: super 1 validate() takes reshape position, delta disks, new level, new layout and new chunk from the superblock whenever MD FEATURE RESHAPE ACTIVE is set, and super 90 validate() does the same for minor version 91. A superblock that sets the reshape feature while leaving reshape position at the MaxSector sentinel therefore reaches the else branch with a non-zero delta disks, and assembling the array takes the machine down:
kernel BUG at drivers/md/raid5.c:8117! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI RIP: 0010:raid5 run+0x11a7/0x1670 drivers/md/raid5.c:8117 Call Trace: md run+0xc2f/0x2510 drivers/md/md.c:6779 do md run+0x36/0x660 drivers/md/md.c:6880 array state store+0x9c5/0xcf0 drivers/md/md.c:4765 md attr store+0x1c5/0x330 drivers/md/md.c:6158 sysfs kf write+0xf2/0x150 fs/sysfs/file.c:145 kernfs fop write iter+0x3e0/0x5f0 fs/kernfs/file.c:345
This is reachable by anyone who can present an md superblock, so BUG() is the wrong response. Refuse to start the array instead, the way the reshape position != MaxSector branch a few lines above already refuses a reshape it cannot resume. Nothing has been allocated at this point -- the journal-and-bitmap check just above returns -EINVAL the same way -- so there is nothing to unwind.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾