<?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 18:43:06 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139679 — md/raid5: reject a per-device size smaller than one chunk</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139679</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/raid5: reject a per-device size smaller than one chunk&lt;/p&gt;
&lt;p&gt;Both raid5_run() and raid5_resize() align the per-device size down to a
whole multiple of the chunk size:&lt;/p&gt;
&lt;p&gt;mddev-&amp;gt;dev_sectors &amp;amp;= ~(chunk_sectors - 1);&lt;/p&gt;
&lt;p&gt;Neither checks the result, so a size smaller than one chunk silently
becomes zero.&lt;/p&gt;
&lt;p&gt;In raid5_run() that is harmless: the array size is derived from the same
zero, so the disk just ends up with no capacity.&lt;/p&gt;
&lt;p&gt;In raid5_resize() it leaves the array inconsistent -- mddev-&amp;gt;dev_sectors
becomes zero, while mddev-&amp;gt;array_sectors and the gendisk capacity keep the
previous. A later raid4/raid5 -&amp;gt; raid0 takeover copies the zero into every
rdev-&amp;gt;sectors (raid0_takeover_raid45()), so create_strip_zones() builds a
strip zone table whose zone_end is zero. Any read then passes
bio_check_eod() against the stale capacity and hits the BUG() in
find_zone():&lt;/p&gt;
&lt;p&gt;kernel BUG at drivers/md/raid0.c:318!
 Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
 Call Trace:
   raid0_make_request
   md_handle_request
   submit_bio_noacct_nocheck
   block_read_full_folio
   read_part_sector
   bdev_disk_changed
   bdev_open&lt;/p&gt;
&lt;p&gt;Reject a size smaller than one chunk in both functions, so that a running
raid4/raid5 array always has mddev-&amp;gt;dev_sectors &amp;gt;= one chunk.&lt;/p&gt;
&lt;p&gt;The check is done where the value takes effect, not where it is assigned.
mddev-&amp;gt;dev_sectors is written from several places, and none of them can
tell whether the value is usable: the…&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/raid5: reject a per-device size smaller than one chunk&lt;/p&gt;
&lt;p&gt;Both raid5_run() and raid5_resize() align the per-device size down to a
whole multiple of the chunk size:&lt;/p&gt;
&lt;p&gt;mddev-&amp;gt;dev_sectors &amp;amp;= ~(chunk_sectors - 1);&lt;/p&gt;
&lt;p&gt;Neither checks the result, so a size smaller than one chunk silently
becomes zero.&lt;/p&gt;
&lt;p&gt;In raid5_run() that is harmless: the array size is derived from the same
zero, so the disk just ends up with no capacity.&lt;/p&gt;
&lt;p&gt;In raid5_resize() it leaves the array inconsistent -- mddev-&amp;gt;dev_sectors
becomes zero, while mddev-&amp;gt;array_sectors and the gendisk capacity keep the
previous. A later raid4/raid5 -&amp;gt; raid0 takeover copies the zero into every
rdev-&amp;gt;sectors (raid0_takeover_raid45()), so create_strip_zones() builds a
strip zone table whose zone_end is zero. Any read then passes
bio_check_eod() against the stale capacity and hits the BUG() in
find_zone():&lt;/p&gt;
&lt;p&gt;kernel BUG at drivers/md/raid0.c:318!
 Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
 Call Trace:
   raid0_make_request
   md_handle_request
   submit_bio_noacct_nocheck
   block_read_full_folio
   read_part_sector
   bdev_disk_changed
   bdev_open&lt;/p&gt;
&lt;p&gt;Reject a size smaller than one chunk in both functions, so that a running
raid4/raid5 array always has mddev-&amp;gt;dev_sectors &amp;gt;= one chunk.&lt;/p&gt;
&lt;p&gt;The check is done where the value takes effect, not where it is assigned.
mddev-&amp;gt;dev_sectors is written from several places, and none of them can
tell whether the value is usable: the…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139679</guid>
    </item>
  </channel>
</rss>
