VDB

CVE-2026-46121

CVE-2026-46121 PUBLISHED

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

Reported by linux · Published May 28, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-tools-develAmazon Linux1:6.12.88-119.157.amzn2023
perf6.18Amazon Linux1:6.18.30-61.116.amzn2023
kernel-livepatch-6.18.30-61.116Amazon Linux1:1.0-0.amzn2023
kernel-livepatch-6.12.88-119.157Amazon Linux1:1.0-0.amzn2023
kernel6.18-develAmazon Linux1:6.18.30-61.116.amzn2023
kernel6.18Amazon Linux1:6.18.30-61.116.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.30-61.116.amzn2023
kernel6.12-headersAmazon Linux1:6.12.88-119.157.amzn2023
linux_kernellinux7.0.7, 6.18.30, 6.16, 6.12.88, 6.6.140

Affected products

VendorProductVersions
LinuxLinux490a43d07f1663d827e802720d30cbc0494e4f81, c5d5b0047b0c0f304608f3824139f7bd34c48413, 4f489fe6afb395dbc79840efa3c05440b760d883
LinuxLinux6.16, 0, 6.6.140
amazon:2023kernel6.12-tools-devel0
amazon:2023perf6.180
amazon:2023kernel-livepatch-6.18.30-61.1160
amazon:2023kernel-livepatch-6.12.88-119.1570
amazon:2023kernel6.18-devel0
amazon:2023kernel6.180
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-headers0
linuxlinux_kernel6.16, 6.16, 6.12.36
amazon:2023python3-perf6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool6.120
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.120
amazon:2023kernel6.12-devel0
amazon:2023kernel6.18-tools0
amazon:2023python3-perf6.180
amazon:2023kernel6.18-modules-extra-common0

…and 6 more

Timeline

  • May 27, 2026 CVE Published
  • May 28, 2026 EPSS Score (14 in total, the first dated here)
  • Jun 1, 2026 Security Advisory (131 in total, the first dated here)
  • Jun 4, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-46121
vulnetix vdb fixes CVE-2026-46121

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-46121/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›