<?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://vulnerability.circl.lu</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>Wed, 30 Sep 2026 10:29:44 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-89557 — md: do overflow check for sb-&gt;bblog_shift in super_1_load()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-89557</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: do overflow check for sb-&amp;gt;bblog_shift in super_1_load()&lt;/p&gt;
&lt;p&gt;In super_1_load(), sb-&amp;gt;bblog_shift is an __u8 type value loaded from on-
disk superblock. It is used for badblocks API badblocks_set() by the
following sequence,&lt;/p&gt;
&lt;p&gt;1930   rdev-&amp;gt;badblocks.shift = sb-&amp;gt;bblog_shift;
 1931   for (i = 0 ; i &amp;lt; (sectors &amp;lt;&amp;lt; (9-3)) ; i++, bbp++) {
 1932           u64 bb = le64_to_cpu(*bbp);
 1933           int count = bb &amp;amp; (0x3ff);
 1934           u64 sector = bb &amp;gt;&amp;gt; 10;
 1935           sector &amp;lt;&amp;lt;= sb-&amp;gt;bblog_shift;
 1936           count &amp;lt;&amp;lt;= sb-&amp;gt;bblog_shift;
 1937           if (bb + 1 == 0)
 1938                   break;
 1939           if (!badblocks_set(&amp;amp;rdev-&amp;gt;badblocks, sector, count, 1))
 1940                   return -EINVAL;
 1941   }&lt;/p&gt;
&lt;p&gt;bb-&amp;gt;bblog_shit is in range of 0-255, variable sector is 64bit width, for
an invalid bb-&amp;gt;bblog_shit, it is possible to make sector be overflowed
by the following calculation,
 1935           sector &amp;lt;&amp;lt;= sb-&amp;gt;bblog_shift;
Then in turn when call badblocks_set() at line 1939 with the invalid
rdev-&amp;gt;badblocks.shift set at line 1930, may result an overflow inside
_badblocks_clear() in block/badblocks.c.&lt;/p&gt;
&lt;p&gt;Although there are many places to call badblocks APIs, the non-zero
shift value is only used in super_1_load(), other places always use 0 as
the shift value. Therefore it is unnecessary to do a general shift value
overflow check inside badblock API, and just check here as the caller.&lt;/p&gt;
&lt;p&gt;This may avoi…&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: do overflow check for sb-&amp;gt;bblog_shift in super_1_load()&lt;/p&gt;
&lt;p&gt;In super_1_load(), sb-&amp;gt;bblog_shift is an __u8 type value loaded from on-
disk superblock. It is used for badblocks API badblocks_set() by the
following sequence,&lt;/p&gt;
&lt;p&gt;1930   rdev-&amp;gt;badblocks.shift = sb-&amp;gt;bblog_shift;
 1931   for (i = 0 ; i &amp;lt; (sectors &amp;lt;&amp;lt; (9-3)) ; i++, bbp++) {
 1932           u64 bb = le64_to_cpu(*bbp);
 1933           int count = bb &amp;amp; (0x3ff);
 1934           u64 sector = bb &amp;gt;&amp;gt; 10;
 1935           sector &amp;lt;&amp;lt;= sb-&amp;gt;bblog_shift;
 1936           count &amp;lt;&amp;lt;= sb-&amp;gt;bblog_shift;
 1937           if (bb + 1 == 0)
 1938                   break;
 1939           if (!badblocks_set(&amp;amp;rdev-&amp;gt;badblocks, sector, count, 1))
 1940                   return -EINVAL;
 1941   }&lt;/p&gt;
&lt;p&gt;bb-&amp;gt;bblog_shit is in range of 0-255, variable sector is 64bit width, for
an invalid bb-&amp;gt;bblog_shit, it is possible to make sector be overflowed
by the following calculation,
 1935           sector &amp;lt;&amp;lt;= sb-&amp;gt;bblog_shift;
Then in turn when call badblocks_set() at line 1939 with the invalid
rdev-&amp;gt;badblocks.shift set at line 1930, may result an overflow inside
_badblocks_clear() in block/badblocks.c.&lt;/p&gt;
&lt;p&gt;Although there are many places to call badblocks APIs, the non-zero
shift value is only used in super_1_load(), other places always use 0 as
the shift value. Therefore it is unnecessary to do a general shift value
overflow check inside badblock API, and just check here as the caller.&lt;/p&gt;
&lt;p&gt;This may avoi…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-89557</guid>
    </item>
  </channel>
</rss>
