CVE-2026-138991
md: validate bblog_size when loading v1.x badblocks metadata
No exploitation reported by the sources we read.
- Published2026-11-30
- Fixed in7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2026-11-3013:26CVE publishedCNA
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.3 | ≥ 6.19.0, < 7.3.4 | 7.3.4 | OSV |
| 6.x | ≥ 6.13.0, < 6.18.63 | 6.18.63 | OSV |
| 6.x | ≥ 6.7.0, < 6.12.117 | 6.12.117 | OSV |
| 6.x | ≥ 6.2.0, < 6.6.163 | 6.6.163 | OSV |
| 6.1 | ≥ 5.16.0, < 6.1.193 | 6.1.193 | OSV |
| 5.x | ≥ 5.11.0, < 5.15.226 | 5.15.226 | OSV |
| 5.10 | ≥ 3.1.0, < 5.10.275 | 5.10.275 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA2 products
As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Linuxother versions: not affected
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Affected- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < 2a0088960aeec328c0afa34df324192594212bf8fixed in 2a0088960aeec328c0afa34df324192594212bf8git
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < 1b9c1af3039596f2374225a5f6c9962a2a117192fixed in 1b9c1af3039596f2374225a5f6c9962a2a117192git
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9fixed in ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9git
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < e507b6589712e72bb1f5eeac17f4bbfce48eb9a7fixed in e507b6589712e72bb1f5eeac17f4bbfce48eb9a7git
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < 6161721e0cc7cc45be5d4b2edfbec7d3f211bfebfixed in 6161721e0cc7cc45be5d4b2edfbec7d3f211bfebgit
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < 750960f85f5467d7271b54ddc215e5800b0a08dbfixed in 750960f85f5467d7271b54ddc215e5800b0a08dbgit
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < ed89d13541c89246fd410b2d95861096ad3d43c1fixed in ed89d13541c89246fd410b2d95861096ad3d43c1git
- ≥ 2699b67223aca6b1450fc2f72e40fada952afc85, < ae5f89b23cb88667cfa1273b42d6a551db9c651efixed in ae5f89b23cb88667cfa1273b42d6a551db9c651egit
- Linuxother versions: affected
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Affected- = 3.1no fix stated
Not affected < 3.1 · ≥ 5.10.275, ≤ 5.10.* · ≥ 5.15.226, ≤ 5.15.* · ≥ 6.1.193, ≤ 6.1.* · ≥ 6.6.163, ≤ 6.6.* · ≥ 6.12.117, ≤ 6.12.* · ≥ 6.18.63, ≤ 6.18.*
2 more version lines in the CVE record.
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- linuxDebian:14all versions · fixed in 7.3.4-1
- linuxDebian:13all versions · fixed in 6.12.117-1
- linuxDebian:12all versions · no fixed version listed
Fix
- Update Linux kernel to 7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226 · 5.10.275
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-01
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- EUVD-2026-138743same flawENISA EUVD · LicenseRef-ENISA-legal-notice
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Published
- 2026-11-30
- Last modified
- 2026-11-30
- NVD status
- Received
Frequently asked questions
What is CVE-2026-138991?
Is CVE-2026-138991 actively exploited?
What is the CVSS score for CVE-2026-138991?
Running Linux kernel? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served