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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99662, UBUNTU-CVE-2026-99662, CGA-2rcc-p6jc-w4fh, CGA-338m-xjrp-p5xj, CGA-3ghf-42f9-vhhh, CGA-7w4f-mxxf-qf4w, CGA-f26q-52c8-jrfq, CGA-f3gc-339r-cc94, CGA-g466-57pm-92f3, CGA-jw4q-hx8j-6955, CGA-rrxp-c6h6-5fm2, CGA-w7vj-28xm-4jfc, CGA-46rr-9w74-8767, CGA-c5f2-x9m9-32m3, CGA-cfw6-957c-444w, CGA-fxfw-2cv8-c8vc, CGA-q53r-66p7-86m8, CGA-w6rc-fm29-h66w, CGA-wq26-3vxm-j6qv, CGA-58fh-g36m-5gc2, CGA-j9f9-55hf-g36x
- Record: https://cvemate.com/vulnerability/CVE-2026-99662 · JSON: https://cvemate.com/vulnerability/CVE-2026-99662/json

## Description

```text
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 ]
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.164%, percentile 5.796%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 170)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.5-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <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://security-tracker.debian.org/tracker/CVE-2026-99662>
- <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://ubuntu.com/security/CVE-2026-99662>
- <https://www.cve.org/CVERecord?id=CVE-2026-99662>
- <https://git.kernel.org/linus/1dfe4b276c23189394afb42d114ee8a54cc3aff2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99662.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-99662>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>

---

Data as of 2026-12-05T03:38:39.897Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
