The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31398

CVE-2026-31398: Linux Kernel Privilege Escalation Bug

CVE-2026-31398 is a privilege escalation vulnerability in the Linux kernel mm/rmap subsystem that causes incorrect PTE restoration for lazyfree folios. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-31398 Overview

A memory corruption vulnerability has been identified in the Linux kernel's memory management subsystem, specifically in the mm/rmap component. The flaw involves incorrect page table entry (PTE) restoration for lazyfree folios during batch unmap operations via folio_unmap_pte_batch(). When a batch contains a mix of writable and non-writable PTEs, the vulnerability may incorrectly set the entire batch as writable, breaking anonymous memory and Copy-on-Write (CoW) semantics.

Critical Impact

This vulnerability can cause kernel crashes and potentially allow a writable page to be mapped into the page tables of more than one process, violating fundamental memory isolation guarantees and CoW semantics.

Affected Products

  • Linux kernel versions with vulnerable mm/rmap implementation
  • Systems using 64K mTHP (multi-size Transparent Huge Pages)
  • Linux kernel builds with CONFIG_PAGE_TABLE_CHECK enabled

Discovery Timeline

  • April 3, 2026 - CVE-2026-31398 published to NVD
  • April 7, 2026 - Last updated in NVD database

Technical Details for CVE-2026-31398

Vulnerability Analysis

The vulnerability resides in the folio_unmap_pte_batch() function within the Linux kernel's reverse mapping (mm/rmap) subsystem. This function is responsible for batch unmapping anonymous lazyfree folios. The core issue is that when processing a batch of PTEs with mixed writable and non-writable permissions, the function fails to properly respect the writable bit during batching operations.

During PTE restoration after a failed unmap of a lazyfree folio, the entire batch may be restored with writable permissions even when individual PTEs should remain non-writable. This breaks the fundamental invariant that anonymous pages should only be mapped writable into a single process's address space. The same issue affects the soft-dirty bit, which is used for tracking memory modifications.

Root Cause

The root cause is the improper handling of permission bits during PTE batching operations in folio_unmap_pte_batch(). The function aggregates PTEs for batch processing but does not preserve the individual writable and soft-dirty bit states when determining batch properties. This leads to permission escalation where non-writable PTEs inherit writable status from other PTEs in the same batch.

The bug manifests when:

  1. A large folio spans multiple PTEs with different permission states
  2. VMA splitting and merging operations create batches with mixed permissions
  3. MADV_FREE marks the folio as lazyfree
  4. Memory reclaim triggers the restoration path

Attack Vector

The vulnerability can be triggered through a specific sequence of memory operations. The exploitation scenario involves faulting in a 64K large folio, splitting the VMA using MADV_DONTFORK, calling fork() to create mixed writable/non-writable PTE states, merging VMAs with MADV_DOFORK, applying MADV_FREE to mark the folio as lazyfree, writing to memory to dirty the PTE, and then triggering reclaim to hit the PTE restoration path.

When the BUG_ON() check in page_table_check_set() detects that an anonymous page is being mapped writable into multiple processes' page tables, the kernel crashes with the error at mm/page_table_check.c:118.

Detection Methods for CVE-2026-31398

Indicators of Compromise

  • Kernel panic or BUG messages referencing page_table_check_set+0x28c or similar offsets in mm/page_table_check.c
  • Stack traces showing try_to_unmap_one, rmap_walk_anon, and shrink_folio_list in the call chain
  • System crashes during memory reclaim operations with contpte_set_ptes in the trace
  • Unexpected kernel oops messages with error code 00000000f2000800 on ARM64 systems

Detection Strategies

  • Enable CONFIG_PAGE_TABLE_CHECK in kernel configuration to catch violations at runtime
  • Monitor kernel logs for BUG messages related to anon_map_count assertions
  • Implement system monitoring for unexpected kernel crashes during high memory pressure
  • Review system logs for patterns indicating shrink_node or __node_reclaim operations preceding crashes

Monitoring Recommendations

  • Configure crash dump collection (kdump) to capture kernel state during crashes for forensic analysis
  • Monitor dmesg output for warnings related to memory management and rmap operations
  • Set up alerts for kernel panic events on production systems
  • Track memory reclaim statistics for anomalies that may indicate vulnerability exploitation attempts

How to Mitigate CVE-2026-31398

Immediate Actions Required

  • Apply the latest kernel patches from the stable kernel tree addressing this vulnerability
  • If patching is not immediately possible, consider disabling mTHP features temporarily
  • Monitor systems for kernel crashes exhibiting the described call trace patterns
  • Prioritize patching on systems under high memory pressure where reclaim is frequent

Patch Information

The Linux kernel maintainers have released patches to fix this vulnerability. The fix ensures that both the writable bit and soft-dirty bit are properly respected during PTE batching operations in folio_unmap_pte_batch().

Patches are available from the following kernel commits:

  • Kernel Patch Update
  • Kernel Commit Changes
  • Kernel Code Improvement

Workarounds

  • Disable multi-size Transparent Huge Pages (mTHP) by setting mTHP to never instead of always
  • Avoid using MADV_FREE (lazyfree) on memory regions that undergo VMA splitting and merging
  • Consider disabling THP entirely on affected systems until patches can be applied
  • Limit memory pressure on affected systems to reduce frequency of reclaim operations
bash
# Disable mTHP temporarily as a workaround
echo never > /sys/kernel/mm/transparent_hugepage/hugepages-64kB/enabled

# Alternatively, disable THP entirely
echo never > /sys/kernel/mm/transparent_hugepage/enabled

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Patch Update

  • Kernel Commit Changes

  • Kernel Code Improvement
  • Related CVEs
  • CVE-2026-31411: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-23438: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-23439: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-23437: Linux Kernel Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English