Skip to main content
VulnerabilityPublished

CVE-2026-138991: Linux kernel · md: validate bblog_size when loading v1.x badblocks metadata

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9 : update Linux kernel when convenient.

Data as of 30 Nov 2026, 14:00 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9, ed89d13541c89246fd410b2d95861096ad3d43c1, e507b6589712e72bb1f5eeac17f4bbfce48eb9a7 +5

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9
Fixed in
  • ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9
LinuxLinuxAffected
  • ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < ed89d13541c89246fd410b2d95861096ad3d43c1
Fixed in
  • ed89d13541c89246fd410b2d95861096ad3d43c1
LinuxLinuxAffected
  • ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < e507b6589712e72bb1f5eeac17f4bbfce48eb9a7
Fixed in
  • e507b6589712e72bb1f5eeac17f4bbfce48eb9a7
LinuxLinuxAffected
  • ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < ae5f89b23cb88667cfa1273b42d6a551db9c651e
Fixed in
  • ae5f89b23cb88667cfa1273b42d6a551db9c651e
LinuxLinuxAffected
  • ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < 6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb
Fixed in
  • 6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb
LinuxLinuxAffected
  • ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < 750960f85f5467d7271b54ddc215e5800b0a08db
Fixed in
  • 750960f85f5467d7271b54ddc215e5800b0a08db

Description

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.

References

Community reviews

Loading reviews…