# CVE-2026-99662: mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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: 2026-11-20T05:50:13.325Z
- Modified: 2026-11-23T08:18:07.357Z
- Assigned by: Linux

## Description

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

mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast

With nr_pages == 0, GUP-fast still enters its page table walk and can
write past the caller's page array. The old end <= start check caught
empty ranges, but was replaced with an overflow check.

Users such as OrangeFS can pass a zero page count derived from a
userspace-supplied length. So let's return zero for nr_pages == 0 before
starting the walk, just like GUP-slow.

Fix generated by an LLM and sent by Chris Mason in private.

[ david: simplify description ]

(As written by CVE List.)

## Affected

- Linux Linux: from bcb0f647c1fae9496e6ce499618a8da003c56088 before 0452d6d24ee4d65226824bcbefaf187707b72ced; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 6ac370032a68a343be599d8476ded2c36b43b53a; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 21854ef8dc4e9398d84e4129db52dad69622fd9b; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 32717a0763b2170eae5693fe4afbeecaa168ffdc; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 11536b9b6bed3cc4d684a70d468493775e7d1d48; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 0794c5809fa6322e8b43b70601700fd6c48e69ea; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 5697a3b58722b15fcb06fb30368ce9f46458a95a; from c28b1fc70390df32e29991eedd52bd86e7aba080 before 1dfe4b276c23189394afb42d114ee8a54cc3aff2; from 5.10.4 before 5.10.275; 5.11 (not affected: before 5.11; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/0452d6d24ee4d65226824bcbefaf187707b72ced>
- <https://git.kernel.org/stable/c/6ac370032a68a343be599d8476ded2c36b43b53a>
- <https://git.kernel.org/stable/c/21854ef8dc4e9398d84e4129db52dad69622fd9b>
- <https://git.kernel.org/stable/c/32717a0763b2170eae5693fe4afbeecaa168ffdc>
- <https://git.kernel.org/stable/c/11536b9b6bed3cc4d684a70d468493775e7d1d48>
- <https://git.kernel.org/stable/c/0794c5809fa6322e8b43b70601700fd6c48e69ea>
- <https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a>
- <https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2>

## Sources

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

---

Page: https://cve.day/CVE-2026-99662 · Whole record: https://cve.day/CVE-2026-99662.json · Rebuilt by cve.day 2026-11-25T22:59:52.299Z
