CVE-2026-99662
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 …
Impact
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 ]
Affected products · Linux
| Product | Affected versions |
|---|---|
| Linux | from c28b1fc70390df32e29991eedd52bd86e7aba080 before 11536b9b6bed3cc4d684a70d468493775e7d1d48 from c28b1fc70390df32e29991eedd52bd86e7aba080 before 0794c5809fa6322e8b43b70601700fd6c48e69ea from c28b1fc70390df32e29991eedd52bd86e7aba080 before 5697a3b58722b15fcb06fb30368ce9f46458a95a from c28b1fc70390df32e29991eedd52bd86e7aba080 before 1dfe4b276c23189394afb42d114ee8a54cc3aff2 from 5.10.4 before 5.11 Version bcb0f647c1fae9496e6ce499618a8da003c56088 |
References
- NVD record
- CVE.org record
- GitHub advisory
- 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
- https://github.com/advisories/GHSA-79rr-gj93-w5g7
- https://nvd.nist.gov/vuln/detail/CVE-2026-99662