5.5medium
mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 5.18 before 5.18.18, from 5.19 before 5.19.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/damon/reclaim: se corrige una posible fuga de memoria en damon_reclaim_init(). damon_reclaim_init() asigna un fragmento de memoria para ctx con damon_new_ctx(). Cuando damon_select_ops() falla, ctx no se libera, lo que provoca una fuga de memoria. DeberÃamos liberar ctx con damon_destroy_ctx() cuando damon_select_ops() no solucione la fuga de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50088 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2022-50088 changed 2026-11-05 | Public domain |