{"id":"CVE-2026-99662","aliases":[],"title":"mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast\n\nWith nr_pages == 0, GUP-fast still enters its page table walk and can\nwrite past the caller's page array. The old end <= start check caught\nempty ranges, but was replaced with an overflow check.\n\nUsers such as OrangeFS can pass a zero page count derived from a\nuserspace-supplied length. So let's return zero for nr_pages == 0 before\nstarting the walk, just like GUP-slow.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify description ]","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00164,"percentile":0.05831},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=5.10.4, <5.10.275","fixed":"5.10.275"},{"ecosystem":"Linux","name":"Kernel","range":">=5.10.4, <5.11","fixed":"5.11"},{"ecosystem":"Linux","name":"Kernel","range":">=5.11.0, <5.15.226","fixed":"5.15.226"},{"ecosystem":"Linux","name":"Kernel","range":">=5.11.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"Linux","name":"Kernel","range":">=5.16.0, <6.1.193","fixed":"6.1.193"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"Linux","name":"Kernel","range":">=6.2.0, <6.6.163","fixed":"6.6.163"},{"ecosystem":"Linux","name":"Kernel","range":">=6.7.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"vendor","name":"Linux","range":">=5.10.4, <5.10.275","fixed":"5.10.275"},{"ecosystem":"vendor","name":"Linux","range":">=5.10.4, <5.11","fixed":"5.11"},{"ecosystem":"vendor","name":"Linux","range":">=bcb0f647c1fae9496e6ce499618a8da003c56088, <0452d6d24ee4d65226824bcbefaf187707b72ced","fixed":"0452d6d24ee4d65226824bcbefaf187707b72ced"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <0794c5809fa6322e8b43b70601700fd6c48e69ea","fixed":"0794c5809fa6322e8b43b70601700fd6c48e69ea"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <11536b9b6bed3cc4d684a70d468493775e7d1d48","fixed":"11536b9b6bed3cc4d684a70d468493775e7d1d48"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <1dfe4b276c23189394afb42d114ee8a54cc3aff2","fixed":"1dfe4b276c23189394afb42d114ee8a54cc3aff2"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <21854ef8dc4e9398d84e4129db52dad69622fd9b","fixed":"21854ef8dc4e9398d84e4129db52dad69622fd9b"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <32717a0763b2170eae5693fe4afbeecaa168ffdc","fixed":"32717a0763b2170eae5693fe4afbeecaa168ffdc"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <5697a3b58722b15fcb06fb30368ce9f46458a95a","fixed":"5697a3b58722b15fcb06fb30368ce9f46458a95a"},{"ecosystem":"vendor","name":"Linux","range":">=c28b1fc70390df32e29991eedd52bd86e7aba080, <6ac370032a68a343be599d8476ded2c36b43b53a","fixed":"6ac370032a68a343be599d8476ded2c36b43b53a"}],"references":[{"url":"https://git.kernel.org/stable/c/11536b9b6bed3cc4d684a70d468493775e7d1d48","type":"other"},{"url":"https://git.kernel.org/stable/c/0794c5809fa6322e8b43b70601700fd6c48e69ea","type":"other"},{"url":"https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a","type":"other"},{"url":"https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99662.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99662","type":"advisory"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://git.kernel.org/stable/c/0452d6d24ee4d65226824bcbefaf187707b72ced","type":"other"},{"url":"https://git.kernel.org/stable/c/6ac370032a68a343be599d8476ded2c36b43b53a","type":"other"},{"url":"https://git.kernel.org/stable/c/21854ef8dc4e9398d84e4129db52dad69622fd9b","type":"other"},{"url":"https://git.kernel.org/stable/c/32717a0763b2170eae5693fe4afbeecaa168ffdc","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.518Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99662","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.063Z"},{"name":"osv","at":"2026-12-02T11:49:54.653Z","url":"https://osv.dev/vulnerability/CVE-2026-99662","license":"CC-BY 4.0","firstSeenAt":"2026-11-22T13:31:47.332Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:57.936Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99662","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:14.129Z"}],"firstSeenAt":"2026-11-20T06:28:14.129Z","publishedAt":"2026-11-20T05:50:13.325Z","modifiedAt":"2026-12-02T11:42:44.666Z"}