<?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:22:08 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138850 — misc: fastrpc: fix double-free in fastrpc_map_attach() error path</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138850</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;misc: fastrpc: fix double-free in fastrpc_map_attach() error path&lt;/p&gt;
&lt;p&gt;map-&amp;gt;table is assigned right after dma_buf_map_attachment_unlocked()
succeeds. The two failure checks that follow, the len &amp;gt; map-&amp;gt;size test
and, where subsystem VMIDs are configured, a failed qcom_scm_assign_mem(),
jump to map_err with map-&amp;gt;table already set.&lt;/p&gt;
&lt;p&gt;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() -&amp;gt; fastrpc_free_map(), and fastrpc_free_map() already
unmaps, detaches and puts the dma-buf whenever map-&amp;gt;table is set.
The two operations therefore run twice: the second dma_buf_put() drops an
extra reference on map-&amp;gt;buf, and dma_buf_unmap_attachment_unlocked()
dereferences the map-&amp;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.&lt;/p&gt;
&lt;p&gt;The len &amp;gt; map-&amp;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.&lt;/p&gt;
&lt;p&gt;Route both map-&amp;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-&amp;gt;tab…&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;misc: fastrpc: fix double-free in fastrpc_map_attach() error path&lt;/p&gt;
&lt;p&gt;map-&amp;gt;table is assigned right after dma_buf_map_attachment_unlocked()
succeeds. The two failure checks that follow, the len &amp;gt; map-&amp;gt;size test
and, where subsystem VMIDs are configured, a failed qcom_scm_assign_mem(),
jump to map_err with map-&amp;gt;table already set.&lt;/p&gt;
&lt;p&gt;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() -&amp;gt; fastrpc_free_map(), and fastrpc_free_map() already
unmaps, detaches and puts the dma-buf whenever map-&amp;gt;table is set.
The two operations therefore run twice: the second dma_buf_put() drops an
extra reference on map-&amp;gt;buf, and dma_buf_unmap_attachment_unlocked()
dereferences the map-&amp;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.&lt;/p&gt;
&lt;p&gt;The len &amp;gt; map-&amp;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.&lt;/p&gt;
&lt;p&gt;Route both map-&amp;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-&amp;gt;tab…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138850</guid>
    </item>
  </channel>
</rss>
