Linux Kernelの32ビット環境で4GiB以降のメモリ解放が誤範囲になる脆弱性
Summary
Linux Kernelの32ビット環境では、4GiB以降の範囲を指定したときにメモリマッピングの解放先が誤って判定されます。ファイルを縮小した際に、プロセスが書き込んだ内容が失われるおそれがあります。修正版は4.20、5.5、5.11、5.16、6.2、6.7、6.12.118、6.18.64、7.3.5で、該当する系統の修正版へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux Kernelの32ビット環境では、4GiB以降の範囲を指定したときにメモリマッピングの解放先が誤って判定されます。ファイルを縮小した際に、プロセスが書き込んだ内容が失われるおそれがあります。修正版は4.20、5.5、5.11、5.16、6.2、6.7、6.12.118、6.18.64、7.3.5で、該当する系統の修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 4.19.305, < 4.20→ 4.20 ≥ 5.4.267, < 5.5→ 5.5 ≥ 5.10.208, < 5.10.275→ 5.10.275 ≥ 5.15.147, < 5.15.226→ 5.15.226 ≥ 6.1.72, < 6.1.193→ 6.1.193 ≥ 6.6.11, < 6.6.163→ 6.6.163 ≥ 6.7.0, < 6.12.118→ 6.12.118 ≥ 6.13.0, < 6.18.64→ 6.18.64 ≥ 6.19.0, < 7.3.5→ 7.3.5 |
4.20 5.5 5.10.275 5.15.226 6.1.193 6.6.163 6.12.118 6.18.64 7.3.5 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99654 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99654 linux-6.12, linux Fix available
- Ubuntu UBUNTU-CVE-2026-99654 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +162 more No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com