CVE-2025-38258 Details
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.
A memory leak vulnerability has been identified in the Linux kernel's DAMON (Data Access Monitor) subsystem. The issue arises in the sysfs interface for DAMON memory management cgroups (memcg). When data is written to the memcg_path DAMOS sysfs file, the 'writememcg_path_store()' function allocates a new memory buffer for the 'memcg_path' attribute without freeing the previously allocated buffer. This oversight allows users to leak kernel memory by repeatedly writing data to the sysfs file.
The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81 | kernel.org | Patch |
| https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.3, < 6.6.96 >= 6.7, < 6.12.36 >= 6.13, < 6.15.5 6.16 rc1 6.16 rc2 6.16 rc3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 19, 2025 | Initial Analysis | [email protected] |
| Jul 9, 2025 | New CVE Received | kernel.org |