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-21727

CVE-2025-21727: Linux Kernel Use-After-Free Vulnerability

CVE-2025-21727 is a use-after-free flaw in the Linux Kernel padata subsystem that can cause memory corruption. This vulnerability occurs in the padata_reorder function when reference counts drop to zero prematurely. This post covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-21727 Overview

CVE-2025-21727 is a Use-After-Free (UAF) vulnerability in the Linux kernel's padata (parallel data) subsystem, specifically within the padata_reorder function. This vulnerability was discovered during LTP (Linux Test Project) testing and can be triggered when parallel cryptographic operations race with algorithm deletion. The flaw allows an attacker with local access to potentially achieve code execution, privilege escalation, or cause system instability by exploiting the memory corruption condition.

Critical Impact

A local attacker with low privileges can exploit this UAF vulnerability to potentially execute arbitrary code with kernel privileges, compromise system integrity, or cause denial of service through kernel memory corruption.

Affected Products

  • Linux Kernel (multiple versions)
  • Systems using the padata parallel processing framework
  • Systems utilizing parallel cryptographic operations (pcrypt)

Discovery Timeline

  • February 27, 2025 - CVE-2025-21727 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21727

Vulnerability Analysis

This vulnerability exists in the Linux kernel's padata subsystem, which provides parallel processing capabilities for computationally intensive operations. The flaw manifests as a classic Use-After-Free condition triggered by a race between the padata_reorder function's processing loop and concurrent algorithm deletion through crypto_del_alg.

The issue occurs when parallel cryptographic operations are being processed through the padata framework. During the reorder phase, the padata_reorder function iterates in a while loop, repeatedly calling padata_find_next to locate the next work item. However, if the cryptographic algorithm is deleted during this loop iteration, the reference count on the padata descriptor (pd) may drop to zero, causing the memory to be freed while the loop is still attempting to access it.

The race condition specifically manifests in the following execution flow: while padata_reorder is iterating and using the padata descriptor, a concurrent operation invokes crypto_del_alg, which triggers padata_serial_worker to decrement the reference count via padata_put_pd_cnt. This eventually leads to padata_free_shell calling padata_put_pd, freeing the descriptor. When padata_reorder loops back and calls padata_find_next, it accesses the already-freed memory, resulting in KASAN detecting a slab-use-after-free at address ffff88bbfe003524.

Root Cause

The root cause is a missing synchronization mechanism between the padata reorder loop and the shell/descriptor cleanup path. The padata_free_shell function does not wait for all in-flight do_serial calls to complete before freeing the padata descriptor. According to the kernel's design, do_serial is supposed to be called with bottom halves (BHs) disabled and always happen under RCU protection, but this guarantee was not being properly enforced during cleanup.

Attack Vector

Exploitation requires local access to the system with low privileges. An attacker would need to:

  1. Initiate parallel cryptographic operations that utilize the padata framework (such as through the pcrypt_aead interface)
  2. Trigger concurrent algorithm deletion to race against the padata reorder operation
  3. Win the race condition to cause the reference count to drop to zero while the padata descriptor is still in use
  4. The resulting UAF could potentially be leveraged for arbitrary read/write primitives in kernel memory

The vulnerability was reproducible using the LTP test pcrypt_aead01 with an artificially added mdelay(10) before padata_find_next, widening the race window.

Detection Methods for CVE-2025-21727

Indicators of Compromise

  • KASAN (Kernel Address Sanitizer) reports indicating slab-use-after-free in padata_find_next or padata_reorder functions
  • Kernel crash dumps or oops messages referencing the padata subsystem or pdecrypt_parallel workqueue
  • Unexpected system instability when performing parallel cryptographic operations

Detection Strategies

  • Enable KASAN in kernel configurations to detect UAF conditions during runtime testing
  • Monitor kernel logs for BUG reports referencing padata_find_next, padata_reorder, or related functions
  • Deploy runtime memory corruption detection tools on systems performing heavy parallel cryptographic workloads

Monitoring Recommendations

  • Configure kernel logging to capture and alert on KASAN reports and kernel oops messages
  • Monitor systems running parallel encryption workloads for unexpected crashes or stability issues
  • Implement centralized log collection for kernel panic and BUG messages across Linux infrastructure

How to Mitigate CVE-2025-21727

Immediate Actions Required

  • Update affected Linux kernel installations to patched versions immediately
  • Prioritize systems performing parallel cryptographic operations or using the pcrypt interface
  • Review deployed kernel versions against the provided patch commits to determine exposure

Patch Information

The fix adds synchronize_rcu() in the padata_free_shell function to ensure all in-flight do_serial calls complete before freeing the padata descriptor. This properly enforces the RCU protection guarantees required by the padata subsystem design.

Multiple patch commits have been released across stable kernel branches:

  • Kernel Git Commit 0ae2f332cfd2
  • Kernel Git Commit 573ac9c70bf7
  • Kernel Git Commit 80231f069240
  • Kernel Git Commit bbccae982e9f
  • Kernel Git Commit e01780ea4661
  • Kernel Git Commit f3e0b9f790f8
  • Kernel Git Commit f78170bee514

Debian users should refer to the Debian LTS Advisory (March 2025) and Debian LTS Advisory (May 2025) for distribution-specific updates.

Workarounds

  • If patching is not immediately possible, consider limiting access to cryptographic subsystems for unprivileged users
  • Monitor systems closely for kernel crashes or stability issues related to padata operations
  • Enable KASAN in non-production environments to detect potential exploitation attempts
bash
# Check current kernel version for vulnerability assessment
uname -r

# Verify if padata module is loaded
lsmod | grep padata

# Review kernel logs for UAF indicators
dmesg | grep -E "(KASAN|padata|use-after-free)"

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Debian LTS Advisory March 2025

  • Debian LTS Advisory May 2025
  • Vendor Resources
  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • Related CVEs
  • CVE-2026-31475: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31469: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31457: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31444: Linux Kernel Use-After-Free 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