{"id":"CVE-2026-99659","summary":"mm/mmu_gather: fix flushing ranges with 4 GiB or larger","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mmu_gather: fix flushing ranges with 4 GiB or larger\n\n__tlb_adjust_range() takes the size of the range which has to be flushed\nas an unsigned int. Its callers, tlb_flush_{pte,pmd,pud,p4d}_range(), get\nand pass an unsigned long. Consequently, a range that is 4 GiB or larger\ngets truncated, possibly to 0.\n\nOn arm64 with hugetlb, a 64k kernel can have 16 GiB hugetlb folios\nmapped contiguously at the PMD level and flush them when unmapping, and a\n16k kernel can flush 64 GiB PUDs through tlb_unshare_pmd_ptdesc(). So\nat least these two scenarios are affected.\n\nFix it by flushing the proper range instead of the truncated one by\nproperly using \"unsigned long\" for range_size.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: use two-tab indent, simplify description ]","modified":"2026-11-20T07:01:05.748457647Z","published":"2026-11-20T05:50:10.874Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99659.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/2e12a0d8fa2ea4af9a74f414063359d965784919"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3647c49f164004458b5e767deed033bc13a25a2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64ae7959a1df8af8eec504e31df2ec9670424a4e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da895690b531ba3905c69bd2ed1c447dafa7b4ce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99659.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99659"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b528e4b6405b9fd656a6a308a7e2aa6afa50e77d"},{"fixed":"da895690b531ba3905c69bd2ed1c447dafa7b4ce"},{"fixed":"2e12a0d8fa2ea4af9a74f414063359d965784919"},{"fixed":"3647c49f164004458b5e767deed033bc13a25a2d"},{"fixed":"64ae7959a1df8af8eec504e31df2ec9670424a4e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99659.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99659.json"}}],"schema_version":"1.9.2"}