# CVE-2022-50391: mm/mempolicy: fix memory leak in set_mempolicy_home_node system call

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T13:33:10.768Z
- Modified: 2026-06-17T05:23:25.980Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0 before 4ca0eb6b2f3add8c5daefb726ce57dc95d103d33; from c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0 before 0ce4cc6d269ddc448a825955b495f662f5d9e153; from c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0 before 38ce7c9bdfc228c14d7621ba36d3eebedd9d4f76; 5.17 (not affected: before 5.17; from 6.0.17 up to 6.0.*; from 6.1.3 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.17 before 6.0.17; from 6.1 before 6.1.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4ca0eb6b2f3add8c5daefb726ce57dc95d103d33> (patch)
- <https://git.kernel.org/stable/c/0ce4cc6d269ddc448a825955b495f662f5d9e153> (patch)
- <https://git.kernel.org/stable/c/38ce7c9bdfc228c14d7621ba36d3eebedd9d4f76> (patch)

## Sources

- CVE List: [CVE-2022-50391](https://www.cve.org/CVERecord?id=CVE-2022-50391), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50391](https://nvd.nist.gov/vuln/detail/CVE-2022-50391), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50391 · Whole record: https://cve.day/CVE-2022-50391.json · Rebuilt by cve.day 2026-11-25T22:58:21.194Z
