{"api_version":"1","generated_at":"2026-11-22T20:39:59+00:00","cve":"CVE-2026-99654","urls":{"html":"https://cve.report/CVE-2026-99654","api":"https://cve.report/api/cve/CVE-2026-99654.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99654","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99654"},"summary":{"title":"mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix unmap_mapping_range() beyond 4 GiB on 32-bit\n\nCommit 9eab0421fa94 (\"mm: fix unmap_mapping_range high bits shift bug\")\nmade holebegin and holelen unsigned before they are shifted, by casting\nthem to pgoff_t. That is an unsigned long: on a 32-bit kernel the cast\ncuts off the upper half of the two loff_t values, so a hole which begins\nat 4 GiB or beyond is taken for one in the first 4 GiB of the file.\n\ntruncate_pagecache() passes the new size of the file and asks for private\nCOWed pages to be unmapped as well. If a file of 6 GiB is truncated to\n5 GiB, everything from 1 GiB on is unmapped, and what a process has\nwritten to a private mapping of the range between 1 GiB and 5 GiB is\nlost: it reads the contents of the file again.\n\nWhere the range has an end, the wrong range is unmapped instead of the\nright one. The page cache copes with that, as it unmaps every folio that\nit removes. The callers which only have unmap_mapping_range() to get\nrid of user mappings do not, for example drm_vma_node_unmap(), whose fake\noffsets reach beyond 4 GiB on 32-bit, and revoke_iomem() with physical\naddresses of more than 32 bits.\n\nCast to u64 instead. Nothing changes for 64-bit kernels.\n\nFix generated by an LLM and sent by Josef Bacik in private.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:17:59","updated_at":"2026-11-22 11:17:04"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2","name":"https://git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b","name":"https://git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3","name":"https://git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0cf8d3fdd869fe079e55f8e621e45397a819d93c","name":"https://git.kernel.org/stable/c/0cf8d3fdd869fe079e55f8e621e45397a819d93c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99654","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99654","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d cbf6c66a2ef46433092b41b87176755de32bf65b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d 0cf8d3fdd869fe079e55f8e621e45397a819d93c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d 67e6d5468a7d693a00176713d44267e5360d63c3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9eab0421fa94a3dde0d1f7e36ab3294fc306c99d 7a81bc23dade8082187be6d9cc36e4be4b7207e2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2db1c46c3913b8bc92fed235a344de2671fe9d8d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 77359c4973056ba33a5627d5c04aea494eb76bc9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 73704c6b35c7682fd22f97992a68b0e8451c7a52 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 91432aebce514cab49f63324c98b4eccb80532c5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dafdeb7b91f1597983693a418c496b6702ea34b5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2247df454c7bb4b13939794fe6fae8510868d241 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19.305 4.20 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.267 5.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.208 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.147 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.72 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.11 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99654","cve":"CVE-2026-99654","epss":"0.001680000","percentile":"0.061980000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"cbf6c66a2ef46433092b41b87176755de32bf65b","status":"affected","version":"9eab0421fa94a3dde0d1f7e36ab3294fc306c99d","versionType":"git"},{"lessThan":"0cf8d3fdd869fe079e55f8e621e45397a819d93c","status":"affected","version":"9eab0421fa94a3dde0d1f7e36ab3294fc306c99d","versionType":"git"},{"lessThan":"67e6d5468a7d693a00176713d44267e5360d63c3","status":"affected","version":"9eab0421fa94a3dde0d1f7e36ab3294fc306c99d","versionType":"git"},{"lessThan":"7a81bc23dade8082187be6d9cc36e4be4b7207e2","status":"affected","version":"9eab0421fa94a3dde0d1f7e36ab3294fc306c99d","versionType":"git"},{"status":"affected","version":"2db1c46c3913b8bc92fed235a344de2671fe9d8d","versionType":"git"},{"status":"affected","version":"77359c4973056ba33a5627d5c04aea494eb76bc9","versionType":"git"},{"status":"affected","version":"73704c6b35c7682fd22f97992a68b0e8451c7a52","versionType":"git"},{"status":"affected","version":"91432aebce514cab49f63324c98b4eccb80532c5","versionType":"git"},{"status":"affected","version":"dafdeb7b91f1597983693a418c496b6702ea34b5","versionType":"git"},{"status":"affected","version":"2247df454c7bb4b13939794fe6fae8510868d241","versionType":"git"},{"lessThan":"4.20","status":"affected","version":"4.19.305","versionType":"semver"},{"lessThan":"5.5","status":"affected","version":"5.4.267","versionType":"semver"},{"lessThan":"5.11","status":"affected","version":"5.10.208","versionType":"semver"},{"lessThan":"5.16","status":"affected","version":"5.15.147","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.72","versionType":"semver"},{"lessThan":"6.7","status":"affected","version":"6.6.11","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.7"},{"lessThan":"6.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.305","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.267","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.208","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.147","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.72","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix unmap_mapping_range() beyond 4 GiB on 32-bit\n\nCommit 9eab0421fa94 (\"mm: fix unmap_mapping_range high bits shift bug\")\nmade holebegin and holelen unsigned before they are shifted, by casting\nthem to pgoff_t. That is an unsigned long: on a 32-bit kernel the cast\ncuts off the upper half of the two loff_t values, so a hole which begins\nat 4 GiB or beyond is taken for one in the first 4 GiB of the file.\n\ntruncate_pagecache() passes the new size of the file and asks for private\nCOWed pages to be unmapped as well. If a file of 6 GiB is truncated to\n5 GiB, everything from 1 GiB on is unmapped, and what a process has\nwritten to a private mapping of the range between 1 GiB and 5 GiB is\nlost: it reads the contents of the file again.\n\nWhere the range has an end, the wrong range is unmapped instead of the\nright one. The page cache copes with that, as it unmaps every folio that\nit removes. The callers which only have unmap_mapping_range() to get\nrid of user mappings do not, for example drm_vma_node_unmap(), whose fake\noffsets reach beyond 4 GiB on 32-bit, and revoke_iomem() with physical\naddresses of more than 32 bits.\n\nCast to u64 instead. Nothing changes for 64-bit kernels.\n\nFix generated by an LLM and sent by Josef Bacik in private."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - unmap_mapping_range() gets its hole from local callers: ftruncate64() via ksys_ftruncate(), do_truncate(), and truncate_pagecache(), and from drm_gem_mmap() mappings torn down by drm_vma_node_unmap(). That byte offset is not a field of any remote protocol message.\nAC:L - On 32-bit, DRM_FILE_PAGE_OFFSET_START/SIZE runs the fake mmap space out to about 4.25GiB. The attacker allocates GEM objects until drm_vma_offset_add() returns a node at a byte offset >= 4GiB, faults it, and marks it purgeable so drm_gem_shmem_purge_locked() hits the truncating cast.\nPR:L - The attacker opens a DRM render node and uses drm_gem_mmap() plus a DRM_RENDER_ALLOW ioctl such as panfrost MADVISE on their own GEM handle. ftruncate64() needs only write access to the inode. Neither path requires CAP_SYS_ADMIN.\nUI:N - The attacker opens the render node, maps the object, and triggers the purge, or calls ftruncate64() on a file they can already write. No other user has to mount media or confirm a prompt.\nS:U - drm_vma_node_unmap() walks VMAs on the DRM device anon_inode address_space, and the leftover PTE is in that process's mm, the same security authority as this kernel bug.\nC:H - hba is (pgoff_t)holebegin >> PAGE_SHIFT, so a hole at or above 4GiB aliases into the low 4GiB. drm_gem_shmem_purge_locked() still calls shmem_truncate_range() while the vmf_insert_pfn() PTE installed by drm_gem_shmem_fault() keeps reading that freed, reused page.\nI:H - The missed VMA stays writable. vc4_bo_purge() then dma_free_wc()s those pages, and the shmem purge releases them with shmem_truncate_range(). A store through the stale special PTE writes the frame after the allocator reuses it.\nA:H - drm_gem_shmem_purge_locked() and vc4_bo_purge() free pages that drm_vma_node_unmap() failed to clear from the user page tables. That use-after-free crashes the kernel once the frame is reused as a slab or file page."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:26.784Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b"},{"url":"https://git.kernel.org/stable/c/0cf8d3fdd869fe079e55f8e621e45397a819d93c"},{"url":"https://git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3"},{"url":"https://git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2"}],"title":"mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99654","datePublished":"2026-11-20T05:50:06.890Z","dateReserved":"2026-09-25T10:25:14.427Z","dateUpdated":"2026-11-22T11:09:26.784Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:17:59","lastModifiedDate":"2026-11-22 11:17:04","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99654","Ordinal":"1","Title":"mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit","CVE":"CVE-2026-99654","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99654","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix unmap_mapping_range() beyond 4 GiB on 32-bit\n\nCommit 9eab0421fa94 (\"mm: fix unmap_mapping_range high bits shift bug\")\nmade holebegin and holelen unsigned before they are shifted, by casting\nthem to pgoff_t. That is an unsigned long: on a 32-bit kernel the cast\ncuts off the upper half of the two loff_t values, so a hole which begins\nat 4 GiB or beyond is taken for one in the first 4 GiB of the file.\n\ntruncate_pagecache() passes the new size of the file and asks for private\nCOWed pages to be unmapped as well. If a file of 6 GiB is truncated to\n5 GiB, everything from 1 GiB on is unmapped, and what a process has\nwritten to a private mapping of the range between 1 GiB and 5 GiB is\nlost: it reads the contents of the file again.\n\nWhere the range has an end, the wrong range is unmapped instead of the\nright one. The page cache copes with that, as it unmaps every folio that\nit removes. The callers which only have unmap_mapping_range() to get\nrid of user mappings do not, for example drm_vma_node_unmap(), whose fake\noffsets reach beyond 4 GiB on 32-bit, and revoke_iomem() with physical\naddresses of more than 32 bits.\n\nCast to u64 instead. Nothing changes for 64-bit kernels.\n\nFix generated by an LLM and sent by Josef Bacik in private.","Type":"Description","Title":"mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit"}]}}}