1. Archivio CVE
  2. 2026
  3. CVE-2026-138991

CVE-2026-138991

7.1 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H 7.1 – Alta

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel >= 3.1 < 5.10.275 –
linux linux kernel >= 3.1 < 5.15.226 –
linux linux kernel >= 3.1 < 6.1.193 –
linux linux kernel >= 3.1 < 6.6.163 –
linux linux kernel >= 3.1 < 6.12.117 –
linux linux kernel >= 3.1 < 6.18.63 –
linux linux kernel >= 3.1 < 7.3.4 –
linux linux kernel >= 3.1 < 7.4-rc1 –
Tutte le 24.148 vulnerabilità di Linux Kernel