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

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:10.874Z
- Modified: 2026-11-23T08:18:06.980Z
- Assigned by: Linux

## Description

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

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

__tlb_adjust_range() takes the size of the range which has to be flushed
as an unsigned int. Its callers, tlb_flush_{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 tlb_unshare_pmd_ptdesc(). 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 range_size.

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

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

(As written by CVE List.)

## Affected

- Linux Linux: from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before b0f998ce242e2c310f69e55018639f3b8cc727fd; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before b263e5ef0456a83568e5f6fd6f4d846403e61520; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before 1fe9a6e2f1d0ce99bb71c8fe7b00e1ad7c551583; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before 28aa2e9f4ab62c66a1b872730b5e6441b40d9b60; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before da895690b531ba3905c69bd2ed1c447dafa7b4ce; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before 2e12a0d8fa2ea4af9a74f414063359d965784919; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before 3647c49f164004458b5e767deed033bc13a25a2d; from b528e4b6405b9fd656a6a308a7e2aa6afa50e77d before 64ae7959a1df8af8eec504e31df2ec9670424a4e; 4.10 (not affected: before 4.10; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/b0f998ce242e2c310f69e55018639f3b8cc727fd>
- <https://git.kernel.org/stable/c/b263e5ef0456a83568e5f6fd6f4d846403e61520>
- <https://git.kernel.org/stable/c/1fe9a6e2f1d0ce99bb71c8fe7b00e1ad7c551583>
- <https://git.kernel.org/stable/c/28aa2e9f4ab62c66a1b872730b5e6441b40d9b60>
- <https://git.kernel.org/stable/c/da895690b531ba3905c69bd2ed1c447dafa7b4ce>
- <https://git.kernel.org/stable/c/2e12a0d8fa2ea4af9a74f414063359d965784919>
- <https://git.kernel.org/stable/c/3647c49f164004458b5e767deed033bc13a25a2d>
- <https://git.kernel.org/stable/c/64ae7959a1df8af8eec504e31df2ec9670424a4e>

## Sources

- CVE List: [CVE-2026-99659](https://www.cve.org/CVERecord?id=CVE-2026-99659), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99659](https://nvd.nist.gov/vuln/detail/CVE-2026-99659), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99659 · Whole record: https://cve.day/CVE-2026-99659.json · Rebuilt by cve.day 2026-11-25T22:59:52.298Z
