<?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://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-30T01:09:39.917075+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" 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://vulnerability.circl.lu/vuln/cve-2026-31458</id>
    <title>CVE-2026-31458 — mm/damon/sysfs: check contexts-&gt;nr before accessing contexts_arr[0]</title>
    <updated>2026-09-30T01:09:40.453078+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>mm/damon/sysfs: check contexts-&gt;nr before accessing contexts_arr[0]</p>
<p>Multiple sysfs command paths dereference contexts_arr[0] without first
verifying that kdamond-&gt;contexts-&gt;nr == 1.  A user can set nr_contexts to
0 via sysfs while DAMON is running, causing NULL pointer dereferences.</p>
<p>In more detail, the issue can be triggered by privileged users like
below.</p>
<p>First, start DAMON and make contexts directory empty
(kdamond-&gt;contexts-&gt;nr == 0).</p>
<p># damo start
    # cd /sys/kernel/mm/damon/admin/kdamonds/0
    # echo 0 &gt; contexts/nr_contexts</p>
<p>Then, each of below commands will cause the NULL pointer dereference.</p>
<p># echo update_schemes_stats &gt; state
    # echo update_schemes_tried_regions &gt; state
    # echo update_schemes_tried_bytes &gt; state
    # echo update_schemes_effective_quotas &gt; state
    # echo update_tuned_intervals &gt; state</p>
<p>Guard all commands (except OFF) at the entry point of
damon_sysfs_handle_cmd().</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-31458"/>
  </entry>
</feed>
