CVE-2025-38258
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-401CVE-2025-38258 is a Memory Leak vulnerability
What is Memory Leak?
The product does not release memory after use, causing gradual resource exhaustion. Learn more on MITRE CWE
Affected versions
Linux kernel versions
6.3
and later are affected. Fixed in
6.6.96,
6.12.36,
6.15.5,
6.16
and their respective stable series.
References
The following references provide additional information about CVE-2025-38258 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1
-
PatchKernel patch commithttps://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883
Frequently asked questions
-
What is CVE-2025-38258?
CVE-2025-38258 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as a Memory Leak flaw (CWE-401) . It affects Linux kernel versions from 6.3 onward and has been patched in 6.6.96, 6.12.36, 6.15.5 and others. CVE-2025-38258 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-38258?
CVE-2025-38258 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2025-38258?
Yes — CVE-2025-38258 has been patched. Fixed versions include 6.6.96, 6.12.36, 6.15.5 and others. If you are running Linux kernel 6.3 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-38258 actively exploited?
No — CVE-2025-38258 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Memory Leak (CWE-401)?
The product does not release memory after use, causing gradual resource exhaustion. View CWE-401 on MITRE CWE →