CVE-2026-138867
mm/memory: constrain generic_access_phys() to page boundary
Check your servers for CVE-2026-138867
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138867 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
mm/memory: constrain generic_access_phys() to page boundary
This patch addresses an issue in generic_access_phys() where accessing memory across page boundaries in PFNMAP VMAs assumes physical pages are contiguous, which can lead to accessing unintended physical memory or exceeding VMA boundaries.
generic_access_phys() improperly validates the memory access range: it only validates the start address using follow_pfnmap_start() and passes PAGE_ALIGN(len + offset) to ioremap_prot().
This poses two problems: 1. In PFNMAP VMAs, consecutive virtual pages are not guaranteed to be physically contiguous, and individual PTEs may have different access permissions or writability. 2. The mapping may cross VMA boundaries if len extends beyond vma->vm_end.
Constrain the access in generic_access_phys() to at most the current page boundary (PAGE_SIZE - offset) and map only a single PAGE_SIZE via ioremap_prot(). Since the caller __access_remote_vm() already loops over the requested length and handles partial transfers, it will naturally iterate over the remaining pages.
Also add a missing (resource_size_t) cast during PFN re-validation to avoid truncation on 32-bit PAE systems.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before eb4334c7cebb4812126bc5dbb8e91c4d63b3d784 affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before 14375f7daba0afb67c10d56e5f4af694ad18d928 affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before defac975e1fbd1cae022bf26657299f87105fd9e affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before 61b405ef3e35b5890365090ab6a377855e9a9b71 affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before 94a138ce5baed8233c0d541fd14ac6d58bf1da8c affected from 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75, before ae0298a5fbeff32951c0d31398ccec97ec6aa0ea affected c8d452410c798d28ac96c3716b011d3d6b5d3ade affected 601391cbb6334533d6fde4e81f40b53b5f85d73b affected 9113c468b621ddb74f2395564720862faa3a083d affected 970970dcb4fca4fdcbb1b9bf4d7cd686796dc9d6 affected 9db79db105f2316229803a85eec7db665f7d276c affected 463fb5a2cc7013f50763ee2322fa724553150842 affected 6f5468a717c8f18e721dc9bc7f8d7ce41f22eb1a affected from 3.2.69, before 3.3 affected from 3.4.108, before 3.5 affected from 3.10.72, before 3.11 affected from 3.12.39, before 3.13 affected from 3.14.36, before 3.15 affected from 3.18.10, before 3.19 affected from 3.19.2, before 3.20
Other versions: unaffected
|
| Linux |
affected 4.0 unaffected before 4.0 unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138867 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138867
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138867
trivy image --scanners vuln IMAGE | grep CVE-2026-138867
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/eb4334c7cebb4812126bc5dbb8e91c4d63b3d784 git.kernel.org
- https://git.kernel.org/stable/c/14375f7daba0afb67c10d56e5f4af694ad18d928 git.kernel.org
- https://git.kernel.org/stable/c/defac975e1fbd1cae022bf26657299f87105fd9e git.kernel.org
- https://git.kernel.org/stable/c/f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba git.kernel.org
- https://git.kernel.org/stable/c/61b405ef3e35b5890365090ab6a377855e9a9b71 git.kernel.org
- https://git.kernel.org/stable/c/94a138ce5baed8233c0d541fd14ac6d58bf1da8c git.kernel.org
- https://git.kernel.org/stable/c/ae0298a5fbeff32951c0d31398ccec97ec6aa0ea git.kernel.org
Source: the record CVE-2026-138867 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse