# CVE-2022-50147: mm/mempolicy: fix get_nodes out of bound access

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-06-18T11:03:07.759Z
- Modified: 2026-06-17T05:22:51.340Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/mempolicy: fix get_nodes out of bound access

When user specified more nodes than supported, get_nodes will access nmask
array out of bounds.

(As written by CVE List.)

## Affected

- Linux Linux: from e130242dc351f1cfa2bbeb6766a1486ce936ef88 before 44652154484e7e3d12008802cfb6c28a8aa16d85; from e130242dc351f1cfa2bbeb6766a1486ce936ef88 before 8176f6a0d9c1b06bc7af7c3d6acd4a66448939df; from e130242dc351f1cfa2bbeb6766a1486ce936ef88 before d1b5113674c3e95bb53c601ce2ea4719e851c74d; from e130242dc351f1cfa2bbeb6766a1486ce936ef88 before 000eca5d044d1ee23b4ca311793cf3fc528da6c6; 5.15 (not affected: before 5.15; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.15 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/44652154484e7e3d12008802cfb6c28a8aa16d85> (patch)
- <https://git.kernel.org/stable/c/8176f6a0d9c1b06bc7af7c3d6acd4a66448939df> (patch)
- <https://git.kernel.org/stable/c/d1b5113674c3e95bb53c601ce2ea4719e851c74d> (patch)
- <https://git.kernel.org/stable/c/000eca5d044d1ee23b4ca311793cf3fc528da6c6> (patch)

## Sources

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

---

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