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

CVE-2025-21664: Linux Kernel Race Condition Vulnerability

CVE-2025-21664 is a race condition vulnerability in the Linux kernel's dm-thin module that can cause system crashes due to unsafe RCU list operations. This article covers the technical details, impact, and mitigation.

Updated: May 15, 2026

CVE-2025-21664 Overview

CVE-2025-21664 is a race condition vulnerability in the Linux kernel's device-mapper thin provisioning (dm-thin) subsystem. The flaw resides in the get_first_thin() function, which uses a non-RCU-safe sequence of list_empty() followed by list_first() on the active_thins list. Each call performs its own READ_ONCE() of the list head, allowing the list state to change between the two operations. When the last thin_c entry is removed by thin_dtr at the wrong moment, dereferencing the resulting list head produces an invalid thin_c pointer and triggers a general protection fault in process_deferred_bios. Local attackers with low privileges can trigger this condition to crash the kernel.

Critical Impact

A local user with permissions to create and destroy thin-provisioned devices can trigger a kernel general protection fault, resulting in system denial of service.

Affected Products

  • Linux Kernel versions starting at 3.15
  • Linux Kernel 6.13 release candidates (rc1 through rc6)
  • Distributions tracking stable kernel branches, including Debian LTS and Siemens products referenced in SSA-265688

Discovery Timeline

  • 2025-01-21 - CVE-2025-21664 published to NVD
  • 2026-05-12 - Last updated in NVD database

Technical Details for CVE-2025-21664

Vulnerability Analysis

The vulnerability is a kernel race condition [CWE-362-class] in the dm-thin target. The get_first_thin() helper iterates the active_thins RCU-protected list to acquire a reference on the first thin device for deferred bio processing. The original implementation performed list_empty() and then list_first_entry() as two independent reads of the list head. Between the two reads, a concurrent thin_dtr (destructor) running on another CPU can remove the last entry from active_thins, leaving the list pointing to itself.

When this race wins, get_first_thin() observes a non-empty list and then dereferences a pointer that no longer references a valid thin_c structure. Instead, it interprets bytes inside the parent struct pool as a thin_c, producing corrupted reference counts and out-of-bounds memory access. Observed symptoms in production crash dumps included refcount_t saturation warnings, a UBSAN out-of-bounds report against the queued spinlock cpuid access, and a final general protection fault.

Root Cause

The root cause is incorrect use of RCU list primitives. The rculist.h documentation explicitly warns against composing list_empty() with list_first() because each performs its own READ_ONCE() of the list head, producing torn views of the list state under concurrent modification.

Attack Vector

Exploitation requires local access with privileges to create, suspend, and destroy thin-provisioned dm-thin devices. An attacker triggers concurrent thin_dtr operations against the active thins list while deferred bio processing is in flight. The resulting kernel fault halts the affected system. The attack vector is local and the impact is limited to availability.

The vulnerability is described in prose because no exploit code is required to trigger the underlying race; repeated create/destroy cycles against thin volumes under I/O load are sufficient. See the kernel commit log for the upstream fix.

Detection Methods for CVE-2025-21664

Indicators of Compromise

  • Kernel oops or general protection fault entries in dmesg referencing process_deferred_bios or get_first_thin in the call trace
  • refcount_t: saturated warnings emitted from the dm-thin code path
  • UBSAN reports of out-of-bounds cpuid access inside queued spinlock routines preceding a crash

Detection Strategies

  • Monitor host crash dumps and kdump artifacts for stack traces involving dm-thin, thin_dtr, and synchronize_rcu
  • Correlate kernel panic events with concurrent device-mapper administrative activity such as dmsetup remove or LVM thin pool teardown
  • Track running kernel versions across the fleet and flag hosts on vulnerable stable branches still using thin provisioning

Monitoring Recommendations

  • Forward /var/log/kern.log and journalctl -k output to a centralized log platform for alerting on BUG:, Oops:, and WARNING: events tied to dm-thin
  • Alert on unexpected reboots of hosts running thin-provisioned LVM volumes or container storage backends that rely on dm-thin
  • Audit which workloads use dm-thin and prioritize patching on storage-heavy nodes

How to Mitigate CVE-2025-21664

Immediate Actions Required

  • Apply the stable kernel update that switches get_first_thin() to list_first_or_null_rcu() from your distribution vendor
  • Inventory hosts running kernels 3.15 through the 6.13 release candidates and prioritize those using dm-thin thin provisioning
  • Restrict access to device-mapper administrative interfaces so only trusted operators can create or destroy thin devices

Patch Information

Upstream fixes are tracked in multiple stable branches. The patch replaces the racy list_empty() + list_first() sequence with a single list_first_or_null_rcu() call. Reference commits include 12771050b6d0, 6b305e98de0d, 802666a40c71, 80f130bfad1d, cbd0d5ecfa39, cd30a3960433, and ec037fe8c0d0. Distribution updates are available via the Debian LTS announcement and Siemens advisory SSA-265688.

Workarounds

  • Avoid concurrent destruction of thin devices while deferred bio processing is active on heavily loaded thin pools
  • Where feasible, migrate critical workloads off dm-thin to alternative storage backends until patches are deployed
  • Limit local shell and root-equivalent access on systems that cannot be patched immediately to reduce exposure
bash
# Verify the running kernel version and check for the dm-thin module
uname -r
lsmod | grep dm_thin_pool

# After patching, reboot and confirm the new kernel is active
sudo apt-get update && sudo apt-get install --only-upgrade linux-image-$(uname -r | sed 's/.*-//')
sudo reboot

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

  • Debian LTS Announcement

  • Siemens Security Advisory
  • Vendor Resources
  • Kernel Git Commit Log

  • Kernel Git Commit Log

  • Kernel Git Commit Log

  • Kernel Git Commit Log

  • Kernel Git Commit Log

  • Kernel Git Commit Log

  • Kernel Git Commit Log
  • 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