A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-23177

CVE-2026-23177: Linux Kernel Race Condition Vulnerability

CVE-2026-23177 is a race condition flaw in the Linux kernel's memory management that causes infinite loops during swap entry truncation. This article covers the technical details, affected versions, and mitigation.

Updated: May 16, 2026

CVE-2026-23177 Overview

CVE-2026-23177 is a Linux kernel vulnerability in the shared memory (shmem) subsystem. The flaw allows an infinite loop in the kernel when truncating a large swap entry under a specific race condition. When index points to the middle of a large swap entry that does not cross the truncation end boundary, find_get_entries() returns the entry with indices[0] equal to index, while shmem_free_swap() fails the base < index check and returns 0. The truncate loop then retries at the same index indefinitely, producing a kernel-side denial of service condition on affected systems.

Critical Impact

Local processes triggering a truncate race on shmem-backed swap entries can drive the kernel into an infinite loop, exhausting CPU and causing denial of service.

Affected Products

  • Linux kernel mm/shmem subsystem (mainline)
  • Stable kernel branches receiving the fix referenced by commits 2030dddf, 7b6a0f12, and dfc3ab6b
  • Distributions shipping pre-patch kernels with large swap entry support enabled

Discovery Timeline

  • 2026-02-14 - CVE-2026-23177 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2026-23177

Vulnerability Analysis

The vulnerability is an infinite loop (Denial of Service) in the Linux kernel mm/shmem.c truncate path. When truncating tmpfs or shmem-backed memory, the kernel iterates over page cache entries with find_get_entries() and frees swap entries through shmem_free_swap(). The function returns 0 if an entry's base index does not match the requested index because of lookup alignment with large (multi-order) swap entries.

The fallback path validates whether the entry crosses the truncate end boundary to avoid erasing unrelated data. However, when index lands in the middle of a large swap entry that lies entirely within the truncation range, the entry is returned with indices[0] == index. Because the entry's base index is smaller than index, the base < index guard rejects the free, and the loop retries at the unchanged index. Each iteration recovers the same entry, producing a non-terminating loop inside kernel context.

Root Cause

The root cause is missing index alignment in the retry logic of the shmem truncate path. The loop does not round the index down to the base of a large swap entry before retrying, so progress is never made when a mid-entry index satisfies both the base < index rejection and the end-boundary check.

Attack Vector

A local attacker capable of allocating shmem or tmpfs regions backed by large swap entries can trigger truncate operations that race with swap entry placement. When the race aligns index to the middle of a large swap entry, the kernel enters the infinite loop. No remote vector is documented, and the impact is availability of the affected host.

No public exploit code, proof-of-concept, or in-the-wild exploitation has been reported. The fix is described in upstream patches referenced by commits 2030dddf, 7b6a0f12, and dfc3ab6b.

Detection Methods for CVE-2026-23177

Indicators of Compromise

  • A kernel thread or user process pinned at 100% CPU inside the shmem_undo_range or shmem_truncate_range call path.
  • Soft lockup or RCU stall messages in dmesg referencing shmem_free_swap, find_get_entries, or shmem_undo_range.
  • Unresponsive tmpfs file operations or hung truncate(2) / ftruncate(2) syscalls on shmem-backed files.

Detection Strategies

  • Monitor /proc/<pid>/stack for processes stuck in shmem truncate routines while consuming sustained CPU.
  • Alert on kernel softlockup or hung_task warnings emitted via kern.log or the systemd journal.
  • Correlate elevated system CPU time on hosts running tmpfs-heavy workloads with truncate or unlink activity.

Monitoring Recommendations

  • Ingest kernel log streams into a centralized log platform and create rules for BUG:, soft lockup, and RCU stall events tied to shmem_* symbols.
  • Track per-process CPU time and syscall latency for workloads using memfd_create, tmpfs, or shared memory segments.
  • Audit kernel package versions across the fleet to identify hosts still running pre-patch builds.

How to Mitigate CVE-2026-23177

Immediate Actions Required

  • Apply the upstream stable kernel updates that include commits 2030dddf, 7b6a0f12, and dfc3ab6b.
  • Reboot affected systems after kernel installation to load the patched image.
  • Restrict local user access on multi-tenant hosts until patches are rolled out.

Patch Information

The upstream fix rounds the truncate retry index down to the base of the large swap entry and aborts when the rounded index is smaller than the truncate range. Distribution maintainers have backported the change to supported stable branches. Consult the Linux kernel stable tree and your distribution's security advisories for the appropriate package version.

Workarounds

  • Disable or limit swap on hosts that cannot be patched promptly, reducing the likelihood of large swap entries appearing in shmem.
  • Constrain tmpfs and shared memory allocations for untrusted local users through cgroup memory.max and memory.swap.max limits.
  • Enable kernel softlockup_panic to recover via reboot rather than remaining hung, where availability tradeoffs allow it.
bash
# Verify the running kernel includes the fix commit
uname -r
rpm -q --changelog kernel | grep -E 'shmem_free_swap|truncate race' | head

# Restrict tmpfs size for untrusted workloads (example mount)
mount -o remount,size=512M,nr_inodes=100k /dev/shm

# Enable panic on soft lockup as a recovery safeguard
sysctl -w kernel.softlockup_panic=1

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.03%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 2030dddf

  • Kernel Git Commit 7b6a0f12

  • Kernel Git Commit dfc3ab6b
  • Related CVEs
  • CVE-2026-46327: Linux Kernel Race Condition Vulnerability

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

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

  • CVE-2026-46316: Linux Kernel Race Condition Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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