{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99662","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.427Z","datePublished":"2026-11-20T05:50:13.325Z","dateUpdated":"2026-11-22T11:09:30.629Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:30.629Z"},"descriptions":[{"lang":"en","value":"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 ]"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - A zero page count reaches gup_fast_fallback from amdxdna_get_ubuf, called by amdxdna_drm_create_bo_ioctl with a userspace amdxdna_drm_va_entry whose len is 0. That length is an ioctl argument, not a field carried by a remote protocol message.\nAC:L - The attacker mmaps and faults the VA named by that zero-length entry. gup_fast_pte_range is a do-while, so with start equal to end it still stores pages[*nr] for each present PTE until a hole; the attacker creates that mapping and no race or independent hardware fault is required.\nPR:L - AMDXDNA_CREATE_BO is registered with ioctl flags 0, so drm_ioctl_permit requires neither CAP_SYS_ADMIN nor DRM master, and accel_open checks no capability. can_do_mlock() is true under the default 8MB RLIMIT_MEMLOCK, so an unprivileged opener of the accel node reaches the pin.\nUI:N - The attacker faults their own anonymous mapping and issues AMDXDNA_CREATE_BO themselves. No other user has to mount media or take any action.\nS:U - The overflow writes through ubuf->pages in the kernel heap of the calling task. It stays inside the host kernel and does not cross a guest/host or IOMMU boundary.\nC:H - ubuf->pages is kvmalloc'd for the sum of the VA lengths, so a zero-length entry makes pin_user_pages_fast write struct page pointers at &ubuf->pages[start] past that object; gup_fast_fallback then calls __get_user_pages with nr_pages-nr_pinned underflowed from 0 and keeps storing pointers. That heap corruption can disclose neighboring kernel memory.\nI:H - gup_fast_pte_range assigns pages[*nr] = page in its do-while before comparing addr with end, so a zero-length pin still writes, and the underflowed __gup_longterm_locked count then extends the store across the rest of the attacker's VMA.\nA:H - The stores past the kvmalloc'd ubuf->pages array corrupt adjacent slab memory and crash the kernel. gup_fast performs the first of those stores with local IRQs disabled."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/gup.c"],"versions":[{"version":"c28b1fc70390df32e29991eedd52bd86e7aba080","lessThan":"11536b9b6bed3cc4d684a70d468493775e7d1d48","status":"affected","versionType":"git"},{"version":"c28b1fc70390df32e29991eedd52bd86e7aba080","lessThan":"0794c5809fa6322e8b43b70601700fd6c48e69ea","status":"affected","versionType":"git"},{"version":"c28b1fc70390df32e29991eedd52bd86e7aba080","lessThan":"5697a3b58722b15fcb06fb30368ce9f46458a95a","status":"affected","versionType":"git"},{"version":"c28b1fc70390df32e29991eedd52bd86e7aba080","lessThan":"1dfe4b276c23189394afb42d114ee8a54cc3aff2","status":"affected","versionType":"git"},{"version":"bcb0f647c1fae9496e6ce499618a8da003c56088","status":"affected","versionType":"git"},{"version":"5.10.4","lessThan":"5.11","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/gup.c"],"versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.4-rc2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.4"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/11536b9b6bed3cc4d684a70d468493775e7d1d48"},{"url":"https://git.kernel.org/stable/c/0794c5809fa6322e8b43b70601700fd6c48e69ea"},{"url":"https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a"},{"url":"https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2"}],"title":"mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast","x_generator":{"engine":"bippy-1.2.0"}}}}