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-2026-23161

CVE-2026-23161: Linux Kernel Race Condition Vulnerability

CVE-2026-23161 is a race condition vulnerability in the Linux kernel affecting mm/shmem and swap entry handling. This flaw can cause system hangs and kernel panics. This article covers technical details, impact, and mitigation.

Published: February 20, 2026

CVE-2026-23161 Overview

A race condition vulnerability has been identified in the Linux kernel's memory management subsystem, specifically in the shmem swap freeing helper. The vulnerability exists in the handling of swap entry order during truncate operations, where xa_get_order is called without proper lock protection before xa_cmpxchg_irq, allowing the entry order value to become outdated if the entry is split or modified between these operations.

This flaw can lead to truncation operations erasing data beyond the intended end border when the order value grows unexpectedly. In stress testing scenarios with ZSWAP and shmem, the vulnerability has been observed to cause random swapoff hangs and kernel panics.

Critical Impact

This race condition in Linux kernel memory management can cause kernel panics and system hangs during swap operations, potentially leading to denial of service conditions on affected systems.

Affected Products

  • Linux kernel (affected versions with shmem swap handling)
  • Systems utilizing ZSWAP with shared memory
  • Systems with heavy swap utilization and shmem workloads

Discovery Timeline

  • 2026-02-14 - CVE CVE-2026-23161 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2026-23161

Vulnerability Analysis

The vulnerability is a Time-of-Check Time-of-Use (TOCTOU) race condition in the Linux kernel's shmem swap freeing mechanism. The core issue stems from the separation between reading the swap entry order via xa_get_order and performing the atomic compare-and-exchange operation with xa_cmpxchg_irq, without maintaining proper lock protection across both operations.

When the target entry and subsequent entries are swapped in or freed, and then a large folio is added in place and swapped out using the same entry, the xa_cmpxchg_irq operation can still succeed despite operating on stale order information. This can result in truncation operations inadvertently erasing data beyond the intended boundaries.

The manifestation of this vulnerability during stress testing included random swapoff hangs and kernel panics, indicating that the race condition can lead to memory corruption or invalid memory access patterns.

Root Cause

The root cause is the lack of lock protection between retrieving the entry order with xa_get_order and the subsequent atomic operation xa_cmpxchg_irq. This creates a window during which the swap entry can be split, changed, or replaced by a larger folio, causing the cached order value to become invalid. The fix requires placing both the order retrieval and value checking operations within the same critical section to ensure atomicity.

Attack Vector

This vulnerability is triggered through local operations involving shmem truncation and swap operations. An attacker with local access could potentially trigger the race condition by:

  1. Creating conditions where swap entries are rapidly freed and reallocated
  2. Forcing large folio allocations during truncate operations
  3. Generating heavy concurrent workloads on shmem with ZSWAP enabled

The attack requires local access to the system and the ability to trigger memory-intensive operations that stress the swap subsystem.

The vulnerability manifests in the Xarray operations within the shmem swap freeing helper. The fix involves open-coding the Xarray cmpxchg operation to place order retrieval and value checking in the same critical section, while also ensuring the order doesn't exceed the end border. See the kernel git commits for technical implementation details.

Detection Methods for CVE-2026-23161

Indicators of Compromise

  • Unexpected kernel panics or system crashes during swap operations
  • Random swapoff command hangs without completion
  • Kernel log messages indicating memory corruption in shmem subsystem
  • Unusual system instability during high memory pressure scenarios

Detection Strategies

  • Monitor kernel logs for panic traces involving mm/shmem or swap-related functions
  • Implement system monitoring for unexpected swapoff hangs or timeouts
  • Use kernel debugging tools to detect TOCTOU race conditions in swap handling
  • Deploy crash dump analysis to identify memory corruption patterns consistent with this vulnerability

Monitoring Recommendations

  • Enable kernel crash dump collection for forensic analysis of any system panics
  • Monitor system swap utilization and correlate with stability issues
  • Implement alerting for swapoff operations that exceed normal completion times
  • Review system logs for memory management warnings or errors related to shmem

How to Mitigate CVE-2026-23161

Immediate Actions Required

  • Apply the kernel security patches from the official kernel git repository
  • Schedule system updates during maintenance windows to apply the fix
  • Consider temporarily reducing swap utilization on critical systems until patched
  • Monitor affected systems closely for signs of instability

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability. The fix open-codes the Xarray cmpxchg operation to ensure proper lock protection and places the order retrieval and value checking within the same critical section. The patches also ensure the order won't exceed the end border and skip entries that cross the border.

Patches are available from the following kernel git commits:

  • Kernel Git Commit 8a1968b
  • Kernel Git Commit a99f9a4
  • Kernel Git Commit b23bee8

Workarounds

  • Reduce or disable ZSWAP on affected systems if immediate patching is not possible
  • Limit shmem workloads that involve heavy truncation operations
  • Consider disabling swap temporarily on critical systems until patches can be applied
  • Implement system monitoring to detect and respond to instability symptoms
bash
# Temporary workaround: Reduce swap pressure on affected systems
# Check current swap status
swapon --show

# Adjust swappiness to reduce swap usage (temporary measure)
sysctl vm.swappiness=10

# Monitor for swap-related issues
dmesg | grep -i "shmem\|swap\|panic"

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 8a1968b

  • Kernel Git Commit a99f9a4

  • Kernel Git Commit b23bee8
  • Related CVEs
  • CVE-2026-31456: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31466: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31455: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31436: Linux Kernel Race Condition Vulnerability
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