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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50088.json"
}