<?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:22:17.142434+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-138850</id>
    <title>CVE-2026-138850 — misc: fastrpc: fix double-free in fastrpc_map_attach() error path</title>
    <updated>2026-12-04T19:22:17.144009+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>misc: fastrpc: fix double-free in fastrpc_map_attach() error path</p>
<p>map-&gt;table is assigned right after dma_buf_map_attachment_unlocked()
succeeds. The two failure checks that follow, the len &gt; map-&gt;size test
and, where subsystem VMIDs are configured, a failed qcom_scm_assign_mem(),
jump to map_err with map-&gt;table already set.</p>
<p>map_err manually calls dma_buf_detach() and dma_buf_put() and then falls
through to fastrpc_map_put(). Since that change the error path tail is
fastrpc_map_put() -&gt; fastrpc_free_map(), and fastrpc_free_map() already
unmaps, detaches and puts the dma-buf whenever map-&gt;table is set.
The two operations therefore run twice: the second dma_buf_put() drops an
extra reference on map-&gt;buf, and dma_buf_unmap_attachment_unlocked()
dereferences the map-&gt;attach already freed by the manual dma_buf_detach().
kref_init() sets the refcount to 1 with no intervening get, so the final
fastrpc_map_put() frees the map synchronously and the redundant cleanup is
deterministic.</p>
<p>The len &gt; map-&gt;size branch is reachable by an unprivileged process via
FASTRPC_IOCTL_MEM_MAP with an fd whose dma-buf is smaller than the
requested length, before any DSP invocation.</p>
<p>Route both map-&gt;table-is-set failure branches to get_err instead of
map_err, so fastrpc_free_map() is the single owner of the
unmap/detach/put sequence. map_err is retained for the
dma_buf_map_attachment_unlocked() failure, which is reached with
map-&gt;tab…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138850"/>
  </entry>
</feed>
