<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:17:34.518592+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-143028</id>
    <title>CVE-2026-143028 — dm: fix use-after-free when dm_get_device() widens the open mode</title>
    <updated>2026-12-04T19:17:34.520095+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>dm: fix use-after-free when dm_get_device() widens the open mode</p>
<p>There'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.</p>
<p>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.</p>
<p>Also tweak the way of mode sharing check in find_ref() to
"(x &amp; mask) == mask". The result stays the same to the previous
upgrade_mode() guard "(x | mask) == x".</p>
<p>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.</p>
<p>Cons: extra dm_dev_ref allocation.</p>
<p>Note that now the table_device's count not necessarily mean the number
tables referecing this &lt;dev, mode&gt; pair, since we're allowing multiple
references within a table.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-143028"/>
  </entry>
</feed>
