<?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-11-20T21:23:27.612593+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-99521</id>
    <title>CVE-2026-99521 — rapidio: mport_cdev: fix use-after-free in mport_mm_close()</title>
    <updated>2026-11-20T21:23:27.613806+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>rapidio: mport_cdev: fix use-after-free in mport_mm_close()</p>
<p>A use-after-free vulnerability was identified in mport_mm_close() in
drivers/rapidio/devices/rio_mport_cdev.c, identical to the pattern
previously addressed in dma_req_free().</p>
<p>This is observable from userspace when an application creates an mmap
mapping via the RapidIO character device and subsequently unmaps it (or
terminates, triggering exit_mmap()).  During munmap, mport_mm_close() is
invoked and drops the mapping reference via kref_put().</p>
<p>If kref_put() drops the last reference, mport_release_mapping() is called,
which frees the underlying rio_mport_mapping structure.  The subsequent
mutex_unlock() then dereferences map-&gt;md to unlock buf_mutex, leading to a
use-after-free:</p>
<p>mport_mm_close()
     -&gt; mutex_lock(&amp;map-&gt;md-&gt;buf_mutex);
     ...
     -&gt; kref_put(&amp;map-&gt;ref, mport_release_mapping); /* map is freed */
     -&gt; mutex_unlock(&amp;map-&gt;md-&gt;buf_mutex);          /* UAF: map used */</p>
<p>Fix this by caching map-&gt;md before kref_put() and using the cached pointer
for mutex unlocking, ensuring that freed memory is not accessed.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-99521"/>
  </entry>
</feed>
