CVE-2025-38258: Linux kernel · mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
Source GCVE Database
Not known to be exploited · CVSS 5.5 Low · fixed in c5d5b0047b0c0f304608f3824139f7bd34c48413 : update Linux kernel when convenient.
Data as of 13 Nov 2026, 20:42 UTC
Thin evidence
One scorer or none- Patch
- Available – fixed in c5d5b0047b0c0f304608f3824139f7bd34c48413, 490a43d07f1663d827e802720d30cbc0494e4f81, 4f489fe6afb395dbc79840efa3c05440b760d883 +1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 9 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade Linux kernel to c5d5b0047b0c0f304608f3824139f7bd34c48413, 490a43d07f1663d827e802720d30cbc0494e4f81, 4f489fe6afb395dbc79840efa3c05440b760d883 or 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
AI-suggested
A fix has been implemented in the Linux kernel to properly free the old memory buffer when writing to memcg_path, eliminating the memory leak. Users should update to the fixed kernel version once available. No other mitigation steps are indicated.
Description
CVE-2025-38258 is a medium severity vulnerability in the Linux kernel's memory management subsystem. It involves a memory leak caused by failure to free previously allocated memory when writing to the memcg_path sysfs file in the damon_sysfs_scheme_filter structure. This flaw allows local users with write access to the affected sysfs file to leak kernel memory by repeatedly writing data. The issue has been fixed by ensuring the old memory buffer is properly deallocated before assigning a new one.
References
- nvd.nist.gov/vuln/detail/CVE-2025-38258 (opens in a new tab)
- git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81 (opens in a new tab)
- git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1 (opens in a new tab)
- git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883 (opens in a new tab)
- git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413 (opens in a new tab)