<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:21:18.973351+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-138991</id>
    <title>CVE-2026-138991 — md: validate bblog_size when loading v1.x badblocks metadata</title>
    <updated>2026-12-04T19:21:18.975248+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>md: validate bblog_size when loading v1.x badblocks metadata</p>
<p>In super_1_load(), when the on-disk feature_map does not have
MD_FEATURE_BAD_BLOCKS set but sb-&gt;bblog_offset is non-zero,
rdev-&gt;badblocks.shift is initialized to 0 without validating
sb-&gt;bblog_size.  The same field is validated in the
MD_FEATURE_BAD_BLOCKS branch ("sectors &gt; (PAGE_SIZE / 512)"), but this
branch bypasses that check.</p>
<p>A forged on-disk superblock (malicious storage device or crafted
image) can therefore carry an oversized sb-&gt;bblog_size.  When bad
blocks are later recorded, super_1_sync() sets bb-&gt;size from
sb-&gt;bblog_size and md_write_metadata() issues a bio larger than the
single rdev-&gt;bb_page, reading beyond the page and leaking kernel
memory contents to disk.</p>
<p>sb-&gt;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.</p>
<p>Fix this by rejecting an oversized sb-&gt;bblog_size with -EINVAL,
matching the existing check in the MD_FEATURE_BAD_BLOCKS branch.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138991"/>
  </entry>
</feed>
