<?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:54:08 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139214 — perf: Fix UAF in attach_task_ctx_data()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139214</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;perf: Fix UAF in attach_task_ctx_data()&lt;/p&gt;
&lt;p&gt;struct perf_ctx_data is RCU protected. In attach_task_ctx_data(),
the cmpxchg retry loop runs without holding rcu_read_lock(). If
task-&amp;gt;perf_ctx_data already holds a pointer (call it `cd1`), then
try_cmpxchg(&amp;amp;task-&amp;gt;perf_ctx_data, &amp;amp;old, cd) fails and loads old = cd1.
A concurrent thread running detach_task_ctx_data() could free cd1
leading to UAF and further memory corruption when cd1 is reclaimed by
another thread.&lt;/p&gt;
&lt;p&gt;CPU 0: attach_task_ctx_data()     CPU 1: detach_task_ctx_data()
  -----------------------------     -----------------------------
  try_cmpxchg(&amp;amp;task-&amp;gt;perf_ctx_data,
              &amp;amp;old, cd2)
    -&amp;gt; fails; loads old = cd1&lt;/p&gt;
&lt;p&gt;refcount_dec_and_test(&amp;amp;cd1-&amp;gt;refcount)
                                    try_cmpxchg(&amp;amp;task-&amp;gt;perf_ctx_data,
                                                &amp;amp;cd1, NULL)
                                    perf_free_ctx_data_rcu(cd1)
                                    [ RCU grace period -&amp;gt; kfree(cd1) ]&lt;/p&gt;
&lt;p&gt;refcount_inc_not_zero(&amp;amp;old-&amp;gt;refcount)
    -&amp;gt; UAF on freed cd1&lt;/p&gt;
&lt;p&gt;Fix this by taking rcu_read_lock across the race window.&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;perf: Fix UAF in attach_task_ctx_data()&lt;/p&gt;
&lt;p&gt;struct perf_ctx_data is RCU protected. In attach_task_ctx_data(),
the cmpxchg retry loop runs without holding rcu_read_lock(). If
task-&amp;gt;perf_ctx_data already holds a pointer (call it `cd1`), then
try_cmpxchg(&amp;amp;task-&amp;gt;perf_ctx_data, &amp;amp;old, cd) fails and loads old = cd1.
A concurrent thread running detach_task_ctx_data() could free cd1
leading to UAF and further memory corruption when cd1 is reclaimed by
another thread.&lt;/p&gt;
&lt;p&gt;CPU 0: attach_task_ctx_data()     CPU 1: detach_task_ctx_data()
  -----------------------------     -----------------------------
  try_cmpxchg(&amp;amp;task-&amp;gt;perf_ctx_data,
              &amp;amp;old, cd2)
    -&amp;gt; fails; loads old = cd1&lt;/p&gt;
&lt;p&gt;refcount_dec_and_test(&amp;amp;cd1-&amp;gt;refcount)
                                    try_cmpxchg(&amp;amp;task-&amp;gt;perf_ctx_data,
                                                &amp;amp;cd1, NULL)
                                    perf_free_ctx_data_rcu(cd1)
                                    [ RCU grace period -&amp;gt; kfree(cd1) ]&lt;/p&gt;
&lt;p&gt;refcount_inc_not_zero(&amp;amp;old-&amp;gt;refcount)
    -&amp;gt; UAF on freed cd1&lt;/p&gt;
&lt;p&gt;Fix this by taking rcu_read_lock across the race window.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139214</guid>
    </item>
  </channel>
</rss>
