{"id":"CVE-2025-38258","summary":"mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter-\u003ememcg_path on write","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter-\u003ememcg_path on write\n\nmemcg_path_store() assigns a newly allocated memory buffer to\nfilter-\u003ememcg_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.","modified":"2026-04-16T04:38:19.064438109Z","published":"2025-07-09T10:42:35Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38258.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38258.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38258"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7ee161f18b5da5170b5d6a51aace49d312099128"},{"fixed":"490a43d07f1663d827e802720d30cbc0494e4f81"},{"fixed":"c5d5b0047b0c0f304608f3824139f7bd34c48413"},{"fixed":"4a158ac0538dd5695eeaa00aa0720d711f3e4ef1"},{"fixed":"4f489fe6afb395dbc79840efa3c05440b760d883"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38258.json"}}],"schema_version":"1.7.5"}