{"id":"CVE-2025-40227","summary":"mm/damon/sysfs: dealloc commit test ctx always","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs: dealloc commit test ctx always\n\nThe damon_ctx for testing online DAMON parameters commit inputs is\ndeallocated only when the test fails.  This means memory is leaked for\nevery successful online DAMON parameters commit.  Fix the leak by always\ndeallocating it.","modified":"2026-04-02T12:48:20.044855Z","published":"2025-12-04T15:31:18.839Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40227.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/139e7a572af0b45f558b5e502121a768dc328ba8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba236520ae53418859f4b7c7de3c71478d3c0b5a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40227.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40227"},{"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":"4c9ea539ad59ec60676930dacee02b7adde2e0c0"},{"fixed":"ba236520ae53418859f4b7c7de3c71478d3c0b5a"},{"fixed":"139e7a572af0b45f558b5e502121a768dc328ba8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40227.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.15.0"},{"fixed":"6.17.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40227.json"}}],"schema_version":"1.7.5"}