CVE-2022-50391

mm/mempolicy: fix memory leak in set_mempolicy_home_node system call

State
Published
Severity
5.5 Medium
Published
Sep 18, 2025
Updated
May 11, 2026
Reserved
Sep 17, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0 to before 4ca0eb6b2f3add8c5daefb726ce57dc95d103d33Affected
  • c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0 to before 0ce4cc6d269ddc448a825955b495f662f5d9e153Affected
  • c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0 to before 38ce7c9bdfc228c14d7621ba36d3eebedd9d4f76Affected
LinuxLinux
  • 5.17Affected
  • before 5.17Not affected
  • 6.0.17 through 6.0.*Not affected
  • 6.1.3 through 6.1.*Not affected
  • 6.2 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.