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

Status: published. Published: 2025-07-09. Updated: 2026-11-05.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 7ee161f18b5da5170b5d6a51aace49d312099128; < 490a43d07f1663d827e802720d30cbc0494e4f81 (affected, git); ≥ 7ee161f18b5da5170b5d6a51aace49d312099128; < c5d5b0047b0c0f304608f3824139f7bd34c48413 (affected, git); ≥ 7ee161f18b5da5170b5d6a51aace49d312099128; < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1 (affected, git); ≥ 7ee161f18b5da5170b5d6a51aace49d312099128; < 4f489fe6afb395dbc79840efa3c05440b760d883 (affected, git). Source: CNA: Linux
- Linux / Linux: 6.3 (affected); ≥ 0; < 6.3 (unaffected, semver); ≥ 6.6.96; ≤ 6.6.* (unaffected, semver); ≥ 6.12.36; ≤ 6.12.* (unaffected, semver); ≥ 6.15.5; ≤ 6.15.* (unaffected, semver); ≥ 6.16; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-05; percentile 5.85%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81 (CNA: Linux)

- https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413 (CNA: Linux)

- https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1 (CNA: Linux)

- https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883 (CNA: Linux)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2025-38258; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2025-38258; retrieved 2026-11-05; source updated Not reported

Revision: fa83ea7c8fc5192d9ad063b02661e6e6bc5a1e0daf3f7ae643c8df16310294fe

Canonical: https://y2.dev/cve/CVE-2025-38258

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.