{"schema_version":"1.7.5","id":"CVE-2025-38258","published":"2025-07-09T10:42:35Z","modified":"2026-07-15T01:49:03.424926319Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2026:20560-1","openSUSE-SU-2025:20081-1"],"summary":"mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_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->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.","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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.6.96"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.36"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.15.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38258.json"}}],"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38258.json"}}