← All Advisories
Reported from OT-Advisories.com as of

Linux Kernel unmap_mapping_range() Mishandles Offsets Beyond 4 GiB on 32-bit Systems

Last refreshed2026-11-23

Status: UPDATED  |  Advisory ID: CVE-2026-99654

Key Details

CVECVE-2026-99654
CVSS Score / Version
7.8 (High) / CVSS v3.1
Updated2026-11-22
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is low; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Linux Kernel

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SubsystemsOT Supporting Infrastructure
SectorsAll Sectors

What to Know

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. (NVD)

What to Do

Monitor Linux's web page for any future patch releases.

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-99654
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-99654
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.