mm/mempolicy: fix memory leak in set_mempolicy_home_node system call
In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix memory leak in set_mempolicy_home_node system call When encountering any vma in the range with policy other than MPOL_BIND or MPOL_PREFERRED_MANY, an error is returned without issuing a mpol_put on the policy just allocated with mpol_dup(). This allows arbitrary users to leak kernel memory.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.0.17, 6.1.3
- CVEs
- CVE-2022-50391
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 19:51 UTC · Revision 1
Source evidence
mm/mempolicy: fix memory leak in set_mempolicy_home_node system call
core-osv · Original sourcePublished 18 Sept 2025, 13:33 UTC
In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix memory leak in set_mempolicy_home_node system call When encountering any vma in the range with policy other than MPOL_BIND or MPOL_PREFERRED_MANY, an error is returned without issuing a mpol_put on the policy just allocated with mpol_dup(). This allows arbitrary users to leak kernel memory.
osv:CVE-2022-50391
Kernel
Fixed versions: 6.0.17, 6.1.3
Complete source record
{
"id": "7032a418145c4f5b6e01f292bcaf5d07c899f1e38cee489adc12712c5a80f8ee",
"url": "https://osv.dev/vulnerability/CVE-2022-50391",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mm/mempolicy: fix memory leak in set_mempolicy_home_node system call",
"summary": "In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix memory leak in set_mempolicy_home_node system call When encountering any vma in the range with policy other than MPOL_BIND or MPOL_PREFERRED_MANY, an error is returned without issuing a mpol_put on the policy just allocated with mpol_dup(). This allows arbitrary users to leak kernel memory.",
"evidence": "osv:CVE-2022-50391",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.0.17",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2022-50391",
"aliases": [
"CVE-2022-50391"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0"
},
{
"fixed": "4ca0eb6b2f3add8c5daefb726ce57dc95d103d33"
},
{
"fixed": "0ce4cc6d269ddc448a825955b495f662f5d9e153"
},
{
"fixed": "38ce7c9bdfc228c14d7621ba36d3eebedd9d4f76"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50391.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.17.0"
},
{
"fixed": "6.0.17"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50391.json"
}
}
],
"modified": "2026-10-28T02:30:23.360123712Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0ce4cc6d269ddc448a825955b495f662f5d9e153",
"https://git.kernel.org/stable/c/38ce7c9bdfc228c14d7621ba36d3eebedd9d4f76",
"https://git.kernel.org/stable/c/4ca0eb6b2f3add8c5daefb726ce57dc95d103d33",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50391.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50391",
"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-50391.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50391",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 489421,
"published_at": "2025-09-18T13:33:10.768+00:00"
}