CVE-2026-138867
publishedmm/memory: constrain generic_access_phys() to page boundary
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < eb4334c7cebb4812126bc5dbb8e91c4d63b3d784 · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < 14375f7daba0afb67c10d56e5f4af694ad18d928 · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < defac975e1fbd1cae022bf26657299f87105fd9e · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < 61b405ef3e35b5890365090ab6a377855e9a9b71 · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < 94a138ce5baed8233c0d541fd14ac6d58bf1da8c · 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < ae0298a5fbeff32951c0d31398ccec97ec6aa0ea · c8d452410c798d28ac96c3716b011d3d6b5d3ade · 601391cbb6334533d6fde4e81f40b53b5f85d73b · 9113c468b621ddb74f2395564720862faa3a083d · 970970dcb4fca4fdcbb1b9bf4d7cd686796dc9d6 · 9db79db105f2316229803a85eec7db665f7d276c · 463fb5a2cc7013f50763ee2322fa724553150842 · 6f5468a717c8f18e721dc9bc7f8d7ce41f22eb1a · 3.2.69 to < 3.3 · 3.4.108 to < 3.5 · 3.10.72 to < 3.11 · 3.12.39 to < 3.13 · 3.14.36 to < 3.15 · 3.18.10 to < 3.19 · 3.19.2 to < 3.20 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.0 (affected) · 0 to < 4.0 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < eb4334c7cebb4812126bc5dbb8e91c4d63b3d784 (affected · git)9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < 14375f7daba0afb67c10d56e5f4af694ad18d928 (affected · git)9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < defac975e1fbd1cae022bf26657299f87105fd9e (affected · git)9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba (affected · git)9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < 61b405ef3e35b5890365090ab6a377855e9a9b71 (affected · git)9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < 94a138ce5baed8233c0d541fd14ac6d58bf1da8c (affected · git)9cb12d7b4ccaa976f97ce0c5fd0f1b6a83bc2a75 to < ae0298a5fbeff32951c0d31398ccec97ec6aa0ea (affected · git)c8d452410c798d28ac96c3716b011d3d6b5d3ade (affected · git)601391cbb6334533d6fde4e81f40b53b5f85d73b (affected · git)9113c468b621ddb74f2395564720862faa3a083d (affected · git)970970dcb4fca4fdcbb1b9bf4d7cd686796dc9d6 (affected · git)9db79db105f2316229803a85eec7db665f7d276c (affected · git)463fb5a2cc7013f50763ee2322fa724553150842 (affected · git)6f5468a717c8f18e721dc9bc7f8d7ce41f22eb1a (affected · git)3.2.69 to < 3.3 (affected · semver)3.4.108 to < 3.5 (affected · semver)3.10.72 to < 3.11 (affected · semver)3.12.39 to < 3.13 (affected · semver)3.14.36 to < 3.15 (affected · semver)3.18.10 to < 3.19 (affected · semver)3.19.2 to < 3.20 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 4.0 (affected)0 to < 4.0 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/14375f7daba0afb67c10d56e5f4af694ad18d928
- https://git.kernel.org/stable/c/61b405ef3e35b5890365090ab6a377855e9a9b71
- https://git.kernel.org/stable/c/94a138ce5baed8233c0d541fd14ac6d58bf1da8c
- https://git.kernel.org/stable/c/ae0298a5fbeff32951c0d31398ccec97ec6aa0ea
- https://git.kernel.org/stable/c/defac975e1fbd1cae022bf26657299f87105fd9e
- https://git.kernel.org/stable/c/eb4334c7cebb4812126bc5dbb8e91c4d63b3d784
- https://git.kernel.org/stable/c/f52d13f04994b2cbeba4a1d27cf16d6aaa89e3ba
Provider assertions
1Linux · cna
mm/memory: constrain generic_access_phys() to page boundary
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 833c1e03d10de3358ab07b0fcad72f73bc681e71961f6854502ce8d24eaf0d65
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record