# mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write

CVE record · `CVE-2025-38258`

- **Identifiers:** `CVE-2025-38258`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 9 Jul 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 9 Jul 2025, 10:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `7ee161f18b5da5170b5d6a51aace49d312099128 to before 490a43d07f1663d827e802720d30cbc0494e4f81` (git)
  - affected: `7ee161f18b5da5170b5d6a51aace49d312099128 to before c5d5b0047b0c0f304608f3824139f7bd34c48413` (git)
  - affected: `7ee161f18b5da5170b5d6a51aace49d312099128 to before 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1` (git)
  - affected: `7ee161f18b5da5170b5d6a51aace49d312099128 to before 4f489fe6afb395dbc79840efa3c05440b760d883` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.3`
  - unaffected: `before 6.3` (semver)
  - unaffected: `6.6.96 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.36 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.5 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel from 6.3 until fixed is affected. Repeatedly writing to the memcg_path DAMOS sysfs file leaks kernel memory, because the previously allocated buffer is never freed. Upgrade to 6.6.96 or later in the 6.6 series, 6.12.36 or later in the 6.12 series, 6.15.5 or later in the 6.15 series, or 6.16 or later.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0017, the 6th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 9 Jul 2025, 10:42 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38258)
- 9 Jul 2025, 11:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38258)

## Sources

- [CVE List: CVE-2025-38258](https://www.cve.org/CVERecord?id=CVE-2025-38258)
- [NVD: CVE-2025-38258](https://nvd.nist.gov/vuln/detail/CVE-2025-38258)

### References from the CNA

- <https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81>
- <https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413>
- <https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1>
- <https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38258>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38258/>. Everything for agents: <https://agentprime.io/llms.txt>.
