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

VendorProductVersions
LinuxLinux28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <745135bdd05d32717770cd110883f5e548dc53d5 [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <dc175f325ad7af6b0b080dbe42759a1ed216ee3c [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <6afeab823170cb6fe74c0a6d1671a6a0bb7bc89a [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <1c78ad240e7465eb926cb6150db78c22452e0e62 [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <5ef17106397287d92ab1ad395140c8f74d0c26ed [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <e9d4d0f7d9ca54980fa989280ea75cbed3190c99 [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <2e88c42d7d3e96dc23b3ac9eead173f3dff8f816 [affected]; 28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc to <4590752e20aa393cc0d4fe538c0747d14a98c97a [affected]
LinuxLinux2.6.27 [affected]; 0 to <2.6.27 [unaffected]; 5.10.275 to <=5.10.* [unaffected]; 5.15.226 to <=5.15.* [unaffected]; 6.1.193 to <=6.1.* [unaffected]; 6.6.163 to <=6.6.* [unaffected]; 6.12.118 to <=6.12.* [unaffected]; 6.18.63 to <=6.18.* [unaffected]; 7.3.4 to <=7.3.* [unaffected]; 7.4-rc1 to <=* [unaffected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 01 Dec 2026 08:04 UTC.