{"id":"CVE-2022-50088","summary":"mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/reclaim: fix potential memory leak in damon_reclaim_init()\n\ndamon_reclaim_init() allocates a memory chunk for ctx with\ndamon_new_ctx().  When damon_select_ops() fails, ctx is not released,\nwhich will lead to a memory leak.\n\nWe should release the ctx with damon_destroy_ctx() when damon_select_ops()\nfails to fix the memory leak.","modified":"2026-08-12T03:51:49.003734750Z","published":"2025-06-18T11:02:28.802Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50088.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600"},{"type":"WEB","url":"https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d3e9e1e0856f4c905bbb870f16f42ae72477071"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50088.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50088"},{"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":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d"},{"fixed":"9d3e9e1e0856f4c905bbb870f16f42ae72477071"},{"fixed":"700aa4e11a3c4d2a44d06758db431a013d9e1b61"},{"fixed":"188043c7f4f2bd662f2a55957d684fffa543e600"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50088.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"5.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"5.19.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50088.json"}}],"schema_version":"1.9.0"}