mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.18.18, 5.19.2
- CVEs
- CVE-2022-50088
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:27 UTC · Revision 1
Source evidence
mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()
core-osv · Original sourcePublished 18 Jun 2025, 11:02 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.
osv:CVE-2022-50088
Kernel
Fixed versions: 5.18.18, 5.19.2
Complete source record
{
"id": "e87231eeabe8c8152051320036ba4e52876c9a43a24f6bad8ce80493dbaf3bf9",
"url": "https://osv.dev/vulnerability/CVE-2022-50088",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mm/damon/reclaim: fix potential memory leak in damon_reclaim_init()",
"summary": "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.",
"evidence": "osv:CVE-2022-50088",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.18.18",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50088",
"aliases": [
"CVE-2022-50088"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4d69c3457821100a39fa8c6e0c23ed910bb6c29d"
},
{
"fixed": "9d3e9e1e0856f4c905bbb870f16f42ae72477071"
},
{
"fixed": "700aa4e11a3c4d2a44d06758db431a013d9e1b61"
},
{
"fixed": "188043c7f4f2bd662f2a55957d684fffa543e600"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50088.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "5.18.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "5.19.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50088.json"
}
}
],
"modified": "2026-10-28T02:30:49.724418912Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/188043c7f4f2bd662f2a55957d684fffa543e600",
"https://git.kernel.org/stable/c/700aa4e11a3c4d2a44d06758db431a013d9e1b61",
"https://git.kernel.org/stable/c/9d3e9e1e0856f4c905bbb870f16f42ae72477071",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50088.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50088",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50088.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50088",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 517749,
"published_at": "2025-06-18T11:02:28.802+00:00"
}