# CVE-2022-50088: mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:28.802Z
- Modified: 2026-11-05T20:17:23.250Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

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

damon_reclaim_init() allocates a memory chunk for ctx with
damon_new_ctx().  When damon_select_ops() fails, ctx is not released,
which will lead to a memory leak.

We should release the ctx with damon_destroy_ctx() when damon_select_ops()
fails to fix the memory leak.

(As written by CVE List.)

## Affected

- Linux Linux: from 4d69c3457821100a39fa8c6e0c23ed910bb6c29d before 9d3e9e1e0856f4c905bbb870f16f42ae72477071; from 4d69c3457821100a39fa8c6e0c23ed910bb6c29d before 700aa4e11a3c4d2a44d06758db431a013d9e1b61; from 4d69c3457821100a39fa8c6e0c23ed910bb6c29d before 188043c7f4f2bd662f2a55957d684fffa543e600; 5.18 (not affected: before 5.18; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.18 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/9d3e9e1e0856f4c905bbb870f16f42ae72477071> (patch)
- <https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61> (patch)
- <https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600> (patch)

## Sources

- CVE List: [CVE-2022-50088](https://www.cve.org/CVERecord?id=CVE-2022-50088), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50088](https://nvd.nist.gov/vuln/detail/CVE-2022-50088), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50088 · Whole record: https://cve.day/CVE-2022-50088.json · Rebuilt by cve.day 2026-11-25T22:58:21.047Z
