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
    • 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-71159

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

CVE-2025-71159 is a use-after-free flaw in the Linux kernel's btrfs file system that occurs due to improper memory barrier handling in delayed node operations. This article covers technical details, impact, and mitigation.

Published: January 30, 2026

CVE-2025-71159 Overview

A use-after-free vulnerability has been identified in the Linux kernel's Btrfs file system implementation, specifically within the btrfs_get_or_create_delayed_node() function. This race condition vulnerability occurs due to improper memory ordering when setting reference counts for delayed nodes, potentially allowing another thread to access memory that hasn't been properly initialized.

The vulnerability was introduced by commit e8513c012de7 ("btrfs: implement ref_tracker for delayed_nodes"), which moved the refcount_set operation inside the critical section. This change removed the implicit memory barrier that previously existed between setting the refcount and setting btrfs_inode->delayed_node, creating a window for exploitation.

Critical Impact

Race condition in Btrfs delayed node handling can lead to use-after-free conditions, potentially causing system instability or kernel memory corruption.

Affected Products

  • Linux Kernel with Btrfs file system support
  • Systems running kernels with commit e8513c012de7 applied
  • Linux distributions using affected kernel versions

Discovery Timeline

  • 2026-01-23 - CVE CVE-2025-71159 published to NVD
  • 2026-01-26 - Last updated in NVD database

Technical Details for CVE-2025-71159

Vulnerability Analysis

This vulnerability represents a classic race condition pattern in kernel code where memory visibility ordering between threads becomes critical. The btrfs_get_or_create_delayed_node() function is responsible for managing delayed node structures used in Btrfs's delayed inode update mechanism.

When a delayed node is created, the function must initialize the node's reference count and associate it with the corresponding btrfs_inode structure. Prior to the problematic commit, these operations were ordered such that the reference count was set before acquiring the root->delayed_nodes lock, providing an implicit memory barrier through the lock acquisition.

After the commit e8513c012de7, the refcount_set call was moved inside the critical section. This seemingly innocuous change removed the memory barrier that guaranteed proper ordering of store operations. As a result, from the perspective of another CPU, the store to btrfs_inode->delayed_node could become visible before the store to node->refs, even though they appear in the opposite order in the source code.

Root Cause

The root cause is a missing memory barrier between setting the delayed node's reference count and publishing the pointer to that node via btrfs_inode->delayed_node. Without proper synchronization, the CPU and compiler are free to reorder these store operations. When another thread observes the published pointer and attempts to increment the reference count, it may encounter an uninitialized value, triggering a refcounting bug.

The fix restores the original behavior by moving refcount_set back outside the critical section, leveraging the implicit memory barrier provided by the subsequent lock acquisition. An additional benefit of this fix is that memory allocations can now use GFP_NOFS instead of GFP_ATOMIC since they occur outside the locked region.

Attack Vector

The attack vector requires local access to a system with a Btrfs file system mounted. An attacker would need to trigger concurrent operations on delayed nodes, potentially through rapid file system operations that cause multiple threads to access the same inode's delayed node simultaneously.

While exploitation of this vulnerability would be complex due to the tight timing requirements, successful exploitation could lead to kernel memory corruption, denial of service through system crashes, or potentially privilege escalation if an attacker can control the freed memory contents.

The vulnerability manifests in the memory ordering of reference count initialization and pointer publication. When a racing thread reads the delayed_node pointer before the reference count is properly initialized, it attempts to increment an invalid refcount value. This can cause the kernel's reference counting subsystem to detect the inconsistency and trigger a use-after-free warning. See the kernel git commits for the complete fix implementation.

Detection Methods for CVE-2025-71159

Indicators of Compromise

  • Kernel warning messages containing "use-after-free" related to Btrfs delayed nodes
  • System crashes or kernel panics during heavy Btrfs file system operations
  • Unexpected Btrfs file system errors or corruption warnings in dmesg logs
  • Reference counting warnings in kernel logs mentioning btrfs_get_or_create_delayed_node

Detection Strategies

  • Monitor kernel logs for Btrfs-related warnings using tools like dmesg or journalctl with filters for "btrfs" and "delayed_node"
  • Implement kernel log aggregation to detect patterns of memory corruption warnings
  • Use kernel debugging tools like KASAN (Kernel Address Sanitizer) to detect use-after-free conditions in development and testing environments

Monitoring Recommendations

  • Enable kernel logging for Btrfs subsystem and monitor for anomalous behavior patterns
  • Deploy SentinelOne Singularity Platform to detect kernel-level anomalies and exploit attempts
  • Implement file integrity monitoring on systems using Btrfs to detect potential corruption from exploitation

How to Mitigate CVE-2025-71159

Immediate Actions Required

  • Apply the latest kernel patches from your Linux distribution that address this vulnerability
  • Consider temporarily using alternative file systems (ext4, XFS) on critical systems until patches are applied
  • Monitor Btrfs-mounted systems for unusual kernel warnings or crashes
  • Restrict local access to systems with Btrfs file systems to trusted users only

Patch Information

The Linux kernel maintainers have released fixes for this vulnerability. The patches restore the original memory ordering by moving refcount_set back outside the critical section, ensuring proper synchronization through the implicit memory barrier provided by lock acquisition.

Relevant patches can be found in the following kernel commits:

  • Kernel Git Commit Review
  • Kernel Git Commit Analysis

System administrators should update to kernel versions containing these fixes through their distribution's package management system.

Workarounds

  • Limit concurrent operations on Btrfs file systems where possible to reduce race condition probability
  • Use file system mounting options that reduce delayed node usage if available
  • Implement access controls to restrict which users can perform heavy file system operations on Btrfs volumes
bash
# Check current kernel version for vulnerability assessment
uname -r

# Monitor for Btrfs-related kernel warnings
dmesg | grep -i "btrfs\|delayed_node\|use-after-free"

# List Btrfs file systems on the system
btrfs filesystem show

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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

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

  • Kernel Git Commit Analysis
  • Related CVEs
  • CVE-2026-31414: Linux Kernel Use-After-Free Vulnerability

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

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

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