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

Published Nov 20, 2026
·
Updated

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

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

Commit 9eab0421fa94 ("mm: fix unmapmappingrange high bits shift bug") made holebegin and holelen unsigned before they are shifted, by casting them to pgofft. That is an unsigned long: on a 32-bit kernel the cast cuts off the upper half of the two lofft values, so a hole which begins at 4 GiB or beyond is taken for one in the first 4 GiB of the file.

truncatepagecache() 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 unmapmappingrange() to get rid of user mappings do not, for example drmvmanodeunmap(), whose fake offsets reach beyond 4 GiB on 32-bit, and revokeiomem() 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.

Affected Software

9 affected componentsFixes available
linux/kernel>=4.19.305<4.20
4.20
linux/kernel>=5.4.267<5.5
5.5
linux/kernel>=5.10.208<5.11
5.11
linux/kernel>=5.15.147<5.16
5.16
linux/kernel>=6.1.72<6.2
6.2
linux/kernel>=6.6.11<6.7
6.7
linux/kernel>=6.7.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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.20
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.5
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.11
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.2
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.7
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  8. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  9. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  10. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch 9eab0421fa94

Frequently Asked Questions

1

Which systems are exposed to this issue?

The issue affects 32-bit Linux kernels. It is triggered when unmap_mapping_range() handles ranges that begin at or extend beyond the 4 GiB boundary.

2

What conditions are needed to trigger the bug?

A relevant caller must unmap a mapping using offsets or addresses above 4 GiB on a 32-bit kernel. Examples in the provided information include truncating a file larger than 4 GiB, DRM VMA unmapping with fake offsets beyond 4 GiB, and revoking I/O memory with physical addresses above 32 bits.

3

What is the practical impact of an affected file truncation?

Truncating a 6 GiB file to 5 GiB can incorrectly unmap private COW mappings from 1 GiB onward. Data written by a process to private mappings between 1 GiB and 5 GiB can be lost, causing subsequent reads to return file contents again.

4

How can I tell whether a system is affected?

Confirm that the system runs a 32-bit Linux kernel and uses operations that unmap ranges beyond 4 GiB. The referenced stable kernel commits contain the resolved fix.

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