{"api_version":"1","generated_at":"2026-11-22T20:40:00+00:00","cve":"CVE-2026-99662","urls":{"html":"https://cve.report/CVE-2026-99662","api":"https://cve.report/api/cve/CVE-2026-99662.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99662","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99662"},"summary":{"title":"mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast","description":"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 ]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:00","updated_at":"2026-11-22 11:17:05"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a","name":"https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/11536b9b6bed3cc4d684a70d468493775e7d1d48","name":"https://git.kernel.org/stable/c/11536b9b6bed3cc4d684a70d468493775e7d1d48","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0794c5809fa6322e8b43b70601700fd6c48e69ea","name":"https://git.kernel.org/stable/c/0794c5809fa6322e8b43b70601700fd6c48e69ea","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2","name":"https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99662","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99662","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c28b1fc70390df32e29991eedd52bd86e7aba080 11536b9b6bed3cc4d684a70d468493775e7d1d48 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c28b1fc70390df32e29991eedd52bd86e7aba080 0794c5809fa6322e8b43b70601700fd6c48e69ea git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c28b1fc70390df32e29991eedd52bd86e7aba080 5697a3b58722b15fcb06fb30368ce9f46458a95a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c28b1fc70390df32e29991eedd52bd86e7aba080 1dfe4b276c23189394afb42d114ee8a54cc3aff2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bcb0f647c1fae9496e6ce499618a8da003c56088 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.4 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99662","cve":"CVE-2026-99662","epss":"0.001680000","percentile":"0.061970000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/gup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"11536b9b6bed3cc4d684a70d468493775e7d1d48","status":"affected","version":"c28b1fc70390df32e29991eedd52bd86e7aba080","versionType":"git"},{"lessThan":"0794c5809fa6322e8b43b70601700fd6c48e69ea","status":"affected","version":"c28b1fc70390df32e29991eedd52bd86e7aba080","versionType":"git"},{"lessThan":"5697a3b58722b15fcb06fb30368ce9f46458a95a","status":"affected","version":"c28b1fc70390df32e29991eedd52bd86e7aba080","versionType":"git"},{"lessThan":"1dfe4b276c23189394afb42d114ee8a54cc3aff2","status":"affected","version":"c28b1fc70390df32e29991eedd52bd86e7aba080","versionType":"git"},{"status":"affected","version":"bcb0f647c1fae9496e6ce499618a8da003c56088","versionType":"git"},{"lessThan":"5.11","status":"affected","version":"5.10.4","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/gup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.11"},{"lessThan":"5.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:30.629Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99662","datePublished":"2026-11-20T05:50:13.325Z","dateReserved":"2026-09-25T10:25:14.427Z","dateUpdated":"2026-11-22T11:09:30.629Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:00","lastModifiedDate":"2026-11-22 11:17:05","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99662","Ordinal":"1","Title":"mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast","CVE":"CVE-2026-99662","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99662","Ordinal":"1","NoteData":"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 ]","Type":"Description","Title":"mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast"}]}}}