{"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-23T20:45:42.198195273Z","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":"WEB","url":"https://git.kernel.org/stable/c/1fe9a6e2f1d0ce99bb71c8fe7b00e1ad7c551583"},{"type":"WEB","url":"https://git.kernel.org/stable/c/28aa2e9f4ab62c66a1b872730b5e6441b40d9b60"},{"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/b0f998ce242e2c310f69e55018639f3b8cc727fd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b263e5ef0456a83568e5f6fd6f4d846403e61520"},{"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"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b528e4b6405b9fd656a6a308a7e2aa6afa50e77d"},{"fixed":"b0f998ce242e2c310f69e55018639f3b8cc727fd"},{"fixed":"b263e5ef0456a83568e5f6fd6f4d846403e61520"},{"fixed":"1fe9a6e2f1d0ce99bb71c8fe7b00e1ad7c551583"},{"fixed":"28aa2e9f4ab62c66a1b872730b5e6441b40d9b60"},{"fixed":"da895690b531ba3905c69bd2ed1c447dafa7b4ce"},{"fixed":"2e12a0d8fa2ea4af9a74f414063359d965784919"},{"fixed":"3647c49f164004458b5e767deed033bc13a25a2d"},{"fixed":"64ae7959a1df8af8eec504e31df2ec9670424a4e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99659.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.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/osv-test-cve-osv-conversion/osv-output/CVE-2026-99659.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}