CVE-2026-138991

HighCVSS 7.1/10Last modified Dec 1, 2026

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.

Metrics

CVSS 3.1 7.1/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138992In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix checkpoint root lifetime on sysfs errors nilfs_find_or_creCVE-2026-138993In the Linux kernel, the following vulnerability has been resolved: media: ir_toy: Validate the maximum tx carrier Reject any carrier the CVE-2026-138994In the Linux kernel, the following vulnerability has been resolved: media: serial_ir: Fix race condition where timer can be re-armed EnsurCVE-2026-138995In the Linux kernel, the following vulnerability has been resolved: media: ene_ir: Ensure teardown is done in the correct order The timer CVE-2026-138996In the Linux kernel, the following vulnerability has been resolved: seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupCVE-2026-138997In the Linux kernel, the following vulnerability has been resolved: signalfd: don't dequeue the forced fatal signals These signals should CVE-2026-138998In the Linux kernel, the following vulnerability has been resolved: i3c: mipi-i3c-hci-pci: Set drvdata before creating LTR sysfs attribute CVE-2026-138999In the Linux kernel, the following vulnerability has been resolved: i3c: mipi-i3c-hci: Bounce short reads irrespective of the IOMMU The coCVE-2026-13904.3The Redirect countdown plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.0. This is dCVE-2026-139006.5Inappropriate implementation in Chromecast in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the rendereCVE-2026-139000In the Linux kernel, the following vulnerability has been resolved: i3c: master: Fix out-of-bounds read in DMA bounce buffer setup When a CVE-2026-139001In the Linux kernel, the following vulnerability has been resolved: cpufreq: CPPC: Create the FIE worker before enabling PCC callbacks cpp
CVE-2026-138991: High severity, CVSS 7.1 | Vulnix