CVE-2022-50088

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

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4d69c3457821100a39fa8c6e0c23ed910bb6c29d to before 9d3e9e1e0856f4c905bbb870f16f42ae72477071Affected
  • 4d69c3457821100a39fa8c6e0c23ed910bb6c29d to before 700aa4e11a3c4d2a44d06758db431a013d9e1b61Affected
  • 4d69c3457821100a39fa8c6e0c23ed910bb6c29d to before 188043c7f4f2bd662f2a55957d684fffa543e600Affected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.