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-2024-42314

CVE-2024-42314: Debian Linux Use-After-Free Vulnerability

CVE-2024-42314 is a use-after-free flaw in Debian Linux kernel affecting the btrfs filesystem when adding pages to compressed bio. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2024-42314 Overview

CVE-2024-42314 is a use-after-free vulnerability [CWE-416] in the Btrfs filesystem code of the Linux kernel. The flaw resides in the add_ra_bio_pages() function, which accesses an extent map structure after dropping its reference. A local authenticated attacker can trigger the dangling pointer access while reading compressed data, leading to memory corruption inside the kernel.

The issue affects multiple stable Linux kernel branches and Debian Linux 11. Upstream maintainers resolved the defect by computing add_size before releasing the extent map reference.

Critical Impact

Local exploitation can corrupt kernel memory, enabling privilege escalation, denial of service, or disclosure of sensitive kernel data on systems using Btrfs with compressed extents.

Affected Products

  • Linux kernel (multiple stable branches prior to the fix commits)
  • Debian Linux 11 (Bullseye)
  • Any distribution using Btrfs with read-ahead on compressed extents

Discovery Timeline

  • 2024-08-17 - CVE-2024-42314 published to the National Vulnerability Database (NVD)
  • 2025-01 - Debian LTS advisory published for affected Debian 11 kernels
  • 2026-03-27 - Last updated in NVD database

Technical Details for CVE-2024-42314

Vulnerability Analysis

The defect lives in the Btrfs compressed read path. Within add_ra_bio_pages(), the kernel uses an extent_map structure to determine how many bytes from the compressed extent to attach to the read-ahead bio. The original code dropped the reference count on the extent map by calling free_extent_map() before computing add_size. After the reference is released, the extent map can be freed by another thread that holds the last reference, leaving the local pointer dangling.

When execution then dereferences fields such as the extent length to compute add_size, the kernel reads memory that may already be reused. The result is undefined behavior ranging from incorrect bio sizing to controlled kernel memory disclosure or corruption. Successful exploitation requires local access and the ability to read from a Btrfs filesystem containing compressed extents, which is the default behavior when compression is enabled on a mount.

The upstream fix relocates the add_size calculation so that all fields are read from the extent map while the reference is still held. Only after the value is captured does the code call free_extent_map(). This eliminates the window in which another task can free the structure underneath the reader.

Root Cause

The root cause is improper lifetime management of a reference-counted object. Code dereferenced fields of extent_map after free_extent_map() decremented its reference count, violating the invariant that an object must not be accessed after the caller has released its hold on it.

Attack Vector

The attack vector is local. A user with permission to read from a Btrfs volume containing compressed extents can trigger the read-ahead path. Concurrent filesystem activity that races extent map eviction with the compressed read can win the use-after-free window. No user interaction is required beyond initiating the read.

No verified public proof-of-concept code is available. The vulnerability is described in prose only — see the linked kernel commits for the corrected source.

Detection Methods for CVE-2024-42314

Indicators of Compromise

  • Kernel oops or general protection fault messages referencing add_ra_bio_pages, btrfs_submit_compressed_read, or free_extent_map in dmesg
  • KASAN use-after-free reports against extent_map slab objects when KASAN is enabled
  • Unexpected process crashes or kernel panics on hosts running Btrfs with compress or compress-force mount options

Detection Strategies

  • Inventory running kernel versions with uname -r across the fleet and compare against the fixed commits 8e7860543a94, b7859ff398b6, c1cc3326e27b, and c205565e0f2f
  • Enable kernel address sanitizer (KASAN) in test environments to catch use-after-free conditions in Btrfs read paths before production exposure
  • Monitor system logs for repeated Btrfs-related call traces, which can indicate exploitation attempts or stability issues

Monitoring Recommendations

  • Forward kern.log and journalctl -k output to a centralized log platform and alert on Btrfs stack traces
  • Track auditd events for users performing large or unusual read operations on Btrfs volumes with compression enabled
  • Baseline kernel crash frequency per host and alert on deviations

How to Mitigate CVE-2024-42314

Immediate Actions Required

  • Apply the vendor kernel update on every host running an affected version, prioritizing systems where Btrfs compression is in use
  • Reboot patched hosts to load the corrected kernel image, since live patching may not cover this code path on all distributions
  • Restrict local shell access on multi-tenant systems until patches are deployed

Patch Information

The fix is committed upstream and backported to stable trees. Reference the following commits: 8e7860543a94784d744c7ce34b78a2e11beefa5c, b7859ff398b6b656e1689daa860eb34837b4bb89, c1cc3326e27b0bd7a2806b40bc48e49afaf951e7, and c205565e0f2f439f278a4a94ee97b67ef7b56ae8. Debian users should install the kernel update described in the Debian LTS Announcement. Commit details are available in the Linux Kernel Stable Tree.

Workarounds

  • Where patching is not yet possible, remount affected volumes without compression by removing compress and compress-force from /etc/fstab and remounting
  • Limit untrusted local accounts on hosts that mount Btrfs volumes with compression enabled
  • Migrate critical data to an alternative filesystem such as ext4 or XFS on systems that cannot be patched promptly
bash
# Verify running kernel and Btrfs mount options
uname -r
mount | grep btrfs

# Example: remount a Btrfs volume without compression as a temporary workaround
mount -o remount,compress=no /mnt/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.03%

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

  • Linux Kernel Commit Note

  • Linux Kernel Commit Note

  • Linux Kernel Commit Note
  • Related CVEs
  • CVE-2026-46330: Linux Kernel Use-After-Free Vulnerability

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

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

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