5.5medium
mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.27% (higher than 12% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7ee161f18b5da5170b5d6a51aace49d312099128 before 490a43d07f1663d827e802720d30cbc0494e4f81, from 7ee161f18b5da5170b5d6a51aace49d312099128 before c5d5b0047b0c0f304608f3824139f7bd34c48413, from 7ee161f18b5da5170b5d6a51aace49d312099128 before 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1, from 7ee161f18b5da5170b5d6a51aace49d312099128 before 4f489fe6afb395dbc79840efa3c05440b760d883, 6.3 Not affected: before 6.3, from 6.6.96 up to 6.6.*, from 6.12.36 up to 6.12.*, from 6.15.5 up to 6.15.*, from 6.16 up to * | CVE List |
| linux linux_kernel | from 6.3 before 6.6.96, from 6.7 before 6.12.36, from 6.13 before 6.15.5, 6.16 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/damon/sysfs-schemes: la liberación de la antigua ruta damon_sysfs_scheme_filter->memcg_path al escribir en memcg_path_store() asigna un búfer de memoria recién asignado a filter->memcg_path, sin liberar el búfer de memoria previamente asignado. Como resultado, los usuarios pueden perder memoria del kernel escribiendo continuamente datos en el archivo sysfs de DAMOS, memcg_path. Para solucionar la pérdida, libere el búfer de memoria previamente asignado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-38258 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2025-38258 changed 2026-11-05 | Public domain |