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

CVE-2026-31580: Linux Kernel Use-After-Free Vulnerability

CVE-2026-31580 is a use-after-free vulnerability in the Linux Kernel bcache subsystem that can cause system crashes when accessing freed memory. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-31580 Overview

CVE-2026-31580 is a use-after-free vulnerability in the Linux kernel's bcache subsystem that affects the cached_dev.sb_bio structure. This memory safety flaw occurs when a bcache device is stopped while a superblock write operation is still in progress, leading to kernel crashes and potential system instability.

The vulnerability was discovered in production environments through multiple crash reports related to the libceph module. Analysis of coredump files revealed that the address of dc->sb_bio had been freed prematurely, causing the system to access released memory during the endio (end I/O) callback.

Critical Impact

This use-after-free vulnerability can cause kernel crashes and system instability in Linux systems using bcache with Ceph storage backends. Local attackers with low privileges can potentially exploit this flaw to achieve high confidentiality, integrity, and availability impacts.

Affected Products

  • Linux Kernel (multiple versions with bcache support)
  • Systems using bcache with Ceph/libceph storage backends
  • Linux-based storage servers and infrastructure

Discovery Timeline

  • April 24, 2026 - CVE-2026-31580 published to NVD
  • April 27, 2026 - Last updated in NVD database

Technical Details for CVE-2026-31580

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free). The flaw exists within the bcache subsystem's handling of the cached_dev structure and its embedded sb_bio (superblock BIO) object.

The core issue stems from a race condition between device teardown and I/O completion. When a bcache cached device is stopped, the cached_dev structure is freed through cached_dev_free(). However, if a superblock write operation is still pending at the time of teardown, the BIO completion handler (endio) will attempt to access the already-freed sb_bio structure.

This results in a use-after-free condition where the kernel accesses deallocated memory, causing system crashes. The vulnerability manifests through call traces involving blk_update_request, blk_mq_end_request, and the Ceph RBD/libceph stack.

Root Cause

The root cause is the lack of synchronization between superblock write completion and device teardown in the bcache subsystem. Specifically:

  1. The sb_bio is embedded within struct cached_dev rather than being allocated separately for each operation
  2. When cached_dev_free() is called, it does not wait for any pending superblock write operations to complete
  3. The BIO completion callback (endio) executes after the memory has been freed, accessing invalid memory addresses

The fix implements proper synchronization by waiting for sb_write operations to complete before freeing the cached_dev structure in cached_dev_free().

Attack Vector

This vulnerability requires local access to the system with low privileges. An attacker would need the ability to trigger device stop operations while superblock writes are in progress. The attack does not require user interaction and affects the confidentiality, integrity, and availability of the system.

The exploitation scenario involves:

  1. Having a bcache device configured on the target system
  2. Initiating or timing an attack during superblock write operations
  3. Triggering a device stop operation to cause the race condition
  4. The resulting kernel crash could lead to denial of service or potentially be chained with other vulnerabilities for further exploitation

Detection Methods for CVE-2026-31580

Indicators of Compromise

  • Kernel crash logs containing call traces with blk_update_request, blk_mq_end_request, and rbd_img_handle_request
  • Stack traces referencing libceph modules including osd_dispatch, ceph_con_process_message, or ceph_con_workfn
  • System crashes occurring during bcache device stop or reconfiguration operations
  • Coredump analysis revealing freed dc->sb_bio addresses

Detection Strategies

  • Monitor kernel logs (dmesg, /var/log/kern.log) for bcache-related oops or panic messages
  • Deploy kernel crash dump analysis tools (kdump, crash) to capture and analyze memory states
  • Use kernel debugging features like KASAN (Kernel Address Sanitizer) to detect use-after-free conditions during testing
  • Implement system monitoring for unexpected bcache device state changes

Monitoring Recommendations

  • Configure persistent kernel logging to preserve crash information across reboots
  • Set up automated alerting for kernel oops/panic events on systems using bcache
  • Monitor bcache device health status through sysfs interfaces (/sys/fs/bcache/)
  • Implement centralized log aggregation for systems running bcache with Ceph storage

How to Mitigate CVE-2026-31580

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix
  • Avoid stopping bcache devices during periods of heavy I/O activity until patched
  • Implement monitoring for kernel crashes to detect exploitation attempts
  • Review and test bcache configurations in non-production environments first

Patch Information

The Linux kernel maintainers have released patches across multiple stable kernel branches. The fix ensures that sb_write operations complete before the cached_dev structure is freed in cached_dev_free().

Available patches:

  • Linux Kernel Commit 2d69655
  • Linux Kernel Commit 383f7fe
  • Linux Kernel Commit 47fa09f
  • Linux Kernel Commit 4f71c8b
  • Linux Kernel Commit add4982
  • Linux Kernel Commit fec114a

Workarounds

  • Ensure graceful shutdown procedures that allow pending I/O operations to complete before stopping bcache devices
  • Implement health checks to verify no active superblock writes before device teardown
  • Consider temporarily disabling bcache on critical systems until patches can be applied
  • Use maintenance windows for any bcache reconfiguration activities
bash
# Check current bcache status before any stop operations
cat /sys/block/bcache*/bcache/state

# Ensure cache is clean before stopping
echo writeback > /sys/block/bcache0/bcache/cache_mode
sync
echo 0 > /sys/block/bcache0/bcache/writeback_running

# Verify no pending writes before device operations
cat /sys/block/bcache0/bcache/dirty_data

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

  • 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
  • Vendor Resources
  • Linux Kernel Commit 2d69655

  • Linux Kernel Commit 383f7fe

  • Linux Kernel Commit 47fa09f

  • Linux Kernel Commit 4f71c8b

  • Linux Kernel Commit add4982

  • Linux Kernel Commit fec114a
  • Related CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

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

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

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