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

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

CVE-2025-21753 is a use-after-free flaw in the Linux Kernel's btrfs filesystem that occurs when joining an aborted transaction. This post explains its technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21753 Overview

CVE-2025-21753 is a use-after-free vulnerability in the Linux kernel's Btrfs filesystem subsystem. The flaw exists in the transaction handling code, specifically in the join_transaction function located in fs/btrfs/transaction.c. When attempting to join an aborted transaction, the kernel reads the transaction's aborted field after releasing the fs_info->trans_lock spinlock without holding an additional reference count on the transaction object. This race condition allows a concurrent task that is aborting the transaction to free the transaction structure before the aborted field is read, resulting in a use-after-free condition.

Critical Impact

This vulnerability enables local attackers with low privileges to potentially achieve privilege escalation or cause system crashes through memory corruption in kernel space. The use-after-free condition can lead to arbitrary code execution in kernel context.

Affected Products

  • Linux Kernel (multiple versions affected)
  • Linux Kernel version 6.14-rc1
  • Systems using Btrfs filesystem with active transaction operations

Discovery Timeline

  • 2025-02-27 - CVE-2025-21753 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-21753

Vulnerability Analysis

The vulnerability resides in the Btrfs transaction management subsystem within the Linux kernel. When a process attempts to join an existing transaction via the join_transaction function, it acquires the fs_info->trans_lock spinlock to access the current running transaction. However, after releasing this lock, the code continues to access the transaction's aborted field without maintaining a reference count on the transaction object.

This creates a classic time-of-check-time-of-use (TOCTOU) race condition. A concurrent task performing transaction abort and cleanup can acquire the lock, set fs_info->running_transaction to NULL, and subsequently free the transaction memory through cleanup_transaction and btrfs_commit_transaction. When the original task then attempts to read the aborted field at memory offset 0x24 (as seen in the KASAN report at address ffff888011839024), it accesses freed memory.

The vulnerability was identified through kernel address sanitizer (KASAN) testing, which detected a slab-use-after-free read of 4 bytes in join_transaction+0xd9b at line 278 of transaction.c. The affected code path is triggered through various Btrfs operations including btrfs_async_reclaim_data_space, file creation operations, and balance operations.

Root Cause

The root cause is insufficient synchronization in the transaction joining code path. The aborted field access occurs outside the critical section protected by fs_info->trans_lock, violating the expected locking discipline. The transaction lifecycle management requires that any access to transaction fields must either hold the transaction lock or maintain a reference count to prevent premature deallocation.

The fix ensures that the aborted field is read while still holding fs_info->trans_lock, since any task freeing the transaction must first acquire that lock and set fs_info->running_transaction to NULL before proceeding with the free operation.

Attack Vector

The attack vector is local and requires low privileges to exploit. An attacker with the ability to execute code on the target system can trigger this vulnerability by:

  1. Initiating Btrfs filesystem operations that create or join transactions
  2. Triggering transaction abort conditions while concurrent transaction join operations are in progress
  3. Racing the transaction cleanup against the transaction join to exploit the use-after-free window

The vulnerability can be triggered through the btrfs_async_reclaim_data_space workqueue handler, file creation via btrfs_create_common, or balance operations through btrfs_balance. Successful exploitation could lead to kernel memory corruption, privilege escalation, or denial of service through kernel panic.

Detection Methods for CVE-2025-21753

Indicators of Compromise

  • Kernel panic or oops messages referencing join_transaction or fs/btrfs/transaction.c
  • KASAN reports indicating slab-use-after-free in Btrfs transaction code paths
  • System crashes during heavy Btrfs filesystem operations or balance operations
  • Unexpected kernel memory corruption symptoms on systems with Btrfs filesystems

Detection Strategies

  • Enable kernel address sanitizer (KASAN) to detect use-after-free conditions in production or testing environments
  • Monitor kernel logs for Btrfs-related warnings, errors, or panic traces mentioning transaction handling
  • Deploy runtime kernel integrity monitoring to detect anomalous memory access patterns
  • Implement audit logging for Btrfs mount and balance operations to track potential exploitation attempts

Monitoring Recommendations

  • Configure centralized log collection for kernel messages with alerting on Btrfs transaction errors
  • Monitor system stability metrics on hosts using Btrfs filesystems
  • Implement process monitoring for unusual Btrfs-related system calls or ioctl patterns
  • Deploy SentinelOne Singularity agent for real-time kernel threat detection and behavioral analysis

How to Mitigate CVE-2025-21753

Immediate Actions Required

  • Apply the official Linux kernel patches from the stable kernel tree immediately
  • Prioritize patching systems actively using Btrfs filesystems in production environments
  • Consider temporarily migrating critical workloads to ext4 or XFS filesystems if immediate patching is not possible
  • Restrict local user access on affected systems to reduce attack surface

Patch Information

The Linux kernel maintainers have released patches across multiple stable kernel branches. The fix modifies the join_transaction function to read the aborted field while holding fs_info->trans_lock, ensuring proper synchronization with transaction cleanup operations.

Official patches are available through the following kernel git commits:

  • Kernel Git Commit 6ba4663
  • Kernel Git Commit 7e954b6
  • Kernel Git Commit 86d71a0
  • Kernel Git Commit 8f5cff4

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

Workarounds

  • Limit local user access on systems with Btrfs filesystems to trusted accounts only
  • Reduce concurrent Btrfs operations that could trigger transaction race conditions
  • Monitor and restrict heavy balance or data reclaim operations on production systems
  • Consider unmounting non-essential Btrfs filesystems until patches can be applied
bash
# Check current kernel version and Btrfs usage
uname -r
mount | grep btrfs

# Update to patched kernel on Debian-based systems
sudo apt update
sudo apt upgrade linux-image-$(uname -r | sed 's/-[^-]*$//')

# Verify kernel update and reboot
sudo reboot

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

  • 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 Announcement March 2025

  • Debian LTS Announcement May 2025
  • Vendor Resources
  • Kernel Git Commit Changes

  • Kernel Git Commit Updates

  • Kernel Git Commit Fixes

  • Kernel Git Commit Modifications

  • Kernel Git Commit Enhancements

  • Kernel Git Commit Refinements

  • Kernel Git Commit Alterations

  • Kernel Git Commit Improvements
  • Related CVEs
  • CVE-2026-23462: Linux Kernel Use-After-Free Vulnerability

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

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

  • CVE-2026-23456: 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