When something reads or writes another process’s memory through /proc/pid/mem or ptrace(), the kernel goes through __access_remote_vm(). For ordinary pages it pins them; for a mapping of device memory (a VM_PFNMAP VMA, such as /dev/mem or a PCI BAR) it calls the VMA’s access handler, which for most drivers is generic_access_phys() in mm/memory.c. The kernel CNA record says that function “only validates the start address using follow_pfnmap_start() and passes PAGE_ALIGN(len + offset) to ioremap_prot()”, which assumes that the next pages are physically contiguous, have the same permissions and lie inside the VMA, none of which PFNMAP guarantees. Red Hat and SUSE both rate it 7.8 Important; the fix is in 7.4-rc1 and six stable branches. Upgrade to 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4 or later; until then keep device nodes such as /dev/mem, UIO and PCI resource files out of the hands of untrusted local users, which is the precondition.
CVE-2026-138867 at a glance.
| Component | Linux kernel, memory management (mm/memory.c, function generic_access_phys()), reached through __access_remote_vm() from /proc/pid/mem, ptrace(PTRACE_PEEKDATA/POKEDATA) and process_vm_readv/writev() on a VM_PFNMAP mapping |
| Affected versions | from 9cb12d7b4cca (“mm/memory.c: actually remap enough memory”): 4.0 up to 5.15 before 5.15.226, 6.1 before 6.1.193, 6.6 before 6.6.163, 6.12 before 6.12.118, 6.18 before 6.18.63, 7.3 before 7.3.4 and 7.4 before 7.4-rc1; the record also names five older stable commits as affected points |
| Fixed in | mainline 7.4-rc1 (commit ae0298a5, Luxiao Xu, authored 10 September 2026, committed by Andrew Morton; mm/memory.c +8/−2: clamp len to PAGE_SIZE - offset, map a single page with ioremap_prot(), let the caller’s loop do the rest, and cast the PFN to resource_size_t when re-validating) and stable 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4. Reported by Vega of nebusec.ai, suggested and acked by David Hildenbrand, Cc: stable |
| Severity | Red Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-787), bug 2586354 “Unauthorized memory access via improper page boundary validation in generic_access_phys()”; SUSE Important 7.8 on the same vector and CVSS 4.0 8.5; Ubuntu Medium; the kernel CNA gives no score and NVD (Received, 30 November) carries none |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00215 (13th percentile) on 1 December 2026 |
| Who is exposed | A host where a local user can obtain a PFNMAP mapping, which means opening a device node that maps physical memory: /dev/mem, a UIO device, a PCI resource file in sysfs, or another driver that installs this handler for its MMIO mappings, then read its own /proc/self/mem across the mapping, or ptrace a process that has one. Red Hat: an authenticated local user “could inspect or overwrite physical memory beyond allocated limits without elevated privileges”; exposure is reduced where untrusted local users are prohibited or tenant workloads are isolated |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
A VM_PFNMAP VMA has no struct page behind it; each page-table entry points at a raw physical frame, and consecutive virtual pages may map frames that are anywhere in physical memory, with their own protection bits. get_user_pages() cannot pin such pages, so when /proc/pid/mem or a debugger needs to read through one, __access_remote_vm() falls back to the VMA’s vm_ops->access hook, and the hook most drivers install is generic_access_phys(): look up the frame behind the address, ioremap_prot() it with the mapping’s own protection, copy, unmap.
The record describes the two things it got wrong. It looked up only the frame behind the first byte and then mapped PAGE_ALIGN(len + offset) bytes starting there, so a request that straddled a page boundary silently assumed the next physical frame was the one after the first, with the same permissions, when the VMA may have mapped something else entirely there, or nothing at all; and it did not check that len stayed inside the VMA, so the mapping could run past vm_end. Either way the copy touched physical memory the caller had no mapping of, for reading or, with POKEDATA or a write to /proc/pid/mem, for writing. Red Hat’s summary is information disclosure, memory corruption or a crash by an authenticated local user. The commit, assisted by an LLM according to its trailer, also adds a (resource_size_t) cast on the PFN re-validation that was truncating on 32-bit PAE systems.
The fix is the obvious one: clamp each call to the current page, min_t(int, len, PAGE_SIZE - offset), map exactly one page, and rely on __access_remote_vm(), which already loops over the requested length and handles partial transfers, to come back for the next page with a fresh lookup. The change is eight lines in mm/memory.c, written by Luxiao Xu, suggested and acked by David Hildenbrand and merged by Andrew Morton for 7.4-rc1; the Fixes tag points at a 2015 commit, hence the 4.0 lower bound, and the CNA lists six stable backports.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The function is core memory management, so every kernel build is affected; what varies is who can open a device that gives them a PFNMAP mapping.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026 | — |
| Debian | bookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie 6.12.117-1 vulnerable, trixie-security 6.12.118-1 fixed; forky and sid (7.3.6-1) fixed, first fixed upload 7.3.4-1; no DSA | trixie-security 6.12.118-1; unstable 7.3.4-1 |
| Ubuntu | Medium; linux and every flavour “Needs evaluation” in 26.10, 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS and the ESM releases on 1 December 2026; “Introduced by 9cb12d7 and fixed by ae0298a” | — |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8 (bug 2586354, CWE-787); kernel and kernel-rt affected in RHEL 6 ELS, 7 ELS, 8, 9 and 10 and every OpenShift 4/5 RHCOS image; no errata on 2 December 2026 | — |
| openSUSE/SLE | Pending, Important 7.8 (CVSS 4.0 8.5; bugs 1292459 and 1292502): every supported SLE 12 SP5, 15 SP4 to SP7, 16.0/16.1, SLE Micro and openSUSE Leap 16.x kernel package affected; no SUSE-SU yet | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 5.15.226 / 6.1.193 / 6.6.163 / 6.12.118 / 6.18.63 / 7.3.4 or later |
How to check
After the kernel version, the question is who can get a PFNMAP mapping: which device nodes that map physical memory exist, who can open them, and which processes already hold such a mapping and could be ptraced.
# 1. the running kernel: fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4 or later
uname -r
# 2. device nodes that hand out physical-memory mappings, and who may open them
ls -l /dev/mem /dev/kmem /dev/uio* /dev/fb* /dev/dri/* 2>/dev/null
find /sys/bus/pci/devices/*/ -name 'resource[0-9]*' -perm /o+rw 2>/dev/null | head
# 3. processes that already map one of them (candidates for a ptrace through the mapping)
grep -lE '/dev/(mem|uio[0-9]+|fb[0-9]+|dri/)' /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | sort -un | head
# 4. who may ptrace whom
sysctl kernel.yama.ptrace_scope 2>/dev/null; grep -E 'CONFIG_STRICT_DEVMEM|CONFIG_IO_STRICT_DEVMEM' /boot/config-$(uname -r) 2>/dev/nullA fixed kernel ends it. On an affected one, the host is exposed to a local user who can open any node in step 2 or, through ptrace, reach a process in step 3; a process can always read its own /proc/self/mem, so a user who can mmap /dev/mem or a UIO device needs no debugger. CONFIG_STRICT_DEVMEM limits what /dev/mem itself exposes but does not change this function’s behaviour on other drivers. A headless server where the only device nodes in step 2 are root-owned and no unprivileged user can log in has the precondition closed.
How to fix it
Update the kernel and reboot. Debian trixie already has it in the security suite; the others are pending. The interim control is the one that ought to be in place anyway: physical-memory device nodes owned by root, and the video and render groups limited to the accounts that need them.
# Debian trixie (6.12.118-1 in trixie-security) and forky / sid (7.3.4-1 and later)
apt update && apt install linux-image-amd64 && systemctl reboot# RHEL / Rocky / Alma: no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot# Ubuntu: Needs evaluation; once the linux package is released
apt update && apt install linux-generic && systemctl reboot# Interim: confirm the nodes that map physical memory are root-only, and tighten ptrace
chmod 600 /dev/mem 2>/dev/null; ls -l /dev/uio* 2>/dev/null
sysctl -w kernel.yama.ptrace_scope=1Restricting the device nodes removes the way in; ptrace_scope=1 stops one user’s process reading another unrelated process’s mapping, which is the default on Ubuntu and Debian already. What not to do: do not treat ptrace restrictions as the fix on their own. Reading /proc/self/mem needs no ptrace permission at all, so a user who can map a device can drive the bug against their own process; it is the device access, not the debugger access, that gates this.
Sources
- CVE-2026-138867 at CVE.org — the kernel CNA record: the two-problem description, the “only validates the start address” sentence, the PAE cast, the 4.0 lower bound and the seven fix commits (30 November 2026)
- Fix commit ae0298a5 (Luxiao Xu, authored 10 September 2026, committed by Andrew Morton; mainline 7.4-rc1 per Debian;
mm/memory.c+8/−2; Fixes: 9cb12d7b4cca; Reported-by: Vega; Suggested-by and Acked-by: David Hildenbrand; Cc: stable; Link: lore), read with its patch view on 2 December 2026 - NVD entry — Received on 30 November 2026; no CVSS metric and no CWE on 2 December 2026
- Distribution trackers: Debian (bookworm vulnerable, trixie fixed in 6.12.118-1, unstable in 7.3.4-1) · Ubuntu (Medium, Needs evaluation, read on 2 December 2026) · Red Hat (Important 7.8, bug 2586354, CWE-787, every RHEL kernel affected) · SUSE (Pending, Important 7.8 / 4.0 8.5, all products affected) · Alpine (refused the automated reader on 2 December 2026)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00215 (percentile 0.126) on 1 December 2026
Related reading
- CVE-2026-99809: Linux kernel vfio-platform read-only mapping upgraded with mprotect() — the other PFNMAP device-mapping fix published this week
- CVE-2026-99661: Linux kernel GUP-fast nr_pages overflow — the pinned-page side of the same remote-access path
- CVE-2026-99662: Linux kernel GUP-fast with zero pages — another bounds error in
mm/from November - CVE-2026-99659: Linux kernel mmu_gather range truncation — a 32-bit truncation in the same subsystem, like the PAE cast fixed here
- The Kernel — what a PFNMAP mapping is and why
/proc/pid/memneeds a driver hook to read one
This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

