<?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://vulnerability.circl.lu</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>Thu, 01 Oct 2026 07:45:43 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-39877 — mm/damon/sysfs: fix use-after-free in state_show()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-39877</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;mm/damon/sysfs: fix use-after-free in state_show()&lt;/p&gt;
&lt;p&gt;state_show() reads kdamond-&amp;gt;damon_ctx without holding damon_sysfs_lock. 
This allows a use-after-free race:&lt;/p&gt;
&lt;p&gt;CPU 0                         CPU 1
-----                         -----
state_show()                  damon_sysfs_turn_damon_on()
ctx = kdamond-&amp;gt;damon_ctx;     mutex_lock(&amp;amp;damon_sysfs_lock);
                              damon_destroy_ctx(kdamond-&amp;gt;damon_ctx);
                              kdamond-&amp;gt;damon_ctx = NULL;
                              mutex_unlock(&amp;amp;damon_sysfs_lock);
damon_is_running(ctx);        /* ctx is freed */
mutex_lock(&amp;amp;ctx-&amp;gt;kdamond_lock); /* UAF */&lt;/p&gt;
&lt;p&gt;(The race can also occur with damon_sysfs_kdamonds_rm_dirs() and
damon_sysfs_kdamond_release(), which free or replace the context under
damon_sysfs_lock.)&lt;/p&gt;
&lt;p&gt;Fix by taking damon_sysfs_lock before dereferencing the context, mirroring
the locking used in pid_show().&lt;/p&gt;
&lt;p&gt;The bug has existed since state_show() first accessed kdamond-&amp;gt;damon_ctx.&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;mm/damon/sysfs: fix use-after-free in state_show()&lt;/p&gt;
&lt;p&gt;state_show() reads kdamond-&amp;gt;damon_ctx without holding damon_sysfs_lock. 
This allows a use-after-free race:&lt;/p&gt;
&lt;p&gt;CPU 0                         CPU 1
-----                         -----
state_show()                  damon_sysfs_turn_damon_on()
ctx = kdamond-&amp;gt;damon_ctx;     mutex_lock(&amp;amp;damon_sysfs_lock);
                              damon_destroy_ctx(kdamond-&amp;gt;damon_ctx);
                              kdamond-&amp;gt;damon_ctx = NULL;
                              mutex_unlock(&amp;amp;damon_sysfs_lock);
damon_is_running(ctx);        /* ctx is freed */
mutex_lock(&amp;amp;ctx-&amp;gt;kdamond_lock); /* UAF */&lt;/p&gt;
&lt;p&gt;(The race can also occur with damon_sysfs_kdamonds_rm_dirs() and
damon_sysfs_kdamond_release(), which free or replace the context under
damon_sysfs_lock.)&lt;/p&gt;
&lt;p&gt;Fix by taking damon_sysfs_lock before dereferencing the context, mirroring
the locking used in pid_show().&lt;/p&gt;
&lt;p&gt;The bug has existed since state_show() first accessed kdamond-&amp;gt;damon_ctx.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-39877</guid>
    </item>
  </channel>
</rss>
