2084AI Security Observatory

CVE

CVE-2026-46121

CVE-2026-46121HIGH 7.8EPSS 2%

CNA description

In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lock 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. Nonetheless, doing the reads and writes with separate open files would be common. Fix it by protecting both the user-direct reads and writes with damon_sysfs_lock.

Affected versions

All Linux kernel vulnerabilities →

  • 7.1-rc1This version only
  • ≥ 6.19, < 7.0.7Fixed in 7.0.7
  • ≥ 6.16.1, < 6.18.30Fixed in 6.18.30
  • 6.16This version only
  • 6.16-rc7This version only
  • 6.16-rc6This version only
  • 6.16-rc5This version only
  • 6.16-rc4This version only
  • ≥ 6.15.5, < 6.16Fixed in 6.16
  • ≥ 6.12.36, < 6.12.88Fixed in 6.12.88
  • ≥ 6.6.96, < 6.6.140Fixed in 6.6.140

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.