CVE-2026-31398
Incorrect PTE Restoration in Linux Kernel Lazyfree Folios Causes Kernel Crash
Publication date: 2026-04-03
Last updated on: 2026-04-27
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 7.0.0-rc1-00116-g018018a17770 |
| linux | linux_kernel | 7.0.0-rc1-00116 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's memory management subsystem, specifically in the handling of lazyfree folios in the reverse mapping (rmap) code. The issue arises when a batch of page table entries (PTEs) that includes both writable and non-writable pages is processed incorrectly, causing the entire batch to be marked writable. This breaks the expected semantics of anonymous memory and copy-on-write (CoW) behavior.
The bug can lead to a kernel crash triggered by a condition where a writable anonymous page is mapped into the page tables of more than one process, which should not happen. This is due to improper restoration of PTEs during unmapping of lazyfree folios, where the writable bit and the soft-dirty bit are not correctly respected during batching.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash, leading to system instability or denial of service. The crash occurs because the kernel's memory management assumptions are violated, specifically that writable anonymous pages should not be shared across multiple processes.
Such a crash can disrupt normal system operations, potentially causing data loss or requiring a system reboot. It may also affect applications relying on memory management features like lazyfree folios and copy-on-write semantics.