<?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>Wed, 30 Sep 2026 01:09:29 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31458 — mm/damon/sysfs: check contexts-&gt;nr before accessing contexts_arr[0]</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-31458</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: check contexts-&amp;gt;nr before accessing contexts_arr[0]&lt;/p&gt;
&lt;p&gt;Multiple sysfs command paths dereference contexts_arr[0] without first
verifying that kdamond-&amp;gt;contexts-&amp;gt;nr == 1.  A user can set nr_contexts to
0 via sysfs while DAMON is running, causing NULL pointer dereferences.&lt;/p&gt;
&lt;p&gt;In more detail, the issue can be triggered by privileged users like
below.&lt;/p&gt;
&lt;p&gt;First, start DAMON and make contexts directory empty
(kdamond-&amp;gt;contexts-&amp;gt;nr == 0).&lt;/p&gt;
&lt;p&gt;# damo start
    # cd /sys/kernel/mm/damon/admin/kdamonds/0
    # echo 0 &amp;gt; contexts/nr_contexts&lt;/p&gt;
&lt;p&gt;Then, each of below commands will cause the NULL pointer dereference.&lt;/p&gt;
&lt;p&gt;# echo update_schemes_stats &amp;gt; state
    # echo update_schemes_tried_regions &amp;gt; state
    # echo update_schemes_tried_bytes &amp;gt; state
    # echo update_schemes_effective_quotas &amp;gt; state
    # echo update_tuned_intervals &amp;gt; state&lt;/p&gt;
&lt;p&gt;Guard all commands (except OFF) at the entry point of
damon_sysfs_handle_cmd().&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: check contexts-&amp;gt;nr before accessing contexts_arr[0]&lt;/p&gt;
&lt;p&gt;Multiple sysfs command paths dereference contexts_arr[0] without first
verifying that kdamond-&amp;gt;contexts-&amp;gt;nr == 1.  A user can set nr_contexts to
0 via sysfs while DAMON is running, causing NULL pointer dereferences.&lt;/p&gt;
&lt;p&gt;In more detail, the issue can be triggered by privileged users like
below.&lt;/p&gt;
&lt;p&gt;First, start DAMON and make contexts directory empty
(kdamond-&amp;gt;contexts-&amp;gt;nr == 0).&lt;/p&gt;
&lt;p&gt;# damo start
    # cd /sys/kernel/mm/damon/admin/kdamonds/0
    # echo 0 &amp;gt; contexts/nr_contexts&lt;/p&gt;
&lt;p&gt;Then, each of below commands will cause the NULL pointer dereference.&lt;/p&gt;
&lt;p&gt;# echo update_schemes_stats &amp;gt; state
    # echo update_schemes_tried_regions &amp;gt; state
    # echo update_schemes_tried_bytes &amp;gt; state
    # echo update_schemes_effective_quotas &amp;gt; state
    # echo update_tuned_intervals &amp;gt; state&lt;/p&gt;
&lt;p&gt;Guard all commands (except OFF) at the entry point of
damon_sysfs_handle_cmd().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-31458</guid>
    </item>
  </channel>
</rss>
