GHSA-JGRF-8FRM-483V
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-12-01 06:31In 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.
{
"affected": [],
"aliases": [
"CVE-2026-138991"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:18:01Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmd: validate bblog_size when loading v1.x badblocks metadata\n\nIn super_1_load(), when the on-disk feature_map does not have\nMD_FEATURE_BAD_BLOCKS set but sb-\u003ebblog_offset is non-zero,\nrdev-\u003ebadblocks.shift is initialized to 0 without validating\nsb-\u003ebblog_size. The same field is validated in the\nMD_FEATURE_BAD_BLOCKS branch (\"sectors \u003e (PAGE_SIZE / 512)\"), but this\nbranch bypasses that check.\n\nA forged on-disk superblock (malicious storage device or crafted\nimage) can therefore carry an oversized sb-\u003ebblog_size. When bad\nblocks are later recorded, super_1_sync() sets bb-\u003esize from\nsb-\u003ebblog_size and md_write_metadata() issues a bio larger than the\nsingle rdev-\u003ebb_page, reading beyond the page and leaking kernel\nmemory contents to disk.\n\nsb-\u003ebblog_size is never modified by the kernel between load and sync,\nand the MD_FEATURE_BAD_BLOCKS branch already validates it, so checking\nit in this branch is sufficient to cover both paths.\n\nFix this by rejecting an oversized sb-\u003ebblog_size with -EINVAL,\nmatching the existing check in the MD_FEATURE_BAD_BLOCKS branch.",
"id": "GHSA-jgrf-8frm-483v",
"modified": "2026-12-01T06:31:15Z",
"published": "2026-11-30T15:32:12Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138991"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/1b9c1af3039596f2374225a5f6c9962a2a117192"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/2a0088960aeec328c0afa34df324192594212bf8"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/750960f85f5467d7271b54ddc215e5800b0a08db"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ae5f89b23cb88667cfa1273b42d6a551db9c651e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/e507b6589712e72bb1f5eeac17f4bbfce48eb9a7"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/ed89d13541c89246fd410b2d95861096ad3d43c1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
"type": "CVSS_V3"
}
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.