CVE-2022-50088

Source
https://cve.org/CVERecord?id=CVE-2022-50088
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50088.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50088
Downstream
Published
2025-06-18T11:02:28.802Z
Modified
2026-03-20T12:22:32.500373Z
Summary
mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()
Details

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/reclaim: fix potential memory leak in damonreclaiminit()

damonreclaiminit() allocates a memory chunk for ctx with damonnewctx(). When damonselectops() fails, ctx is not released, which will lead to a memory leak.

We should release the ctx with damondestroyctx() when damonselectops() fails to fix the memory leak.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50088.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50088.json"