{"id":"CVE-2022-50088","state":"PUBLISHED","title":"mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()","description":"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.","publishedAt":"2025-06-18T11:02:28.802Z","updatedAt":"2026-05-11T19:12:35.817Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d","status":"affected","lessThan":"9d3e9e1e0856f4c905bbb870f16f42ae72477071","versionType":"git"},{"version":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d","status":"affected","lessThan":"700aa4e11a3c4d2a44d06758db431a013d9e1b61","versionType":"git"},{"version":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d","status":"affected","lessThan":"188043c7f4f2bd662f2a55957d684fffa543e600","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/reclaim.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/reclaim.c"]}],"references":["https://git.kernel.org/stable/c/9d3e9e1e0856f4c905bbb870f16f42ae72477071","https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61","https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50088.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50088","state":"PUBLISHED","datePublished":"2025-06-18T11:02:28.802Z","dateUpdated":"2026-05-11T19:12:35.817Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.410Z"},"containers":{"cna":{"title":"mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d","status":"affected","lessThan":"9d3e9e1e0856f4c905bbb870f16f42ae72477071","versionType":"git"},{"version":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d","status":"affected","lessThan":"700aa4e11a3c4d2a44d06758db431a013d9e1b61","versionType":"git"},{"version":"4d69c3457821100a39fa8c6e0c23ed910bb6c29d","status":"affected","lessThan":"188043c7f4f2bd662f2a55957d684fffa543e600","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/reclaim.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"5.18.18","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19.2","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/reclaim.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9d3e9e1e0856f4c905bbb870f16f42ae72477071"},{"url":"https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61"},{"url":"https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:12:35.817Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}