CVE-2026-99654
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit
Check your servers for CVE-2026-99654
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99654 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.24% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 73704c6b35c7682fd22f97992a68b0e8451c7a52, before aeaa0d4e301c5d2d97ba40603f899abe4e118572 affected from 91432aebce514cab49f63324c98b4eccb80532c5, before 273121718c4c79ac0dd044d5f7998f21854b7cd6 affected from dafdeb7b91f1597983693a418c496b6702ea34b5, before aff28bb139a69437922311e4078f77dc92d54831 affected from 2247df454c7bb4b13939794fe6fae8510868d241, before 119bb87a630d25d61ed77738c73a4ba743f8e410 affected from 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, before cbf6c66a2ef46433092b41b87176755de32bf65b affected from 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, before 0cf8d3fdd869fe079e55f8e621e45397a819d93c affected from 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, before 67e6d5468a7d693a00176713d44267e5360d63c3 affected from 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, before 7a81bc23dade8082187be6d9cc36e4be4b7207e2 affected 2db1c46c3913b8bc92fed235a344de2671fe9d8d affected 77359c4973056ba33a5627d5c04aea494eb76bc9 affected from 5.10.208, before 5.10.275 affected from 5.15.147, before 5.15.226 affected from 6.1.72, before 6.1.193 affected from 6.6.11, before 6.6.163 affected from 4.19.305, before 4.20 affected from 5.4.267, before 5.5
Other versions: unaffected
|
| Linux |
affected 6.7 unaffected before 6.7 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99654 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99654
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99654
trivy image --scanners vuln IMAGE | grep CVE-2026-99654
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/aeaa0d4e301c5d2d97ba40603f899abe4e118572 git.kernel.org
- https://git.kernel.org/stable/c/273121718c4c79ac0dd044d5f7998f21854b7cd6 git.kernel.org
- https://git.kernel.org/stable/c/aff28bb139a69437922311e4078f77dc92d54831 git.kernel.org
- https://git.kernel.org/stable/c/119bb87a630d25d61ed77738c73a4ba743f8e410 git.kernel.org
- https://git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b git.kernel.org
- https://git.kernel.org/stable/c/0cf8d3fdd869fe079e55f8e621e45397a819d93c git.kernel.org
- https://git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3 git.kernel.org
- https://git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2 git.kernel.org
Source: the record CVE-2026-99654 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse