<?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:31:22 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143021 — dm snapshot: fix discard_granularity unit in snapshot_io_hints</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143021</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;dm snapshot: fix discard_granularity unit in snapshot_io_hints&lt;/p&gt;
&lt;p&gt;snapshot_io_hints() copies the snapshot store&amp;#39;s chunk_size, which is
in 512-byte sectors, into queue_limits.discard_granularity, which, like
all other members of struct queue_limits, is in bytes.&lt;/p&gt;
&lt;p&gt;For snapshots with a chunk size smaller than 512 sectors, e.g. the
16 KiB (32-sector) chunks created by the syzkaller reproducer, the
resulting granularity is smaller than a single sector.  When
dm_calculate_queue_limits() then stacks the target limits into the
table limits:&lt;/p&gt;
&lt;p&gt;blk_stack_limits(limits, &amp;amp;ti_limits, 0)&lt;/p&gt;
&lt;p&gt;queue_limit_discard_alignment() truncates that granularity to zero
sectors and sector_div() divides by zero:&lt;/p&gt;
&lt;p&gt;Oops: divide error: 0000 [#1] SMP KASAN NOPTI
  RIP: 0010:queue_limit_discard_alignment block/blk-settings.c:645 [inline]
  RIP: 0010:blk_stack_limits+0x1105/0x2d00 block/blk-settings.c:916
  Call Trace:
   dm_calculate_queue_limits+0x70c/0x1510 drivers/md/dm-table.c:1823
   dm_setup_md_queue+0x199/0x4f0 drivers/md/dm.c:2618
   table_load+0x4fd/0x8a0 drivers/md/dm-ioctl.c:1661&lt;/p&gt;
&lt;p&gt;The divide fault itself only became reachable when commit e924da7d6622
(&amp;#34;block: Drop granularity check in queue_limit_discard_alignment()&amp;#34;)
removed the check for a sub-sector granularity in v6.13.  Kernels
before that returned a zero discard alignment instead of faulting, but
they still advertised a granularity 512 times too small.&lt;/p&gt;
&lt;p&gt;Use the same chunk_siz…&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;dm snapshot: fix discard_granularity unit in snapshot_io_hints&lt;/p&gt;
&lt;p&gt;snapshot_io_hints() copies the snapshot store&amp;#39;s chunk_size, which is
in 512-byte sectors, into queue_limits.discard_granularity, which, like
all other members of struct queue_limits, is in bytes.&lt;/p&gt;
&lt;p&gt;For snapshots with a chunk size smaller than 512 sectors, e.g. the
16 KiB (32-sector) chunks created by the syzkaller reproducer, the
resulting granularity is smaller than a single sector.  When
dm_calculate_queue_limits() then stacks the target limits into the
table limits:&lt;/p&gt;
&lt;p&gt;blk_stack_limits(limits, &amp;amp;ti_limits, 0)&lt;/p&gt;
&lt;p&gt;queue_limit_discard_alignment() truncates that granularity to zero
sectors and sector_div() divides by zero:&lt;/p&gt;
&lt;p&gt;Oops: divide error: 0000 [#1] SMP KASAN NOPTI
  RIP: 0010:queue_limit_discard_alignment block/blk-settings.c:645 [inline]
  RIP: 0010:blk_stack_limits+0x1105/0x2d00 block/blk-settings.c:916
  Call Trace:
   dm_calculate_queue_limits+0x70c/0x1510 drivers/md/dm-table.c:1823
   dm_setup_md_queue+0x199/0x4f0 drivers/md/dm.c:2618
   table_load+0x4fd/0x8a0 drivers/md/dm-ioctl.c:1661&lt;/p&gt;
&lt;p&gt;The divide fault itself only became reachable when commit e924da7d6622
(&amp;#34;block: Drop granularity check in queue_limit_discard_alignment()&amp;#34;)
removed the check for a sub-sector granularity in v6.13.  Kernels
before that returned a zero discard alignment instead of faulting, but
they still advertised a granularity 512 times too small.&lt;/p&gt;
&lt;p&gt;Use the same chunk_siz…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143021</guid>
    </item>
  </channel>
</rss>
