# CVE-2026-99654: mm: fix unmap\_mapping\_range() beyond 4 GiB on 32-bit

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **Published:** 2026-11-20T05:50:06.890Z
- **Modified:** 2026-11-23T08:18:06.310Z

## Who should check

- Anyone running Linux \>= 73704c6b35c7682fd22f97992a68b0e8451c7a52, \< aeaa0d4e301c5d2d97ba40603f899abe4e118572; \>= 91432aebce514cab49f63324c98b4eccb80532c5, \< 273121718c4c79ac0dd044d5f7998f21854b7cd6; \>= dafdeb7b91f1597983693a418c496b6702ea34b5, \< aff28bb139a69437922311e4078f77dc92d54831; \>= 2247df454c7bb4b13939794fe6fae8510868d241, \< 119bb87a630d25d61ed77738c73a4ba743f8e410; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< cbf6c66a2ef46433092b41b87176755de32bf65b; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 0cf8d3fdd869fe079e55f8e621e45397a819d93c; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 67e6d5468a7d693a00176713d44267e5360d63c3; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 7a81bc23dade8082187be6d9cc36e4be4b7207e2; 2db1c46c3913b8bc92fed235a344de2671fe9d8d; 77359c4973056ba33a5627d5c04aea494eb76bc9; …
- Anyone running Linux 6.7

## 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.

## Affected and fixed versions

- Linux: \>= 73704c6b35c7682fd22f97992a68b0e8451c7a52, \< aeaa0d4e301c5d2d97ba40603f899abe4e118572; \>= 91432aebce514cab49f63324c98b4eccb80532c5, \< 273121718c4c79ac0dd044d5f7998f21854b7cd6; \>= dafdeb7b91f1597983693a418c496b6702ea34b5, \< aff28bb139a69437922311e4078f77dc92d54831; \>= 2247df454c7bb4b13939794fe6fae8510868d241, \< 119bb87a630d25d61ed77738c73a4ba743f8e410; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< cbf6c66a2ef46433092b41b87176755de32bf65b; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 0cf8d3fdd869fe079e55f8e621e45397a819d93c; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 67e6d5468a7d693a00176713d44267e5360d63c3; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 7a81bc23dade8082187be6d9cc36e4be4b7207e2; 2db1c46c3913b8bc92fed235a344de2671fe9d8d; 77359c4973056ba33a5627d5c04aea494eb76bc9; … (cvelist)
- Linux: 6.7 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99654. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99654.md
Affected: Linux >= 73704c6b35c7682fd22f97992a68b0e8451c7a52, < aeaa0d4e301c5d2d97ba40603f899abe4e118572; >= 91432aebce514cab49f63324c98b4eccb80532c5, < 273121718c4c79ac0dd044d5f7998f21854b7cd6; >= dafdeb7b91f1597983693a418c496b6702ea34b5, < aff28bb139a69437922311e4078f77dc92d54831; >= 2247df454c7bb4b13939794…
Fixed in: Linux 273121718c4c79ac0dd044d5f7998f21854b7cd6, Linux 119bb87a630d25d61ed77738c73a4ba743f8e410, Linux 0cf8d3fdd869fe079e55f8e621e45397a819d93c, Linux 67e6d5468a7d693a00176713d44267e5360d63c3, Linux 7a81bc23dade8082187be6d9cc36e4be4b7207e2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99654 being exploited?

There is no confirmed exploitation: CVE-2026-99654 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99654?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99654?

Linux \>= 73704c6b35c7682fd22f97992a68b0e8451c7a52, \< aeaa0d4e301c5d2d97ba40603f899abe4e118572; \>= 91432aebce514cab49f63324c98b4eccb80532c5, \< 273121718c4c79ac0dd044d5f7998f21854b7cd6; \>= dafdeb7b91f1597983693a418c496b6702ea34b5, \< aff28bb139a69437922311e4078f77dc92d54831; \>= 2247df454c7bb4b13939794fe6fae8510868d241, \< 119bb87a630d25d61ed77738c73a4ba743f8e410; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< cbf6c66a2ef46433092b41b87176755de32bf65b; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 0cf8d3fdd869fe079e55f8e621e45397a819d93c; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 67e6d5468a7d693a00176713d44267e5360d63c3; \>= 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, \< 7a81bc23dade8082187be6d9cc36e4be4b7207e2; 2db1c46c3913b8bc92fed235a344de2671fe9d8d; 77359c4973056ba33a5627d5c04aea494eb76bc9; …; Linux 6.7.

### Is there a fix for CVE-2026-99654?

Yes. Fixed in Linux 273121718c4c79ac0dd044d5f7998f21854b7cd6, Linux 119bb87a630d25d61ed77738c73a4ba743f8e410, Linux 0cf8d3fdd869fe079e55f8e621e45397a819d93c, Linux 67e6d5468a7d693a00176713d44267e5360d63c3, Linux 7a81bc23dade8082187be6d9cc36e4be4b7207e2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99654?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/aeaa0d4e301c5d2d97ba40603f899abe4e118572>
- other: <https://git.kernel.org/stable/c/273121718c4c79ac0dd044d5f7998f21854b7cd6>
- other: <https://git.kernel.org/stable/c/aff28bb139a69437922311e4078f77dc92d54831>
- other: <https://git.kernel.org/stable/c/119bb87a630d25d61ed77738c73a4ba743f8e410>
- other: <https://git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b>
- other: <https://git.kernel.org/stable/c/0cf8d3fdd869fe079e55f8e621e45397a819d93c>
- other: <https://git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3>
- other: <https://git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99654>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99654> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99654>
