# CVE-2026-31456: mm/pagewalk: fix race between concurrent split and refault

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.11% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-04-22T13:53:49.568Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 138ada1337b47cc5efb08e517674d46f86268274; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 38ec58670a0c5fc1edabdeccd857e586b7b3f318; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 3b89863c3fa482912911cd65a12a3aeef662c250
- Anyone running Linux 6.12

## Description

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

mm/pagewalk: fix race between concurrent split and refault

The splitting of a PUD entry in walk\_pud\_range() can race with a
concurrent thread refaulting the PUD leaf entry causing it to try walking
a PMD range that has disappeared.

An example and reproduction of this is to try reading numa\_maps of a
process while VFIO-PCI is setting up DMA (specifically the
vfio\_pin\_pages\_remote call) on a large BAR for that process.

This will trigger a kernel BUG:
vfio-pci 0000:03:00.0: enabling device (0000 -\> 0002)
BUG: unable to handle page fault for address: ffffa23980000000
PGD 0 P4D 0
Oops: Oops: 0000 \[\#1\] SMP NOPTI
...
RIP: 0010:walk\_pgd\_range+0x3b5/0x7a0
Code: 8d 43 ff 48 89 44 24 28 4d 89 ce 4d 8d a7 00 00 20 00 48 8b 4c 24
28 49 81 e4 00 00 e0 ff 49 8d 44 24 ff 48 39 c8 4c 0f 43 e3 \<49\> f7 06
   9f ff ff ff 75 3b 48 8b 44 24 20 48 8b 40 28 48 85 c0 74
RSP: 0018:ffffac23e1ecf808 EFLAGS: 00010287
RAX: 00007f44c01fffff RBX: 00007f4500000000 RCX: 00007f44ffffffff
RDX: 0000000000000000 RSI: 000ffffffffff000 RDI: ffffffff93378fe0
RBP: ffffac23e1ecf918 R08: 0000000000000004 R09: ffffa23980000000
R10: 0000000000000020 R11: 0000000000000004 R12: 00007f44c0200000
R13: 00007f44c0000000 R14: ffffa23980000000 R15: 00007f44c0000000
FS:  00007fe884739580(0000) GS:ffff9b7d7a9c0000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffa23980000000 CR3: 000000c0650e2005 CR4: 0000000000770ef0
PKRU: 55555554
Call Trace:
 \<TASK\>
 \_\_walk\_page\_range+0x195/0x1b0
 walk\_page\_vma+0x62/0xc0
 show\_numa\_map+0x12b/0x3b0
 seq\_read\_iter+0x297/0x440
 seq\_read+0x11d/0x140
 vfs\_read+0xc2/0x340
 ksys\_read+0x5f/0xe0
 do\_syscall\_64+0x68/0x130
 ? get\_page\_from\_freelist+0x5c2/0x17e0
 ? mas\_store\_prealloc+0x17e/0x360
 ? vma\_set\_page\_prot+0x4c/0xa0
 ? \_\_alloc\_pages\_noprof+0x14e/0x2d0
 ? \_\_mod\_memcg\_lruvec\_state+0x8d/0x140
 ? \_\_lruvec\_stat\_mod\_folio+0x76/0xb0
 ? \_\_folio\_mod\_stat+0x26/0x80
 ? do\_anonymous\_page+0x705/0x900
 ? \_\_handle\_mm\_fault+0xa8d/0x1000
 ? \_\_count\_memcg\_events+0x53/0xf0
 ? handle\_mm\_fault+0xa5/0x360
 ? do\_user\_addr\_fault+0x342/0x640
 ? arch\_exit\_to\_user\_mode\_prepare.constprop.0+0x16/0xa0
 ? irqentry\_exit\_to\_user\_mode+0x24/0x100
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
RIP: 0033:0x7fe88464f47e
Code: c0 e9 b6 fe ff ff 50 48 8d 3d be 07 0b 00 e8 69 01 02 00 66 0f 1f
84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 \<48\> 3d 00
   f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28
RSP: 002b:00007ffe6cd9a9b8 EFLAGS: 00000246 ORIG\_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007fe88464f47e
RDX: 0000000000020000 RSI: 00007fe884543000 RDI: 0000000000000003
RBP: 00007fe884543000 R08: 00007fe884542010 R09: 0000000000000000
R10: fffffffffffffbc5 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000003 R14: 0000000000020000 R15: 0000000000020000
 \</TASK\>

Fix this by validating the PUD entry in walk\_pmd\_range() using a stable
snapshot (pudp\_get()).  If the PUD is not present or is a leaf, retry the
walk via ACTION\_AGAIN instead of descending further.  This mirrors the
retry logic in walk\_pte\_range(), which lets walk\_pmd\_range() retry if the
PTE is not being got by pte\_offset\_map\_lock().

## Affected and fixed versions

- Linux: \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 138ada1337b47cc5efb08e517674d46f86268274; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 38ec58670a0c5fc1edabdeccd857e586b7b3f318; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 3b89863c3fa482912911cd65a12a3aeef662c250 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 3b89863c3fa482912911cd65a12a3aeef662c250 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31456. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31456.md
Affected: Linux >= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, < 138ada1337b47cc5efb08e517674d46f86268274; >= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, < 38ec58670a0c5fc1edabdeccd857e586b7b3f318; >= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, < 9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0; >= f9e54c3a2f5b79ecc57c7bc…
Fixed in: Linux 138ada1337b47cc5efb08e517674d46f86268274, Linux 38ec58670a0c5fc1edabdeccd857e586b7b3f318, Linux 9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0, Linux 3b89863c3fa482912911cd65a12a3aeef662c250

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31456 being exploited?

There is no confirmed exploitation: CVE-2026-31456 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.11% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31456?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-31456?

Linux \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 138ada1337b47cc5efb08e517674d46f86268274; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 38ec58670a0c5fc1edabdeccd857e586b7b3f318; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0; \>= f9e54c3a2f5b79ecc57c7bc7d0d3521e461a2101, \< 3b89863c3fa482912911cd65a12a3aeef662c250; Linux 6.12.

### Is there a fix for CVE-2026-31456?

Yes. Fixed in Linux 138ada1337b47cc5efb08e517674d46f86268274, Linux 38ec58670a0c5fc1edabdeccd857e586b7b3f318, Linux 9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0, Linux 3b89863c3fa482912911cd65a12a3aeef662c250. Upgrade Linux to 3b89863c3fa482912911cd65a12a3aeef662c250 or later.

### How do I check if I'm affected by CVE-2026-31456?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/38ec58670a0c5fc1edabdeccd857e586b7b3f318>
- patch: <https://git.kernel.org/stable/c/9bbbebd94dd5be25ec8c899d46ef01b33d5d22c0>
- patch: <https://git.kernel.org/stable/c/3b89863c3fa482912911cd65a12a3aeef662c250>
- other: <https://git.kernel.org/stable/c/138ada1337b47cc5efb08e517674d46f86268274>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31456>

HTML: <https://flawdb.com/CVE-2026-31456> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31456>
