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

Summary

CVECVE-2026-99654
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-20 06:17:59 UTC
Updated2026-11-22 11:17:04 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.001680000 probability, percentile 0.061980000 (date 2026-11-21)


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d cbf6c66a2ef46433092b41b87176755de32bf65b git Not specified
CNA Linux Linux affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d 0cf8d3fdd869fe079e55f8e621e45397a819d93c git Not specified
CNA Linux Linux affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d 67e6d5468a7d693a00176713d44267e5360d63c3 git Not specified
CNA Linux Linux affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d 7a81bc23dade8082187be6d9cc36e4be4b7207e2 git Not specified
CNA Linux Linux affected 2db1c46c3913b8bc92fed235a344de2671fe9d8d git Not specified
CNA Linux Linux affected 77359c4973056ba33a5627d5c04aea494eb76bc9 git Not specified
CNA Linux Linux affected 73704c6b35c7682fd22f97992a68b0e8451c7a52 git Not specified
CNA Linux Linux affected 91432aebce514cab49f63324c98b4eccb80532c5 git Not specified
CNA Linux Linux affected dafdeb7b91f1597983693a418c496b6702ea34b5 git Not specified
CNA Linux Linux affected 2247df454c7bb4b13939794fe6fae8510868d241 git Not specified
CNA Linux Linux affected 4.19.305 4.20 semver Not specified
CNA Linux Linux affected 5.4.267 5.5 semver Not specified
CNA Linux Linux affected 5.10.208 5.11 semver Not specified
CNA Linux Linux affected 5.15.147 5.16 semver Not specified
CNA Linux Linux affected 6.1.72 6.2 semver Not specified
CNA Linux Linux affected 6.6.11 6.7 semver Not specified
CNA Linux Linux affected 6.7 Not specified
CNA Linux Linux unaffected 6.7 semver Not specified
CNA Linux Linux unaffected 6.12.118 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.64 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.5 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0cf8d3fdd869fe079e55f8e621e45397a819d93c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report