CVE-2026-99924: mm: disallow ioremap'ing ordinary RAM in generic_access_phys()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm: disallow ioremap'ing ordinary RAM in genericaccessphys()

genericaccessphys() 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 ioremapcaller.isra.0+0x4c2/0x5f0 Call Trace: genericaccessphys+0x130/0x4d0 mm/memory.c:7178 kernfsvmaaccess+0x1ce/0x280 fs/kernfs/file.c:437 accessremotevm+0x58f/0x890 mm/memory.c:7256 memrw+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., allocpages) and mapping them in a VMPFNMAP.

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 pfntoonlinepage() users, we won't care about concurrent memory offlining; mapping memory that can concurrently get offlined is highly dubious.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:18 PM
Data Sourced
via MITRE·01:18 PM
Description
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

The issue can occur when generic_access_phys() is invoked for a copy-on-write PFNMAP mapping that resolves to ordinary RAM, such as anonymous folios. One described example is a copy-on-write mapping of a PCI BAR.

2

What systems or mappings are most relevant to triage?

Focus on kernel users that expose or access VM_PFNMAP mappings, particularly mappings that can become copy-on-write and resolve to normal system RAM. The described access path includes kernfs VMA access and remote process memory access through procfs.

3

How does the resolved change mitigate the problem?

The fix disallows access to pages that appear to be ordinary RAM. For pages with an online memory map, it permits only pages marked reserved with PageReserved.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203