PT-2026-163032

CVE-2026-138991

·

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: validate bblog size when loading v1.x badblocks metadata
In super 1 load(), when the on-disk feature map does not have MD FEATURE BAD BLOCKS set but sb->bblog offset is non-zero, rdev->badblocks.shift is initialized to 0 without validating sb->bblog size. The same field is validated in the MD FEATURE BAD BLOCKS branch ("sectors > (PAGE SIZE / 512)"), but this branch bypasses that check.
A forged on-disk superblock (malicious storage device or crafted image) can therefore carry an oversized sb->bblog size. When bad blocks are later recorded, super 1 sync() sets bb->size from sb->bblog size and md write metadata() issues a bio larger than the single rdev->bb page, reading beyond the page and leaking kernel memory contents to disk.
sb->bblog size is never modified by the kernel between load and sync, and the MD FEATURE BAD BLOCKS branch already validates it, so checking it in this branch is sufficient to cover both paths.
Fix this by rejecting an oversized sb->bblog size with -EINVAL, matching the existing check in the MD FEATURE BAD BLOCKS branch.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾