CVE-2026-31398
Description
A flaw was found in the Linux kernel's memory management unit (MMU). A local user could exploit this vulnerability by manipulating memory operations, leading to incorrect page table entry (PTE) restoration for lazyfree folios during batch unmapping. This issue can cause memory pages with mixed writable and non-writable attributes to be incorrectly marked as fully writable, violating copy-on-write (CoW) semantics. The consequence of this flaw is a kernel crash, resulting in a denial of service.
Statement
A moderate-severity flaw was found in the Linux kernel's memory management reverse-mapping subsystem (mm/rmap), which does not affect any Red Hat Enterprise Linux or Red Hat In-Vehicle OS release. When the kernel batches the unmapping of anonymous lazyfree folios via folio_unmap_pte_batch(), a batch containing both writable and non-writable page table entries (PTEs) can be treated as uniformly writable, so a failed unmap that restores the PTEs may incorrectly mark read-only mappings as writable. This violates copy-on-write (CoW) semantics for anonymous memory. A local unprivileged user who can carry out a specific sequence of memory operations (splitting and merging VMAs around a large folio, marking it lazyfree with MADV_FREE, dirtying it, and triggering memory reclaim) can cause the kernel to crash (a BUG_ON in page_table_check), resulting in a denial of service. Red Hat rated this flaw Moderate impact (CVSS 5.5, AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) because the demonstrated impact is a kernel crash affecting availability only; the upstream CVE record scores it at 7.8 assuming confidentiality and integrity impact from incorrect writable sharing of anonymous pages, which is not established by the available evidence. All Red Hat Enterprise Linux 7 through 10 and Red Hat In-Vehicle OS 2.0 kernel streams are not affected because the vulnerable code is not present, and Red Hat Enterprise Linux 6 Extended Lifecycle Support is out of support scope.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | N/A | 7.8 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | High |
| Integrity Impact | None | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Confidentiality,Integrity
Technical Impact: Read Application Data; Modify Application Data
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.