<?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:43:52 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143028 — dm: fix use-after-free when dm_get_device() widens the open mode</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143028</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: fix use-after-free when dm_get_device() widens the open mode&lt;/p&gt;
&lt;p&gt;There&amp;#39;s an UAF bug in dm_get_device(): when a table construction calls
dm_get_device() on the same device twice with widen access mode (e.g.,
read-only first then read-write), the second dm_get_device() calls
upgrade_mode(), which reopens the device in upgraded mode, making
previously returned dm_dev* a stale pointer.&lt;/p&gt;
&lt;p&gt;Fixing approaches:
- Add per-mode views (dm_dev_ref) from a per-device dm_dev_internal to
  multiple table_devices.
- Keep reusing the dm_dev_ref when the requested mode is included, i.e.,
  a read-only reference can reuse the read-write opened device within a
  table.
- Maintain a canonical block_device pointer in dm_dev_internal for
  handling the DM_TABLE_DEPS ioctl.&lt;/p&gt;
&lt;p&gt;Also tweak the way of mode sharing check in find_ref() to
&amp;#34;(x &amp;amp; mask) == mask&amp;#34;. The result stays the same to the previous
upgrade_mode() guard &amp;#34;(x | mask) == x&amp;#34;.&lt;/p&gt;
&lt;p&gt;Pros: keep the relationship between dm_dev_internal and table_device:
one dm_dev_internal per device, regardless the mode, so the output of
DMM_TABLE_DEPS ioctl unchanged.&lt;/p&gt;
&lt;p&gt;Cons: extra dm_dev_ref allocation.&lt;/p&gt;
&lt;p&gt;Note that now the table_device&amp;#39;s count not necessarily mean the number
tables referecing this &amp;lt;dev, mode&amp;gt; pair, since we&amp;#39;re allowing multiple
references within a table.&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: fix use-after-free when dm_get_device() widens the open mode&lt;/p&gt;
&lt;p&gt;There&amp;#39;s an UAF bug in dm_get_device(): when a table construction calls
dm_get_device() on the same device twice with widen access mode (e.g.,
read-only first then read-write), the second dm_get_device() calls
upgrade_mode(), which reopens the device in upgraded mode, making
previously returned dm_dev* a stale pointer.&lt;/p&gt;
&lt;p&gt;Fixing approaches:
- Add per-mode views (dm_dev_ref) from a per-device dm_dev_internal to
  multiple table_devices.
- Keep reusing the dm_dev_ref when the requested mode is included, i.e.,
  a read-only reference can reuse the read-write opened device within a
  table.
- Maintain a canonical block_device pointer in dm_dev_internal for
  handling the DM_TABLE_DEPS ioctl.&lt;/p&gt;
&lt;p&gt;Also tweak the way of mode sharing check in find_ref() to
&amp;#34;(x &amp;amp; mask) == mask&amp;#34;. The result stays the same to the previous
upgrade_mode() guard &amp;#34;(x | mask) == x&amp;#34;.&lt;/p&gt;
&lt;p&gt;Pros: keep the relationship between dm_dev_internal and table_device:
one dm_dev_internal per device, regardless the mode, so the output of
DMM_TABLE_DEPS ioctl unchanged.&lt;/p&gt;
&lt;p&gt;Cons: extra dm_dev_ref allocation.&lt;/p&gt;
&lt;p&gt;Note that now the table_device&amp;#39;s count not necessarily mean the number
tables referecing this &amp;lt;dev, mode&amp;gt; pair, since we&amp;#39;re allowing multiple
references within a table.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143028</guid>
    </item>
  </channel>
</rss>
