CVE-2026-46121
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
28/05/2026
Last modified:
28/05/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lock<br />
<br />
Patch series "mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path".<br />
<br />
Reads of &#39;memcg_path&#39; and &#39;path&#39; files in DAMON sysfs interface could race<br />
with their writes, results in use-after-free. Fix those.<br />
<br />
<br />
This patch (of 2):<br />
<br />
damon_sysfs_scheme_filter->mmecg_path can be read and written by users,<br />
via DAMON sysfs memcg_path file. It can also be indirectly read, for the<br />
parameters {on,off}line committing to DAMON. The reads for parameters<br />
committing are protected by damon_sysfs_lock to avoid the sysfs files<br />
being destroyed while any of the parameters are being read. But the<br />
user-driven direct reads and writes are not protected by any lock, while<br />
the write is deallocating the memcg_path-pointing buffer. As a result,<br />
the readers could read the already freed buffer (user-after-free). Note<br />
that the user-reads don&#39;t race when the same open file is used by the<br />
writer, due to kernfs&#39;s open file locking. Nonetheless, doing the reads<br />
and writes with separate open files would be common. Fix it by protecting<br />
both the user-direct reads and writes with damon_sysfs_lock.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1e68eb96e8beb1abefd12dd22c5637795d8a877e
- https://git.kernel.org/stable/c/b1e9f2d5870776347edef927f9bb3ea19b8e3abb
- https://git.kernel.org/stable/c/baecc45ad60e621ef14d6c1e7f41ef36bbfdf910
- https://git.kernel.org/stable/c/c88802d0e8edd14b6cd2daf3000f99adbc4c85c5
- https://git.kernel.org/stable/c/eafd6f5372d29b0dd213799b92c2c9c7ad31d7da



