<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:47:58 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138991 — md: validate bblog_size when loading v1.x badblocks metadata</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138991</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;md: validate bblog_size when loading v1.x badblocks metadata&lt;/p&gt;
&lt;p&gt;In super_1_load(), when the on-disk feature_map does not have
MD_FEATURE_BAD_BLOCKS set but sb-&amp;gt;bblog_offset is non-zero,
rdev-&amp;gt;badblocks.shift is initialized to 0 without validating
sb-&amp;gt;bblog_size.  The same field is validated in the
MD_FEATURE_BAD_BLOCKS branch (&amp;#34;sectors &amp;gt; (PAGE_SIZE / 512)&amp;#34;), but this
branch bypasses that check.&lt;/p&gt;
&lt;p&gt;A forged on-disk superblock (malicious storage device or crafted
image) can therefore carry an oversized sb-&amp;gt;bblog_size.  When bad
blocks are later recorded, super_1_sync() sets bb-&amp;gt;size from
sb-&amp;gt;bblog_size and md_write_metadata() issues a bio larger than the
single rdev-&amp;gt;bb_page, reading beyond the page and leaking kernel
memory contents to disk.&lt;/p&gt;
&lt;p&gt;sb-&amp;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.&lt;/p&gt;
&lt;p&gt;Fix this by rejecting an oversized sb-&amp;gt;bblog_size with -EINVAL,
matching the existing check in the MD_FEATURE_BAD_BLOCKS branch.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;md: validate bblog_size when loading v1.x badblocks metadata&lt;/p&gt;
&lt;p&gt;In super_1_load(), when the on-disk feature_map does not have
MD_FEATURE_BAD_BLOCKS set but sb-&amp;gt;bblog_offset is non-zero,
rdev-&amp;gt;badblocks.shift is initialized to 0 without validating
sb-&amp;gt;bblog_size.  The same field is validated in the
MD_FEATURE_BAD_BLOCKS branch (&amp;#34;sectors &amp;gt; (PAGE_SIZE / 512)&amp;#34;), but this
branch bypasses that check.&lt;/p&gt;
&lt;p&gt;A forged on-disk superblock (malicious storage device or crafted
image) can therefore carry an oversized sb-&amp;gt;bblog_size.  When bad
blocks are later recorded, super_1_sync() sets bb-&amp;gt;size from
sb-&amp;gt;bblog_size and md_write_metadata() issues a bio larger than the
single rdev-&amp;gt;bb_page, reading beyond the page and leaking kernel
memory contents to disk.&lt;/p&gt;
&lt;p&gt;sb-&amp;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.&lt;/p&gt;
&lt;p&gt;Fix this by rejecting an oversized sb-&amp;gt;bblog_size with -EINVAL,
matching the existing check in the MD_FEATURE_BAD_BLOCKS branch.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138991</guid>
    </item>
  </channel>
</rss>
