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-2025-21664

CVE-2025-21664: Linux Kernel Race Condition Vulnerability

CVE-2025-21664 is a race condition flaw in the Linux Kernel's dm-thin subsystem that can cause kernel crashes due to unsafe list operations. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-21664 Overview

A race condition vulnerability exists in the Linux kernel's device mapper thin provisioning (dm-thin) subsystem. The flaw occurs in the get_first_thin() function which uses non-RCU-safe list operations, leading to a Time-of-Check Time-of-Use (TOCTOU) race condition that can cause kernel crashes and denial of service.

Critical Impact

Local attackers with low privileges can trigger a kernel crash through the dm-thin subsystem, causing system-wide denial of service on production systems using thin provisioning.

Affected Products

  • Linux Kernel versions 3.15 through 6.12.x
  • Linux Kernel 6.13-rc1 through 6.13-rc6
  • Debian Linux (multiple versions)

Discovery Timeline

  • 2025-01-21 - CVE-2025-21664 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-21664

Vulnerability Analysis

The vulnerability resides in the dm-thin (device mapper thin provisioning) subsystem of the Linux kernel. The core issue stems from improper handling of RCU (Read-Copy-Update) protected list operations in the get_first_thin() function. As documented in rculist.h, there is no list_empty_rcu() function because programmers should not rely on a list_empty() followed by list_first() sequence in RCU-safe code.

This pattern is unsafe because each function performs its own READ_ONCE() of the list head. Between these two separate reads, another thread can modify the list state, creating a TOCTOU race condition. In observed production crashes, the list_empty() check saw a valid list entry, but the subsequent list_first() dereferenced a different view of the list head after another thread had modified it.

When this race occurs, the code attempts to convert the list head pointer to a thin_c structure. If the list has become empty (now pointing to itself), the dereferenced pointer actually points to the inside of struct pool, resulting in memory corruption and a General Protection (GP) fault.

Root Cause

The root cause is the non-atomic nature of the list check-and-access pattern in get_first_thin(). The function performs two separate memory reads:

  1. list_empty() - performs READ_ONCE() on the list head to check if empty
  2. list_first() - performs another READ_ONCE() to retrieve the first element

Between these two reads, the thin_dtr() destructor function running on another CPU can remove the last thin_c entry from the active_thins list. The destructor then calls synchronize_rcu(), but by this time the first thread has already passed the empty check and proceeds to dereference stale data.

Attack Vector

This vulnerability requires local access and can be triggered through operations that manipulate thin provisioning pools while concurrent deferred bio processing occurs. The attack leverages the race window between the list empty check and list access in the process_deferred_bios code path.

An attacker with access to device mapper operations can repeatedly create and destroy thin devices while triggering bio processing, increasing the probability of hitting the race window. The resulting kernel crash leads to complete system denial of service.

Detection Methods for CVE-2025-21664

Indicators of Compromise

  • Kernel panic or GP fault messages originating from process_deferred_bios or dm-thin subsystem functions
  • Warning messages about refcount_t being saturated preceding system crashes
  • UBSAN errors indicating out-of-bounds CPU ID access in queued spinlock operations
  • Kdump analysis showing threads waiting in thin_dtr's synchronize_rcu() call

Detection Strategies

  • Monitor kernel logs for GP faults associated with dm-thin or device mapper operations
  • Implement crash dump analysis to identify stack traces involving get_first_thin() and process_deferred_bios
  • Deploy kernel live patching detection to identify systems running vulnerable kernel versions
  • Use SentinelOne's Singularity platform to monitor for anomalous kernel behavior patterns

Monitoring Recommendations

  • Enable kernel crash dump collection (kdump) to capture forensic data from exploited systems
  • Configure alerting on UBSAN and refcount saturation warnings in kernel logs
  • Monitor dm-thin pool operations for unusual creation/deletion patterns
  • Track systems using thin provisioning that have not received kernel updates

How to Mitigate CVE-2025-21664

Immediate Actions Required

  • Update affected Linux kernel installations to patched versions immediately
  • Systems running kernel versions 3.15 through 6.12.x should upgrade to the latest stable release
  • For systems unable to immediately patch, consider temporarily disabling thin provisioning if operationally feasible
  • Review and apply vendor-specific patches from distribution security advisories

Patch Information

The fix modifies the get_first_thin() function to use list_first_or_null_rcu() instead of the separate list_empty() and list_first() calls. This RCU-safe function performs a single READ_ONCE() operation and atomically returns NULL if the list is empty, eliminating the race window entirely.

Multiple kernel stable branch commits are available:

  • Kernel Git Commit 12771050
  • Kernel Git Commit 6b305e98
  • Kernel Git Commit 802666a4
  • Kernel Git Commit 80f130bf

Debian users should refer to the Debian LTS Security Announcements for distribution-specific updates.

Workarounds

  • Limit access to device mapper operations to trusted users only
  • Reduce concurrent thin device creation/deletion operations during maintenance windows
  • Consider migrating workloads from thin provisioning to standard volumes temporarily
  • Implement additional access controls around dm-thin management interfaces
bash
# Check current kernel version for vulnerability assessment
uname -r

# List dm-thin devices in use on the system
dmsetup ls --target thin
dmsetup ls --target thin-pool

# Verify kernel module version
modinfo dm_thin_pool | grep -E "^(version|vermagic)"

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.05%

  • 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
  • NVD-CWE-noinfo
  • Technical References
  • Debian LTS Announcement March 2025

  • Debian LTS Announcement March 2025
  • Vendor Resources
  • Kernel Git Commit 12771050

  • Kernel Git Commit 6b305e98

  • Kernel Git Commit 802666a4

  • Kernel Git Commit 80f130bf

  • Kernel Git Commit cbd0d5ec

  • Kernel Git Commit cd30a396

  • Kernel Git Commit ec037fe8
  • Related CVEs
  • CVE-2026-23440: Linux Kernel Race Condition Vulnerability

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

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

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