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

CVE-2026-46159: Linux Kernel Race Condition Vulnerability

CVE-2026-46159 is a race condition vulnerability in the Linux kernel's btrfs filesystem that can lead to information disclosure through kernel memory leaks. This article covers technical details, impact, and mitigation.

Published: May 28, 2026

CVE-2026-46159 Overview

CVE-2026-46159 is a time-of-check time-of-use (TOCTOU) race condition in the Linux kernel's btrfs filesystem ioctl handler. The flaw resides in btrfs_ioctl_space_info(), which performs two passes over block group RAID type lists separated by a release of the groups_sem rwlock. Concurrent block group removal between passes can shrink the entry count, causing copy_to_user() to leak uninitialized kmalloc heap bytes to userspace. The issue was resolved upstream by copying only the actual filled entry count and switching the buffer allocation to kzalloc.

Critical Impact

Local users can trigger an information leak that exposes uninitialized kernel heap memory, potentially aiding further kernel exploitation by disclosing pointers or sensitive data.

Affected Products

  • Linux kernel (btrfs filesystem subsystem)
  • Distributions shipping affected stable kernel branches prior to the fix commits
  • Systems where btrfs is mounted and accessible to local unprivileged users

Discovery Timeline

  • 2026-05-28 - CVE-2026-46159 published to NVD
  • 2026-05-28 - Last updated in NVD database

Technical Details for CVE-2026-46159

Vulnerability Analysis

The btrfs_ioctl_space_info() function services the BTRFS_IOC_SPACE_INFO ioctl, which reports per-RAID-type space usage to userspace. The handler operates in two passes. The first pass walks the block group lists under groups_sem to count entries, then drops the lock and allocates an output buffer sized to that count. The second pass re-acquires the lock and fills the buffer with current entries.

Between the two passes, the lock is released. A concurrent block group removal during this window reduces the number of entries available in the second pass. The handler then calls copy_to_user() using the original alloc_size, which is larger than the actually-filled total_spaces count. The trailing bytes contain uninitialized memory returned by kmalloc, leaking kernel heap contents to userspace.

Root Cause

The root cause is a classic TOCTOU pattern combined with use of kmalloc for a buffer subsequently copied in full to userspace. The size used for the user copy reflects the first-pass count rather than the second-pass fill count. The dropped groups_sem rwlock breaks the invariant that the count and the fill remain consistent.

Attack Vector

A local attacker with permission to issue the BTRFS_IOC_SPACE_INFO ioctl on a btrfs mount races the ioctl against block group removal operations such as those triggered by balance, device removal, or empty block group cleanup. Successful races disclose uninitialized slab memory, which may contain residual pointers, cryptographic material, or other kernel data useful for bypassing KASLR or staging further exploitation.

No verified public exploit code is available. The vulnerability mechanism is described in the upstream commit messages referenced in the patch information below.

Detection Methods for CVE-2026-46159

Indicators of Compromise

  • Unexpected BTRFS_IOC_SPACE_INFO ioctl invocations from unprivileged processes correlated with concurrent btrfs balance, device removal, or block group cleanup activity.
  • High-frequency repeated BTRFS_IOC_SPACE_INFO calls from a single process, indicative of race-window exploitation attempts.

Detection Strategies

  • Audit kernel version and patch level on all Linux hosts running btrfs to identify systems missing the upstream fix commits.
  • Enable Linux audit rules for ioctl syscalls targeting btrfs filesystems and review for anomalous user-to-kernel patterns.
  • Use eBPF-based telemetry to record process, UID, and ioctl command pairs for forensic correlation.

Monitoring Recommendations

  • Monitor for processes that hold btrfs file descriptors and issue space_info ioctls at high cadence.
  • Alert on unprivileged users triggering btrfs maintenance operations or rapid repeated space queries.
  • Track kernel package versions in the asset inventory and flag hosts on vulnerable stable branches.

How to Mitigate CVE-2026-46159

Immediate Actions Required

  • Apply the latest stable kernel update from your Linux distribution that incorporates the upstream btrfs fix.
  • Restrict local shell access on systems where btrfs is mounted, particularly multi-tenant hosts.
  • Verify backups before performing kernel upgrades on btrfs-backed systems.

Patch Information

The fix copies only total_spaces entries from the second pass to userspace and switches the buffer allocation to kzalloc so any future size mismatch cannot leak heap data. Upstream fix commits are available in the kernel.org stable tree: 4fdc6ee0, 5d12e0ab, 973e57c7, d09d67d5, and f5ee467b.

Workarounds

  • Limit local user access to systems with btrfs filesystems mounted until the kernel patch is applied.
  • Where feasible, restrict access to btrfs mount points using filesystem permissions or namespace isolation to reduce exposure to the ioctl interface.
  • Use mandatory access controls such as SELinux or AppArmor profiles to constrain which processes may issue ioctls on btrfs file descriptors.
bash
# Verify the running kernel version and compare against patched stable releases
uname -r

# Identify btrfs mounts on the host
findmnt -t btrfs

# Example SELinux check to confirm enforcement on btrfs-relevant domains
getenforce

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

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update
  • 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