{"id":"CVE-2026-99706","summary":"mm: fix address wraparound when scanning large folio PTEs","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix address wraparound when scanning large folio PTEs\n\nnuma_rebuild_large_mapping() and do_swap_page() can be tricked into\ngenerating an address wraparound, crashing the kernel. All that's required\nis to map a tail page of a large folio close enough to the start/end of\nthe address space to e.g., make\n\n\tunsigned long addr_start = addr - (nr \u003c\u003c PAGE_SHIFT);\n\nto wrap around.\n\nLet's fix it by providing a better helper, folio_scan_range(), that\ntakes care of staying within VMA and page table boundaries while\nhandling possible wraparounds.\n\nThere are some nasty details, like not being able to use pmd_addr_end()\nin this context. Add some helpful comments for these cases.","modified":"2026-11-20T07:01:10.540815340Z","published":"2026-11-20T05:50:47.021Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99706.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f681d4580d5c3c749f623cda722a21aefd3147b3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f6c17bda9b304795a2c284fb6c8a8eaac6248b80"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99706.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99706"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d2136d749d76af980b3accd72704eea4eab625bd"},{"fixed":"f6c17bda9b304795a2c284fb6c8a8eaac6248b80"},{"fixed":"f681d4580d5c3c749f623cda722a21aefd3147b3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99706.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99706.json"}}],"schema_version":"1.9.2"}