Vulnerabilities · 2025 · Linux
CVE-2025-38258
Linux Kernel vulnerability
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 products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81 · Patch
- git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1 · Patch
- git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883 · Patch
- git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-38258
- cve.org/CVERecord?id=CVE-2025-38258
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.