Bug 2373678 (CVE-2022-50088) - CVE-2022-50088 kernel: mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()
Summary: CVE-2022-50088 kernel: mm/damon/reclaim: fix potential memory leak in damon_r...
Keywords:
Status: NEW
Alias: CVE-2022-50088
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:13 UTC by OSIDB Bzimport
Modified: 2025-06-21 12:39 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:13:27 UTC
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.

Comment 1 Avinash Hanwate 2025-06-18 15:45:52 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061859-CVE-2022-50088-32bf@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.