CVE-2026-99654
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit
- CVSS
- 7.8
- EPSS
- 0.16% (p6)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-23
- Product
- Linux Linux
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Fixed in
0cf8d3fdd869fe079e55f8e621e45397a819d93c · 119bb87a630d25d61ed77738c73a4ba743f8e410 · 273121718c4c79ac0dd044d5f7998f21854b7cd6 · 4.20 · 5.10.275 · 5.11 · 5.15.226 · 5.16 · 5.5 · 6.1.193 · 6.12.118 · 6.18.64 · 6.2 · 6.6.163 · 6.7 · 67e6d5468a7d693a00176713d44267e5360d63c3 · 7.3.5 · 7a81bc23dade8082187be6d9cc36e4be4b7207e2 · aeaa0d4e301c5d2d97ba40603f899abe4e118572 · aff28bb139a69437922311e4078f77dc92d54831 · cbf6c66a2ef46433092b41b87176755de32bf65b
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.19.305, <4.20 | 4.20 |
| Linux | Kernel | >=5.10.208, <5.10.275 | 5.10.275 |
| Linux | Kernel | >=5.10.208, <5.11 | 5.11 |
| Linux | Kernel | >=5.15.147, <5.15.226 | 5.15.226 |
| Linux | Kernel | >=5.15.147, <5.16 | 5.16 |
| Linux | Kernel | >=5.4.267, <5.5 | 5.5 |
| Linux | Kernel | >=6.1.72, <6.1.193 | 6.1.193 |
| Linux | Kernel | >=6.1.72, <6.2 | 6.2 |
| Linux | Kernel | >=6.13.0, <6.18.64 | 6.18.64 |
| Linux | Kernel | >=6.19.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=6.6.11, <6.6.163 | 6.6.163 |
| Linux | Kernel | >=6.6.11, <6.7 | 6.7 |
| Linux | Kernel | >=6.7.0, <6.12.118 | 6.12.118 |
| vendor | Linux | >=2247df454c7bb4b13939794fe6fae8510868d241, <119bb87a630d25d61ed77738c73a4ba743f8e410 | 119bb87a630d25d61ed77738c73a4ba743f8e410 |
| vendor | Linux | >=4.19.305, <4.20 | 4.20 |
| vendor | Linux | >=5.10.208, <5.10.275 | 5.10.275 |
| vendor | Linux | >=5.10.208, <5.11 | 5.11 |
| vendor | Linux | >=5.15.147, <5.15.226 | 5.15.226 |
| vendor | Linux | >=5.15.147, <5.16 | 5.16 |
| vendor | Linux | >=5.4.267, <5.5 | 5.5 |
| vendor | Linux | >=6.1.72, <6.1.193 | 6.1.193 |
| vendor | Linux | >=6.1.72, <6.2 | 6.2 |
| vendor | Linux | >=6.6.11, <6.6.163 | 6.6.163 |
| vendor | Linux | >=6.6.11, <6.7 | 6.7 |
| vendor | Linux | >=73704c6b35c7682fd22f97992a68b0e8451c7a52, <aeaa0d4e301c5d2d97ba40603f899abe4e118572 | aeaa0d4e301c5d2d97ba40603f899abe4e118572 |
| vendor | Linux | >=91432aebce514cab49f63324c98b4eccb80532c5, <273121718c4c79ac0dd044d5f7998f21854b7cd6 | 273121718c4c79ac0dd044d5f7998f21854b7cd6 |
| vendor | Linux | >=9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, <0cf8d3fdd869fe079e55f8e621e45397a819d93c | 0cf8d3fdd869fe079e55f8e621e45397a819d93c |
| vendor | Linux | >=9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, <67e6d5468a7d693a00176713d44267e5360d63c3 | 67e6d5468a7d693a00176713d44267e5360d63c3 |
| vendor | Linux | >=9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, <7a81bc23dade8082187be6d9cc36e4be4b7207e2 | 7a81bc23dade8082187be6d9cc36e4be4b7207e2 |
| vendor | Linux | >=9eab0421fa94a3dde0d1f7e36ab3294fc306c99d, <cbf6c66a2ef46433092b41b87176755de32bf65b | cbf6c66a2ef46433092b41b87176755de32bf65b |
| vendor | Linux | >=dafdeb7b91f1597983693a418c496b6702ea34b5, <aff28bb139a69437922311e4078f77dc92d54831 | aff28bb139a69437922311e4078f77dc92d54831 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- 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 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99654.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99654 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- 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