CVE-2026-46121
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel-livepatch-6.18.30-61.116 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-livepatch-6.12.88-119.157 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| linux_kernel | linux | 7.0.7, 6.18.30, 6.16, 6.12.88, 6.6.140 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 490a43d07f1663d827e802720d30cbc0494e4f81, c5d5b0047b0c0f304608f3824139f7bd34c48413, 4f489fe6afb395dbc79840efa3c05440b760d883 |
| Linux | Linux | 6.16, 0, 6.6.140 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.30-61.116 | 0 |
| amazon:2023 | kernel-livepatch-6.12.88-119.157 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| linux | linux_kernel | 6.16, 6.16, 6.12.36 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
…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