<?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>Mon, 05 Oct 2026 05:44:10 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-50279 — dm cache: fix out-of-bounds access to the dirty bitset when resizing</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-50279</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 cache: fix out-of-bounds access to the dirty bitset when resizing&lt;/p&gt;
&lt;p&gt;dm-cache checks the dirty bits of the cache blocks to be dropped when
shrinking the fast device, but an index bug in bitset iteration causes
out-of-bounds access.&lt;/p&gt;
&lt;p&gt;Reproduce steps:&lt;/p&gt;
&lt;p&gt;1. create a cache device of 1024 cache blocks (128 bytes dirty bitset)&lt;/p&gt;
&lt;p&gt;dmsetup create cmeta --table &amp;#34;0 8192 linear /dev/sdc 0&amp;#34;
dmsetup create cdata --table &amp;#34;0 131072 linear /dev/sdc 8192&amp;#34;
dmsetup create corig --table &amp;#34;0 524288 linear /dev/sdc 262144&amp;#34;
dd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct
dmsetup create cache --table &amp;#34;0 524288 cache /dev/mapper/cmeta \
/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0&amp;#34;&lt;/p&gt;
&lt;p&gt;2. shrink the fast device to 512 cache blocks, triggering out-of-bounds
   access to the dirty bitset (offset 0x80)&lt;/p&gt;
&lt;p&gt;dmsetup suspend cache
dmsetup reload cdata --table &amp;#34;0 65536 linear /dev/sdc 8192&amp;#34;
dmsetup resume cdata
dmsetup resume cache&lt;/p&gt;
&lt;p&gt;KASAN reports:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: vmalloc-out-of-bounds in cache_preresume+0x269/0x7b0
  Read of size 8 at addr ffffc900000f3080 by task dmsetup/131&lt;/p&gt;
&lt;p&gt;(...snip...)
  The buggy address belongs to the virtual mapping at
   [ffffc900000f3000, ffffc900000f5000) created by:
   cache_ctr+0x176a/0x35f0&lt;/p&gt;
&lt;p&gt;(...snip...)
  Memory state around the buggy address:
   ffffc900000f2f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
   ffffc900000f3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00…&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 cache: fix out-of-bounds access to the dirty bitset when resizing&lt;/p&gt;
&lt;p&gt;dm-cache checks the dirty bits of the cache blocks to be dropped when
shrinking the fast device, but an index bug in bitset iteration causes
out-of-bounds access.&lt;/p&gt;
&lt;p&gt;Reproduce steps:&lt;/p&gt;
&lt;p&gt;1. create a cache device of 1024 cache blocks (128 bytes dirty bitset)&lt;/p&gt;
&lt;p&gt;dmsetup create cmeta --table &amp;#34;0 8192 linear /dev/sdc 0&amp;#34;
dmsetup create cdata --table &amp;#34;0 131072 linear /dev/sdc 8192&amp;#34;
dmsetup create corig --table &amp;#34;0 524288 linear /dev/sdc 262144&amp;#34;
dd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct
dmsetup create cache --table &amp;#34;0 524288 cache /dev/mapper/cmeta \
/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0&amp;#34;&lt;/p&gt;
&lt;p&gt;2. shrink the fast device to 512 cache blocks, triggering out-of-bounds
   access to the dirty bitset (offset 0x80)&lt;/p&gt;
&lt;p&gt;dmsetup suspend cache
dmsetup reload cdata --table &amp;#34;0 65536 linear /dev/sdc 8192&amp;#34;
dmsetup resume cdata
dmsetup resume cache&lt;/p&gt;
&lt;p&gt;KASAN reports:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: vmalloc-out-of-bounds in cache_preresume+0x269/0x7b0
  Read of size 8 at addr ffffc900000f3080 by task dmsetup/131&lt;/p&gt;
&lt;p&gt;(...snip...)
  The buggy address belongs to the virtual mapping at
   [ffffc900000f3000, ffffc900000f5000) created by:
   cache_ctr+0x176a/0x35f0&lt;/p&gt;
&lt;p&gt;(...snip...)
  Memory state around the buggy address:
   ffffc900000f2f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
   ffffc900000f3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-50279</guid>
    </item>
  </channel>
</rss>
