CVE-2026-138991 (GCVE-0-2026-138991)
Vulnerability from cvelistv5 – Published: 2026-11-30 13:26 – Updated: 2026-12-01 05:40| Vendor | Product | Version | CPE status | |
|---|---|---|---|---|
| Linux | Linux |
Affected:
2699b67223aca6b1450fc2f72e40fada952afc85 , < 2a0088960aeec328c0afa34df324192594212bf8
(git)
Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < 1b9c1af3039596f2374225a5f6c9962a2a117192 (git) Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9 (git) Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < e507b6589712e72bb1f5eeac17f4bbfce48eb9a7 (git) Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < 6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb (git) Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < 750960f85f5467d7271b54ddc215e5800b0a08db (git) Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < ed89d13541c89246fd410b2d95861096ad3d43c1 (git) Affected: 2699b67223aca6b1450fc2f72e40fada952afc85 , < ae5f89b23cb88667cfa1273b42d6a551db9c651e (git) |
guessed | |
| Linux | Linux |
Affected:
3.1
Unaffected: 0 , < 3.1 (semver) Unaffected: 5.10.275 , ≤ 5.10.* (semver) Unaffected: 5.15.226 , ≤ 5.15.* (semver) Unaffected: 6.1.193 , ≤ 6.1.* (semver) Unaffected: 6.6.163 , ≤ 6.6.* (semver) Unaffected: 6.12.117 , ≤ 6.12.* (semver) Unaffected: 6.18.63 , ≤ 6.18.* (semver) Unaffected: 7.3.4 , ≤ 7.3.* (semver) Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix) |
guessed |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/md/md.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "2a0088960aeec328c0afa34df324192594212bf8",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "1b9c1af3039596f2374225a5f6c9962a2a117192",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "e507b6589712e72bb1f5eeac17f4bbfce48eb9a7",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "750960f85f5467d7271b54ddc215e5800b0a08db",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "ed89d13541c89246fd410b2d95861096ad3d43c1",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "ae5f89b23cb88667cfa1273b42d6a551db9c651e",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/md/md.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.1"
},
{
"lessThan": "3.1",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.275",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.226",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.193",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.63",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.275",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.226",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.193",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.163",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.117",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.63",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3.4",
"versionStartIncluding": "3.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.4-rc1",
"versionStartIncluding": "3.1",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.1,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The oversized sb-\u003ebblog_size comes from an MD v1.x superblock that super_1_load() reads off a local member block device (a udisks loop partition or an attached disk). super_1_sync() and md_update_sb() later pass it to md_write_metadata(). No network protocol message carries the value.\nAC:L - The attacker does every step: write a valid-checksum sb with bblog_offset!=0, no MD_FEATURE_BAD_BLOCKS and bblog_size up to 65535; add a spare-role member so mdadm -I\u0027s ADD_NEW_DISK flips read-auto to RDWR; return EIO from their FUSE backing file so raid1 handle_sync_write_finished() calls rdev_set_badblocks(). The oversized metadata write then follows deterministically.\nPR:L - md ioctls need init capable(CAP_SYS_ADMIN) in md_ioctl_valid(). But an active-session user can attach their own file via udisks LoopSetup (polkit allow_active=yes, partscan on), and 64-md-raid-assembly.rules then runs mdadm --incremental as root on the partition add events, so an ordinary local login is enough.\nUI:N - No victim action is involved: the attacker\u0027s own LoopSetup call produces the uevents, and udev/mdadm assemble the foreign array automatically. The attacker also drives the spare add and the I/O errors that record the bad block.\nS:U - The disclosed memory and any resulting fault stay within the host kernel\u0027s own authority; no VM, IOMMU or sandbox boundary is crossed.\nC:H - md_update_sb() calls md_write_metadata(..., rdev-\u003ebadblocks.size \u003c\u003c 9, rdev-\u003ebb_page, 0), so one order-0 alloc_page() page becomes a bvec of up to 33553920 bytes. lo_rw_aio\u0027s bvec iov_iter then copies ~32MB of the physically following kernel memory (page cache, slab, other processes\u0027 pages) into the attacker\u0027s FUSE backing file.\nI:N - No kernel memory is written. The oversized bio goes to sb_start + bblog_offset on the attacker\u0027s own member partition, and bio_check_eod() keeps it inside that partition, so only attacker-owned on-disk data is overwritten.\nA:H - The ~32MB copy reads each page past bb_page through the direct map. If the window crosses a page removed from it (e.g. memfd_secret pages, which unprivileged users can create, or the end of a RAM range), the copy faults and the kernel oopses in the loop worker."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T05:40:49.717Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/2a0088960aeec328c0afa34df324192594212bf8"
},
{
"url": "https://git.kernel.org/stable/c/1b9c1af3039596f2374225a5f6c9962a2a117192"
},
{
"url": "https://git.kernel.org/stable/c/ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9"
},
{
"url": "https://git.kernel.org/stable/c/e507b6589712e72bb1f5eeac17f4bbfce48eb9a7"
},
{
"url": "https://git.kernel.org/stable/c/6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb"
},
{
"url": "https://git.kernel.org/stable/c/750960f85f5467d7271b54ddc215e5800b0a08db"
},
{
"url": "https://git.kernel.org/stable/c/ed89d13541c89246fd410b2d95861096ad3d43c1"
},
{
"url": "https://git.kernel.org/stable/c/ae5f89b23cb88667cfa1273b42d6a551db9c651e"
}
],
"title": "md: validate bblog_size when loading v1.x badblocks metadata",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-138991",
"datePublished": "2026-11-30T13:26:51.892Z",
"dateReserved": "2026-11-30T13:22:15.907Z",
"dateUpdated": "2026-12-01T05:40:49.717Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-138991",
"date": "2026-12-04",
"epss": "0.00167",
"percentile": "0.06233"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/md/md.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "2a0088960aeec328c0afa34df324192594212bf8",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "1b9c1af3039596f2374225a5f6c9962a2a117192",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "e507b6589712e72bb1f5eeac17f4bbfce48eb9a7",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "750960f85f5467d7271b54ddc215e5800b0a08db",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "ed89d13541c89246fd410b2d95861096ad3d43c1",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
},
{
"lessThan": "ae5f89b23cb88667cfa1273b42d6a551db9c651e",
"status": "affected",
"version": "2699b67223aca6b1450fc2f72e40fada952afc85",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/md/md.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.1"
},
{
"lessThan": "3.1",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.275",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.226",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.193",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.163",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.63",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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": "CVE-2026-138991",
"lastModified": "2026-12-01T06:17:31.977",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.2,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-30T14:18:01.753",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/1b9c1af3039596f2374225a5f6c9962a2a117192"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/2a0088960aeec328c0afa34df324192594212bf8"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/6161721e0cc7cc45be5d4b2edfbec7d3f211bfeb"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/750960f85f5467d7271b54ddc215e5800b0a08db"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/ae5f89b23cb88667cfa1273b42d6a551db9c651e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/e507b6589712e72bb1f5eeac17f4bbfce48eb9a7"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/ed3334dc84bdb5d5062955c4aece6b5bfb6a68c9"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/ed89d13541c89246fd410b2d95861096ad3d43c1"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-12-01T07:09:24+00:00",
"cve": "CVE-2026-138991",
"id": "CVE-2026-138991",
"initial_release_date": "2026-11-30T13:26:51.892000+00:00",
"product_status:known_affected": "280",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: Information disclosure via crafted bad block metadata in MD driver",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-138991.json",
"version": "3"
}
}
}
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.