{"id":"CVE-2025-38258","published":"2025-07-09T10:42:35Z","modified":"2026-11-05T21:02:29Z","title":"mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0017,"percentile":0.06497,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/490a43d07f1663d827e802720d30cbc0494e4f81","tags":[]},{"url":"https://git.kernel.org/stable/c/c5d5b0047b0c0f304608f3824139f7bd34c48413","tags":[]},{"url":"https://git.kernel.org/stable/c/4a158ac0538dd5695eeaa00aa0720d711f3e4ef1","tags":[]},{"url":"https://git.kernel.org/stable/c/4f489fe6afb395dbc79840efa3c05440b760d883","tags":[]}],"priority":{"score":1.3,"factors":[{"name":"EPSS percentile","points":1.3}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7ee161f18b5da5170b5d6a51aace49d312099128, < 490a43d07f1663d827e802720d30cbc0494e4f81",">= 7ee161f18b5da5170b5d6a51aace49d312099128, < c5d5b0047b0c0f304608f3824139f7bd34c48413",">= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4a158ac0538dd5695eeaa00aa0720d711f3e4ef1",">= 7ee161f18b5da5170b5d6a51aace49d312099128, < 4f489fe6afb395dbc79840efa3c05440b760d883"]},{"vendor":"Linux","product":"Linux","versions":["6.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T20:52:32.042583Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-20803","exploited":false,"provenance":"source"}}