cvelo
P2 · HighCVSS 7.8EPSS 0.2%

mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit

  • CVE-2026-99654
  • GHSA-whx2-ppf3-pxvh
  • EUVD-2026-130947

Description

In the Linux kernel, the following vulnerability has been resolved: mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit Commit 9eab0421fa94 ("mm: fix unmap_mapping_range high bits shift bug") made holebegin and holelen unsigned before they are shifted, by casting them to pgoff_t. That is an unsigned long: on a 32-bit kernel the cast cuts off the upper half of the two loff_t values, so a hole which begins at 4 GiB or beyond is taken for one in the first 4 GiB of the file. truncate_pagecache() passes the new size of the file and asks for private COWed pages to be unmapped as well. If a file of 6 GiB is truncated to 5 GiB, everything from 1 GiB on is unmapped, and what a process has written to a private mapping of the range between 1 GiB and 5 GiB is lost: it reads the contents of the file again. Where the range has an end, the wrong range is unmapped instead of the right one. The page cache copes with that, as it unmaps every folio that it removes. The callers which only have unmap_mapping_range() to get rid of user mappings do not, for example drm_vma_node_unmap(), whose fake offsets reach beyond 4 GiB on 32-bit, and revoke_iomem() with physical addresses of more than 32 bits. Cast to u64 instead. Nothing changes for 64-bit kernels. Fix generated by an LLM and sent by Josef Bacik in private.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely
    • If you run a version from 5.4.267 to before 5.5update to 5.5 or laterMinor version change: check the release notes
    • If you run a version from 4.19.305 to before 4.20update to 4.20 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.6.11 to before 6.6.1636.6.163
    from 6.1.72 to before 6.1.1936.1.193
    from 5.15.147 to before 5.15.2265.15.226
    from 5.10.208 to before 5.10.2755.10.275
    from 5.4.267 to before 5.55.5
    from 4.19.305 to before 4.204.20
    6.7none stated
    before 6.7: not affectednone stated

    and 8 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.