{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99659","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.427Z","datePublished":"2026-11-20T05:50:10.874Z","dateUpdated":"2026-11-22T11:09:29.412Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:09:29.412Z"},"descriptions":[{"lang":"en","value":"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 ]"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - munmap() of a hugetlb VMA reaches the bug through do_vmi_munmap(), unmap_region(), unmap_vmas(), __unmap_hugepage_range(), hugetlb_unmap_range(), and tlb_remove_huge_tlb_entry(), which passes huge_page_size() into __tlb_adjust_range(). No remote protocol supplies that size.\nAC:H - The unsigned int truncation in __tlb_adjust_range() fires only for a single range of at least 4GiB: arm64 64K CONT_PMD 16GiB folios, or PUD_SIZE (64GiB) from tlb_unshare_pmd_ptdesc() on 16K. Those folios exist only if root filled nr_hugepages or hugetlb_cma; the attacker cannot create them.\nPR:L - MAP_HUGETLB in ksys_mmap_pgoff() uses hugetlb_file_setup() with HUGETLB_ANONHUGE_INODE and never calls capable(). A local user who can already allocate from the pool can munmap it; CAP_IPC_LOCK is required only for SHM_HUGETLB, which this path does not use.\nUI:N - The attacker faults in their own mapping and calls munmap(). free_huge_folio() runs from tlb_flush_mmu() with no other user action; the stale TLB belongs to the attacking mm.\nS:U - The missed invalidation leaves a stage-1 translation in the unmapping mm's ASID after hugetlb_unmap_range() clears the PTEs and arm64 tlb_flush() skips the range. The impact stays in that host address space.\nC:H - huge_ptep_get_and_clear() removes the PTEs, then tlb_flush_mmu() frees the folio via free_huge_folio() after arm64 tlb_flush() computes pages=(end-start)>>PAGE_SHIFT as 0. The old VA still reads the physical page after the pool reallocates it.\nI:H - The truncated range leaves a writable TLB entry. After free_huge_folio() enqueues the folio, stores through the old VA modify the same physical memory once another hugetlb allocation receives it.\nA:H - tlb_finish_mmu() calls free_huge_folio() after arm64 tlb_flush() skips the range: __flush_tlb_range_op() runs only while addr!=end, and the truncated size makes them equal. That use-after-free of the folio can crash whoever next receives the page."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/asm-generic/tlb.h"],"versions":[{"version":"b528e4b6405b9fd656a6a308a7e2aa6afa50e77d","lessThan":"da895690b531ba3905c69bd2ed1c447dafa7b4ce","status":"affected","versionType":"git"},{"version":"b528e4b6405b9fd656a6a308a7e2aa6afa50e77d","lessThan":"2e12a0d8fa2ea4af9a74f414063359d965784919","status":"affected","versionType":"git"},{"version":"b528e4b6405b9fd656a6a308a7e2aa6afa50e77d","lessThan":"3647c49f164004458b5e767deed033bc13a25a2d","status":"affected","versionType":"git"},{"version":"b528e4b6405b9fd656a6a308a7e2aa6afa50e77d","lessThan":"64ae7959a1df8af8eec504e31df2ec9670424a4e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/asm-generic/tlb.h"],"versions":[{"version":"4.10","status":"affected"},{"version":"0","lessThan":"4.10","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":"4.10","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/da895690b531ba3905c69bd2ed1c447dafa7b4ce"},{"url":"https://git.kernel.org/stable/c/2e12a0d8fa2ea4af9a74f414063359d965784919"},{"url":"https://git.kernel.org/stable/c/3647c49f164004458b5e767deed033bc13a25a2d"},{"url":"https://git.kernel.org/stable/c/64ae7959a1df8af8eec504e31df2ec9670424a4e"}],"title":"mm/mmu_gather: fix flushing ranges with 4 GiB or larger","x_generator":{"engine":"bippy-1.2.0"}}}}