CVE-2026-99659: mm/mmu_gather: fix flushing ranges with 4 GiB or larger

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/mmugather: fix flushing ranges with 4 GiB or larger

tlbadjustrange() takes the size of the range which has to be flushed as an unsigned int. Its callers, tlbflush{pte,pmd,pud,p4d}range(), get and pass an unsigned long. Consequently, a range that is 4 GiB or larger gets truncated, possibly to 0.

On arm64 with hugetlb, a 64k kernel can have 16 GiB hugetlb folios mapped contiguously at the PMD level and flush them when unmapping, and a 16k kernel can flush 64 GiB PUDs through tlbunsharepmdptdesc(). So at least these two scenarios are affected.

Fix it by flushing the proper range instead of the truncated one by properly using "unsigned long" for rangesize.

Fix generated by an LLM and sent by Josef Bacik in private.

[ david: use two-tab indent, simplify description ]

Affected Software

3 affected componentsFixes available
linux/kernel>=4.10.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Frequently Asked Questions

1

Which systems are specifically known to be affected by this range-truncation issue?

The described affected cases are arm64 systems using hugetlb. A 64K kernel can encounter it when unmapping contiguous 16 GiB hugetlb folios at the PMD level, and a 16K kernel can encounter it when flushing 64 GiB PUDs through tlb_unshare_pmd_ptdesc().

2

What condition triggers the faulty behavior?

The issue is triggered when a TLB flush range is 4 GiB or larger. The range size is passed as an unsigned long by callers but handled as an unsigned int, causing truncation that can reduce the flush size, potentially to zero.

3

What is the effect of the fix?

The fix changes the range-size handling to use unsigned long, matching the callers. This ensures that large flush ranges are flushed at their actual size rather than a truncated value.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203