All vulnerabilities

Servers and applications

CVE-2026-46121

mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lock

Severity
Unrated
Published
28 May 2026
Last changed
6 Nov 2026
Added to UpHeron
6 Nov 2026
Fixed in
6.6.140, 6.12.88, 6.16, 6.18.30, 7.0.7
Exploit chance
0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 19 Nov 2026
Sources
CVE Program

Description

In the Linux kernel, the following vulnerability has been resolved:

Patch series "mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path".

Reads of 'memcg_path' and 'path' files in DAMON sysfs interface could race with their writes, results in use-after-free. Fix those.

This patch (of 2):

damon_sysfs_scheme_filter->mmecg_path can be read and written by users, via DAMON sysfs memcg_path file. It can also be indirectly read, for the parameters {on,off}line committing to DAMON. The reads for parameters committing are protected by damon_sysfs_lock to avoid the sysfs files being destroyed while any of the parameters are being read. But the user-driven direct reads and writes are not protected by any lock, while the write is deallocating the memcg_path-pointing buffer. As a result, the readers could read the already freed buffer (user-after-free). Note that the user-reads don't race when the same open file is used by the writer, due to kernfs's open file locking.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.0.7
  • From 6.16 before 6.6.140
  • From 6.15.5 before 6.16
  • From 6.13 before 6.18.30
All 7 release lines
  • From 6.6.96 before 6.6.140
  • From 6.7 before 6.12.88
  • From 6.12.36 before 6.12.88
  • From 6.13 before 6.18.30
  • From 6.15.5 before 6.16
  • From 6.16 before 6.6.140
  • From 6.19 before 7.0.7

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-46121