{"id":"CVE-2025-38258","aliases":["CVE-2025-38258"],"related":[],"kind":"vulnerability","state":"published","title":"mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write\n\nmemcg_path_store() assigns a newly allocated memory buffer to\nfilter->memcg_path, without deallocating the previously allocated and\nassigned memory buffer.  As a result, users can leak kernel memory by\ncontinuously writing a data to memcg_path DAMOS sysfs file.  Fix the leak\nby deallocating the previously set memory buffer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write\n\nmemcg_path_store() assigns a newly allocated memory buffer to\nfilter->memcg_path, without deallocating the previously allocated and\nassigned memory buffer.  As a result, users can leak kernel memory by\ncontinuously writing a data to memcg_path DAMOS sysfs file.  Fix the leak\nby deallocating the previously set memory buffer.","source":"cvelist"},{"lang":"es","text":"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-&gt;memcg_path al escribir en memcg_path_store() asigna un búfer de memoria recién asignado a filter-&gt;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.","source":"nvd"}],"published":"2025-07-09T10:42:35.000Z","modified":"2026-11-05T21:18:23.580Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"7ee161f18b5da5170b5d6a51aace49d312099128","fixed":"490a43d07f1663d827e802720d30cbc0494e4f81","status":"affected"},{"type":"git","introduced":"7ee161f18b5da5170b5d6a51aace49d312099128","fixed":"c5d5b0047b0c0f304608f3824139f7bd34c48413","status":"affected"},{"type":"git","introduced":"7ee161f18b5da5170b5d6a51aace49d312099128","fixed":"4a158ac0538dd5695eeaa00aa0720d711f3e4ef1","status":"affected"},{"type":"git","introduced":"7ee161f18b5da5170b5d6a51aace49d312099128","fixed":"4f489fe6afb395dbc79840efa3c05440b760d883","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.96","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.36","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.5","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.3","fixed":"6.6.96"},{"status":"affected","introduced":"6.7","fixed":"6.12.36"},{"status":"affected","introduced":"6.13","fixed":"6.15.5"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:52:32.042Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38258","url":"https://www.cve.org/CVERecord?id=CVE-2025-38258","licence":"CVE Terms of Use","modified":"2026-11-05T21:02:29.481Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38258","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38258","licence":"Public domain","modified":"2026-11-05T21:18:23.580Z"}],"updatedAt":"2026-11-25T22:59:01.015Z","epss":{"score":0.00267,"percentile":0.11708,"date":"2026-11-30T12:00:22.000Z"}}