VDB

CVE-2025-38258

CVE-2025-38258 PUBLISHED

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.

PackageEcosystemFixed in
kernel-livepatch-6.12.37-61.105Amazon Linux1:1.0-0.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-headersAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12Amazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-develAmazon Linux1:6.12.37-61.105.amzn2023
linux_kernellinux6.15.5, 6.12.36, 6.6.96

Affected products

VendorProductVersions
LinuxLinux7ee161f18b5da5170b5d6a51aace49d312099128, 7ee161f18b5da5170b5d6a51aace49d312099128, 7ee161f18b5da5170b5d6a51aace49d312099128
LinuxLinux6.3, 0, 6.6.96
amazon:2023kernel-livepatch-6.12.37-61.1050
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-devel0
linuxlinux_kernel6.3, 6.3, 6.3
LinuxLinux0, 6.3, 6.6.96
amazon:2023python3-perf6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools0
amazon:2023bpftool6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023perf6.120

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

References

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