Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2025-22015

CVE-2025-22015: Linux Kernel Privilege Escalation Flaw

CVE-2025-22015 is a privilege escalation vulnerability in the Linux Kernel affecting memory migration. It causes xarray corruption during shmem folio migration. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-22015 Overview

CVE-2025-22015 is a NULL pointer dereference vulnerability in the Linux kernel's memory migration subsystem. The flaw exists in the __folio_migrate_mapping() function where improper handling of shmem folios during migration can lead to xarray multi-index entry corruption. When a shmem folio transitions between page cache and swap cache states, the function incorrectly uses folio_test_swapbacked() to determine the number of xarray entries to update, conflating distinct memory states and potentially corrupting sibling entries during xas_store() operations.

Critical Impact

This vulnerability can cause system denial of service through xarray data structure corruption, potentially leading to NULL pointer dereferences and kernel crashes when shmem folios are migrated between memory regions.

Affected Products

  • Linux Kernel versions 6.7 through 6.12.x
  • Linux Kernel versions 6.13.x prior to 6.13.3
  • Linux Kernel 6.14 release candidates (rc1 through rc7)

Discovery Timeline

  • April 8, 2025 - CVE-2025-22015 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-22015

Vulnerability Analysis

The vulnerability stems from incorrect state checking logic in the kernel's memory migration path. A shmem folio maintains mutual exclusivity between page cache and swap cache residency—it can exist in one or the other, but never both simultaneously. When a folio resides in swap cache, its folio->mapping field should be NULL, indicating it is no longer associated with a shmem mapping.

The problematic code in __folio_migrate_mapping() uses folio_test_swapbacked() to determine how many xarray entries require updating during migration. However, this test returns true for both shmem folios in page cache and shmem folios in swap cache, failing to distinguish between these fundamentally different states. This conflation causes the migration code to update an incorrect number of xarray entries, transforming sibling entries into normal entries during xas_store() operations and corrupting the xarray's multi-index structure.

Additionally, the __split_huge_page() function exhibits a related issue where the check folio_test_anon() && folio_test_swapcache() for obtaining swap cache address space ignores the shmem folio in swap cache case. This could theoretically lead to NULL pointer dereferencing when splitting an in-swap-cache shmem folio, though the current implementation mitigates this through early EBUSY returns when folio->mapping is NULL.

Root Cause

The root cause is the improper use of folio_test_swapbacked() as a discriminator for xarray entry count determination. This function cannot distinguish between shmem folios that are swap-backed but still in page cache versus those that have actually been swapped out to swap cache. The fix replaces this check with folio_test_swapcache(), which correctly identifies whether the xarray is storing swap cache entries, enabling accurate determination of the xarray entry count to update.

Attack Vector

This vulnerability requires local access to exploit. An attacker with local user privileges can trigger the vulnerability by:

  1. Allocating shmem-backed memory regions through shared memory or tmpfs operations
  2. Inducing memory pressure or migration scenarios that cause shmem folios to transition between page cache and swap cache
  3. Timing operations to hit the race condition during the xarray update phase

The migration can be triggered through NUMA memory policy changes, memory compaction operations, or direct page migration syscalls. While exploitation is complex due to timing requirements, successful attacks result in kernel memory corruption and system instability.

Detection Methods for CVE-2025-22015

Indicators of Compromise

  • Kernel oops or panic messages referencing __folio_migrate_mapping() or xas_store() functions
  • System crashes during heavy memory pressure scenarios involving shmem or tmpfs operations
  • Dmesg entries showing NULL pointer dereferences in the memory management subsystem
  • Unexpected system reboots during memory compaction or NUMA migration activities

Detection Strategies

  • Monitor kernel logs for oops messages containing stack traces through __folio_migrate_mapping(), migrate_folio_move(), or related mm/migrate.c functions
  • Implement kernel tracing with ftrace or eBPF to monitor folio migration paths and detect anomalous xarray operations
  • Deploy crash dump analysis tooling to capture and analyze kernel panics for patterns matching this vulnerability
  • Use kernel address sanitizer (KASAN) builds in development environments to detect memory corruption early

Monitoring Recommendations

  • Enable kernel crash dump collection via kdump to preserve forensic evidence of exploitation attempts
  • Configure syslog aggregation to centralize kernel message monitoring across affected systems
  • Implement alerting on kernel panic events, particularly those occurring during memory-intensive workloads
  • Monitor system uptime metrics for unexpected restarts that could indicate kernel crashes

How to Mitigate CVE-2025-22015

Immediate Actions Required

  • Update affected Linux kernel installations to patched versions as soon as available from your distribution vendor
  • Review systems running memory-intensive workloads with heavy shmem or tmpfs usage as higher priority for patching
  • Consider temporarily reducing memory pressure on critical systems by limiting swap usage or adjusting memory overcommitment policies
  • Ensure crash dump collection is enabled to capture diagnostic information if the vulnerability is triggered

Patch Information

The Linux kernel maintainers have released fixes in the following commits:

  • Kernel Git Commit 29124ae980e2
  • Kernel Git Commit 49100c0b070e
  • Kernel Git Commit 60cf233b585c
  • Kernel Git Commit 75cfb92eb632
  • Kernel Git Commit c057ee03f751

Debian has also issued a security advisory addressing this vulnerability. See the Debian LTS Announcement for distribution-specific guidance.

Workarounds

  • Limit or disable NUMA memory migration on affected systems using numa_balancing sysctl parameter if workload permits
  • Reduce swap usage by adjusting vm.swappiness to lower values, decreasing the likelihood of shmem folio swap-out scenarios
  • Consider using hugetlbfs instead of shmem/tmpfs for large shared memory allocations where applicable, as hugepages use different migration paths
  • Implement application-level memory locking using mlock() for critical shmem regions to prevent migration
bash
# Reduce swap usage to minimize vulnerability exposure
sysctl -w vm.swappiness=10

# Disable automatic NUMA balancing
sysctl -w kernel.numa_balancing=0

# Make settings persistent across reboots
echo "vm.swappiness=10" >> /etc/sysctl.d/99-cve-2025-22015-workaround.conf
echo "kernel.numa_balancing=0" >> /etc/sysctl.d/99-cve-2025-22015-workaround.conf

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Git Commit 1

  • Kernel Git Commit 2

  • Kernel Git Commit 3

  • Kernel Git Commit 4

  • Kernel Git Commit 5
  • Related CVEs
  • CVE-2026-31430: Linux Kernel Privilege Escalation Flaw

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

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

  • CVE-2026-31459: 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