CVE-2025-38258
mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
Reported by linux · Published July 9, 2025
In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write memcg_path_store() assigns a newly allocated memory buffer to filter->memcg_path, without deallocating the previously allocated and assigned memory buffer. As a result, users can leak kernel memory by continuously writing a data to memcg_path DAMOS sysfs file. Fix the leak by deallocating the previously set memory buffer.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.12.37-61.105 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| linux_kernel | linux | 6.15.5, 6.12.36, 6.6.96 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 7ee161f18b5da5170b5d6a51aace49d312099128, 7ee161f18b5da5170b5d6a51aace49d312099128, 7ee161f18b5da5170b5d6a51aace49d312099128 |
| Linux | Linux | 6.3, 0, 6.6.96 |
| amazon:2023 | kernel-livepatch-6.12.37-61.105 | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| linux | linux_kernel | 6.3, 6.3, 6.3 |
| Linux | Linux | 0, 6.3, 6.6.96 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | perf6.12 | 0 |
Timeline
- Jul 8, 2025 CVE Published
- Jul 9, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (9 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (141 in total, the first dated here)
- Mar 29, 2026 Security Advisory (148 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38258
vulnetix vdb fixes CVE-2025-38258
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-2025-38258/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart