Description
In the Linux kernel, the following vulnerability has been resolved:
mm: disallow ioremap'ing ordinary RAM in generic_access_phys()
generic_access_phys() can end up getting called on CoW PFNMAP mappings,
resulting in it trying to ioremap anonymous folios, which especially
the x86 code doesn't enjoy, and which is in general just odd/wrong.
E.g., with a CoW mapping of a PCI BAR:
ioremap on RAM at 0x0000000045623000 - 0x0000000045623fff
WARNING: arch/x86/mm/ioremap.c:216 at __ioremap_caller.isra.0+0x4c2/0x5f0
Call Trace:
generic_access_phys+0x130/0x4d0 mm/memory.c:7178
kernfs_vma_access+0x1ce/0x280 fs/kernfs/file.c:437
__access_remote_vm+0x58f/0x890 mm/memory.c:7256
mem_rw+0x2a1/0x670 fs/proc/base.c:912
But more generically, we should disallow access to anything that looks
like ordinary RAM in the system: including allocating memory (e.g.,
alloc_pages) and mapping them in a VM_PFNMAP.
For pages with an online memmap, allow only pages marked as reserved
(PageReserved). This also includes memblock allocations, however,
distinguishing them from other MMIO is tricky, and nobody should really
be mapping them in a PFNMAP (except someone abusing /dev/mem, which we
do not care about).
So only allow access if there is no online memmap, or if the pages are
marked reserved. Reject other pages with -EINVAL.
Note that, just like other pfn_to_online_page() users, we won't care about
concurrent memory offlining; mapping memory that can concurrently get
offlined is highly dubious.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 2.6.27 | — |
| Linux | Linux | patch: 6.12.118 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <dc175f325ad7af6b0b080dbe42759a1ed216ee3c | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <e9d4d0f7d9ca54980fa989280ea75cbed3190c99 | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <745135bdd05d32717770cd110883f5e548dc53d5 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <4590752e20aa393cc0d4fe538c0747d14a98c97a | — |
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <2e88c42d7d3e96dc23b3ac9eead173f3dff8f816 | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <6afeab823170cb6fe74c0a6d1671a6a0bb7bc89a | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <1c78ad240e7465eb926cb6150db78c22452e0e62 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc <5ef17106397287d92ab1ad395140c8f74d0c26ed | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.118-1 | — |
| Debian 12 | linux | No fix yet | — |
| Debian 12 | linux-6.12 | 6.12.118-1~deb12u1 | DLA-4961-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 2
- DLA-4961-1 linux-6.12 - security update Debian Security (DSA / DLA) · Dec 2, 2026
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/745135bdd05d32717770cd110883f5e548dc53d5
- https://git.kernel.org/stable/c/dc175f325ad7af6b0b080dbe42759a1ed216ee3c
- https://git.kernel.org/stable/c/6afeab823170cb6fe74c0a6d1671a6a0bb7bc89a
- https://git.kernel.org/stable/c/1c78ad240e7465eb926cb6150db78c22452e0e62
- https://git.kernel.org/stable/c/5ef17106397287d92ab1ad395140c8f74d0c26ed
- https://git.kernel.org/stable/c/e9d4d0f7d9ca54980fa989280ea75cbed3190c99
- https://git.kernel.org/stable/c/2e88c42d7d3e96dc23b3ac9eead173f3dff8f816
- https://git.kernel.org/stable/c/4590752e20aa393cc0d4fe538c0747d14a98c97a