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-2026-23157

CVE-2026-23157: Linux Kernel Btrfs DoS Vulnerability

CVE-2026-23157 is a denial of service flaw in Linux kernel btrfs that causes system hangs when processes wait indefinitely at dirty metadata thresholds. This article covers technical details, affected versions, and fixes.

Published: February 20, 2026

CVE-2026-23157 Overview

A deadlock vulnerability has been identified in the Linux kernel's Btrfs filesystem implementation. The issue occurs in the btree_writepages() function where an internal 32MiB dirty metadata threshold can conflict with cgroup memory limits, causing over 1000 processes to become stuck waiting at io_schedule_timeout() in balance_dirty_pages(). This results in system hangs and potential kernel coredumps.

Critical Impact

Systems running affected Linux kernel versions with Btrfs filesystems and cgroups with constrained memory limits may experience complete system hangs due to a deadlock between Btrfs dirty page thresholds and cgroup memory constraints.

Affected Products

  • Linux kernel versions before v6.18
  • Linux kernel v6.4-based distributions
  • All current LTS kernels without the AS_KERNEL_FILE enhancement

Discovery Timeline

  • 2026-02-14 - CVE CVE-2026-23157 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2026-23157

Vulnerability Analysis

This vulnerability represents a race condition and deadlock scenario within the Linux kernel's Btrfs filesystem dirty page management. The root cause involves a conflict between Btrfs's internal 32MiB dirty metadata threshold and cgroup memory constraints.

When a cgroup has a small memory allocation (such as 16MB dirty limit), tasks within that cgroup can dirty pages in the Btrfs btree inode. The balance_dirty_pages() function prevents tasks from exiting until dirty pages drop below the cgroup limit. However, Btrfs's btree_writepages() function has an internal threshold that prevents writeback until at least 32MiB of dirty metadata accumulates.

This creates a circular dependency: Btrfs won't write back pages until more are dirtied, but the cgroup won't allow more pages to be dirtied until existing ones are written back. The result is a deadlock where all processes touching the btree inode are put to sleep indefinitely.

Root Cause

The deadlock stems from a design conflict between two independent subsystems:

  1. Btrfs Metadata Batching: The btree_writepages() function implements a 32MiB threshold to batch metadata writes, preventing premature writeback of tree blocks that might need to be re-COWed for subsequent modifications.

  2. Cgroup Dirty Page Throttling: The memory cgroup subsystem enforces dirty page limits to prevent any single cgroup from consuming excessive dirty memory. When a task exceeds its cgroup's dirty limit, it blocks in balance_dirty_pages() until dirty pages are reduced.

When the Btrfs threshold (32MiB) exceeds the cgroup's dirty limit (e.g., 16MB), neither subsystem can make progress, resulting in a deadlock condition.

Attack Vector

This vulnerability manifests through resource exhaustion under specific system configurations. The attack vector involves systems running Btrfs filesystems with memory cgroups that have restricted dirty page limits. Any workload that generates sufficient btree inode dirty pages (around 28MiB in the reported case) while staying under Btrfs's 32MiB threshold can trigger the deadlock.

The vulnerability does not require malicious intent - normal system operations under constrained cgroup configurations can trigger the condition. However, an attacker with local access could potentially craft workloads to deliberately trigger the deadlock and cause denial of service.

Detection Methods for CVE-2026-23157

Indicators of Compromise

  • Large numbers of processes (potentially 1000+) stuck in D (uninterruptible sleep) state
  • Processes waiting at io_schedule_timeout() in balance_dirty_pages() visible in kernel stack traces
  • System unresponsiveness affecting Btrfs-mounted filesystems
  • Kernel coredumps triggered by watchdog timeouts

Detection Strategies

  • Monitor for abnormally high counts of processes in uninterruptible sleep state using ps aux | grep ' D '
  • Check /proc/[pid]/stack for processes stuck in balance_dirty_pages call paths
  • Review /proc/meminfo and cgroup memory statistics for dirty page accumulation
  • Implement kernel watchdog monitoring for detection of hung task warnings

Monitoring Recommendations

  • Configure kernel hung task detection with appropriate timeouts (kernel.hung_task_timeout_secs)
  • Monitor cgroup memory statistics via /sys/fs/cgroup/memory/*/memory.stat for dirty page thresholds
  • Set up alerts for Btrfs-specific metrics including btree inode dirty bytes
  • Implement process state monitoring to detect mass process blocking conditions

How to Mitigate CVE-2026-23157

Immediate Actions Required

  • Apply the kernel patches from the referenced git commits to affected systems
  • Review cgroup memory configurations, particularly dirty page limits relative to Btrfs thresholds
  • Consider temporarily increasing cgroup dirty page limits above 32MiB for critical systems
  • Plan kernel updates to versions containing the fix

Patch Information

The vulnerability has been addressed in the Linux kernel stable tree. The fix modifies btree_writepages() to respect external caller requests for writeback regardless of the internal 32MiB threshold, while maintaining the threshold behavior for internal Btrfs callers using btrfs_btree_balance_dirty().

Patches are available at:

  • Kernel Git Commit 4e15915
  • Kernel Git Commit 629666d

For newer kernels (v6.18+), commit b55102826d7d ("btrfs: set AS_KERNEL_FILE on the btree_inode") provides an alternative mitigation by charging btree inode pages to the root cgroup.

Workarounds

  • Increase cgroup dirty page limits to values exceeding 32MiB for workloads using Btrfs
  • Avoid using memory-constrained cgroups with Btrfs filesystems on unpatched kernels
  • Consider alternative filesystems for containerized or cgroup-constrained workloads until patches are applied
  • Monitor and restart affected processes if deadlock conditions are detected
bash
# Configuration example - Increase cgroup dirty ratio
# For cgroup v1:
echo 67108864 > /sys/fs/cgroup/memory/<cgroup_name>/memory.dirty_limit_in_bytes

# For cgroup v2 (check dirty ratio in memory controller):
# Ensure dirty limits exceed 32MiB (33554432 bytes minimum recommended)
cat /sys/fs/cgroup/<cgroup_path>/memory.stat | grep dirty

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.01%

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

  • Kernel Git Commit 629666d
  • Related CVEs
  • CVE-2026-46220: Linux Kernel AMDGPU SDMA4 DoS Vulnerability

  • CVE-2026-46214: Linux Kernel vsock/virtio DoS Vulnerability

  • CVE-2026-46206: Linux Kernel batman-adv DoS Vulnerability

  • CVE-2026-46193: Linux Kernel AH ESN DoS 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