CVE-2026-99662

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

State
Published
Severity
Not scored
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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 ]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c28b1fc70390df32e29991eedd52bd86e7aba080 to before 11536b9b6bed3cc4d684a70d468493775e7d1d48Affected
  • c28b1fc70390df32e29991eedd52bd86e7aba080 to before 0794c5809fa6322e8b43b70601700fd6c48e69eaAffected
  • c28b1fc70390df32e29991eedd52bd86e7aba080 to before 5697a3b58722b15fcb06fb30368ce9f46458a95aAffected
  • c28b1fc70390df32e29991eedd52bd86e7aba080 to before 1dfe4b276c23189394afb42d114ee8a54cc3aff2Affected
  • bcb0f647c1fae9496e6ce499618a8da003c56088Affected
  • 5.10.4 to before 5.11Affected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 6.12.118 through 6.12.*Not affected
  • 6.18.64 through 6.18.*Not affected
  • 7.3.5 through 7.3.*Not affected
  • 7.4-rc2 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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.