CVE-2025-38258
mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
Mitigation
- Upgrade Linux to 4f489fe6afb395dbc79840efa3c05440b760d883 or later.
Who should check
- Anyone running Linux >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 490a43d07f1663d827e802720d30cbc0494e4f81; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < c5d5b0047b0c0f304608f3824139f7bd34c48413; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4f489fe6afb395dbc79840efa3c05440b760d883
- Anyone running Linux 6.3
Vulnerability facts
- Affected
- Linux >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 490a43d07f1663d827e802720d30cbc0494e4f81; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < c5d5b0047b0c0f304608f3824139f7bd34c48413; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4f489fe6afb395dbc79840efa3c05440b760d883; Linux 6.3
- Fixed in
- Linux 490a43d07f1663d827e802720d30cbc0494e4f81, Linux 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1, Linux 4f489fe6afb395dbc79840efa3c05440b760d883
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 490a43d07f1663d827e802720d30cbc0494e4f81; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < c5d5b0047b0c0f304608f3824139f7bd34c48413; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4f489fe6afb395dbc79840efa3c05440b760d883 | — | cvelist |
| Linux | 6.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38258. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38258.md Affected: Linux >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 490a43d07f1663d827e802720d30cbc0494e4f81; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < c5d5b0047b0c0f304608f3824139f7bd34c48413; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1; >= 7ee161f18b5da5170b5d6a5… Fixed in: Linux 490a43d07f1663d827e802720d30cbc0494e4f81, Linux 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1, Linux 4f489fe6afb395dbc79840efa3c05440b760d883 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-38258 being exploited?
There is no confirmed exploitation: CVE-2025-38258 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38258?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38258?
Linux >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 490a43d07f1663d827e802720d30cbc0494e4f81; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < c5d5b0047b0c0f304608f3824139f7bd34c48413; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1; >= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4f489fe6afb395dbc79840efa3c05440b760d883; Linux 6.3.
Is there a fix for CVE-2025-38258?
Yes. Fixed in Linux 490a43d07f1663d827e802720d30cbc0494e4f81, Linux 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1, Linux 4f489fe6afb395dbc79840efa3c05440b760d883. Upgrade Linux to 4f489fe6afb395dbc79840efa3c05440b760d883 or later.
How do I check if I'm affected by CVE-2025-38258?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.