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

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

CVE-2025-38001 is a use-after-free flaw in the Linux Kernel's HFSC scheduler that allows reentrant enqueue operations to add a class to eltree twice. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-38001 Overview

CVE-2025-38001 is a Use After Free vulnerability in the Linux kernel's Hierarchical Fair Service Curve (HFSC) network packet scheduler. The vulnerability exists in the net_sched subsystem where a reentrant enqueue operation can add a class to the eligible tree (eltree) twice, bypassing a previous security patch. When HFSC is used in combination with NETEM (Network Emulator), an attacker with local access can exploit this flaw to trigger a Use-After-Free condition or cause an infinite loop in the hfsc_dequeue function, resulting in denial of service.

Critical Impact

Local attackers can exploit this vulnerability to cause system denial of service through infinite loops or memory corruption via Use-After-Free, potentially affecting network services and system stability.

Affected Products

  • Linux Kernel (multiple versions from 5.0 through 6.15-rc5)
  • Debian Linux 11.0
  • Debian Linux 12.0

Discovery Timeline

  • June 6, 2025 - CVE-2025-38001 published to NVD
  • December 17, 2025 - Last updated in NVD database

Technical Details for CVE-2025-38001

Vulnerability Analysis

This vulnerability stems from an incomplete fix for a previous security issue in the HFSC scheduler. The original patch (commit 141d34391abbb315d68556b7c67ad97885407547) attempted to prevent double insertion of classes into the eltree by checking the cl->cl_nactive field. However, this check is only effective when init_vf is called, as that is the only function that increments the cl_nactive field.

The bypass occurs when an attacker uses HFSC_RSC (Real-time Service Curve), which calls init_ed instead of init_vf. Since init_ed does not increment cl_nactive, the original patch's check can be bypassed, allowing a class to be inserted into the eltree multiple times.

Under normal exploitation conditions, the double insertion causes an infinite loop in hfsc_dequeue. However, by chaining this with TBF (Token Bucket Filter) as a root qdisc configured with a very low rate, an attacker can prevent packets from being dequeued. This creates a window for subsequent insertions into the HFSC eltree, ultimately leading to a Use-After-Free condition when the scheduler attempts to access freed memory.

Root Cause

The root cause is an insufficient validation check in hfsc_enqueue that fails to account for all code paths where a class can be added to the eltree. The previous fix only verified the cl_nactive field, but this field is not updated by the HFSC_RSC path using init_ed. The fix requires an explicit check in hfsc_enqueue to determine whether the class is already present in the eltree whenever the HFSC_RSC flag is set, regardless of the cl_nactive value.

Attack Vector

The attack requires local access to the system with the ability to configure network qdiscs. An attacker would need to:

  1. Configure HFSC as a child qdisc under TBF (Token Bucket Filter) with a very low rate
  2. Add NETEM as a child of HFSC to enable reentrant enqueue operations
  3. Trigger packet enqueue operations that exploit the HFSC_RSC path using init_ed
  4. Leverage the low TBF rate to prevent dequeue, allowing multiple insertions
  5. The double insertion corrupts the red-black tree structure, leading to either an infinite loop during dequeue or a Use-After-Free when freed memory is accessed

The exploitation does not require user interaction and can be performed by any user with permissions to configure network schedulers (typically requiring CAP_NET_ADMIN capability).

Detection Methods for CVE-2025-38001

Indicators of Compromise

  • Kernel log messages indicating HFSC scheduler errors or warnings in sch_hfsc.c
  • Unusual system hangs or high CPU utilization in kernel network scheduling contexts
  • Kernel oops or panic messages referencing hfsc_dequeue or hfsc_enqueue functions
  • Unexpected TBF and HFSC qdisc configurations with unusually low rate settings

Detection Strategies

  • Monitor kernel logs for scheduler-related crashes or infinite loop indicators using dmesg or system logging
  • Implement auditd rules to track tc (traffic control) command usage for qdisc configuration changes
  • Use SentinelOne Singularity platform to detect anomalous kernel behavior and memory corruption attempts
  • Deploy integrity monitoring for network scheduler configurations on critical systems

Monitoring Recommendations

  • Enable kernel auditing for network namespace and qdisc modifications
  • Monitor for processes attempting to configure complex nested qdisc hierarchies (TBF + HFSC + NETEM)
  • Set up alerts for kernel messages containing hfsc, eltree, or rb_tree corruption errors
  • Track systems with elevated network capabilities (CAP_NET_ADMIN) for unusual configuration activity

How to Mitigate CVE-2025-38001

Immediate Actions Required

  • Apply the latest kernel security patches from your distribution immediately
  • Restrict CAP_NET_ADMIN capability to only essential users and processes
  • Audit existing qdisc configurations for potentially dangerous HFSC + NETEM combinations
  • Consider temporarily disabling HFSC scheduler if not required for operations

Patch Information

Linux kernel developers have released patches across multiple stable branches to address this vulnerability. The fix adds an explicit check in hfsc_enqueue to verify whether a class is already present in the eltree when the HFSC_RSC flag is set. Key patch commits include:

  • Kernel Commit 295f7c579b07
  • Kernel Commit 2c928b3a0b04
  • Kernel Commit 2f2190ce4ca9
  • Kernel Commit 39ed887b1dd2
  • Kernel Commit 4e38eaaabfb7
  • Kernel Commit 6672e6c00810
  • Kernel Commit a0ec22fa20b2
  • Kernel Commit ac9fe7dd8e73
  • Kernel Commit e5bee633cc27

Debian users should refer to the Debian LTS security announcements for updated package versions.

Workarounds

  • Disable the HFSC qdisc module if not required: modprobe -r sch_hfsc
  • Implement network namespace isolation to limit qdisc configuration exposure
  • Use AppArmor or SELinux policies to restrict traffic control (tc) command execution
  • Apply principle of least privilege by removing CAP_NET_ADMIN from non-essential services
bash
# Check if HFSC module is loaded
lsmod | grep sch_hfsc

# Temporarily disable HFSC module (if not in use)
sudo modprobe -r sch_hfsc

# Blacklist HFSC module to prevent loading on boot
echo "blacklist sch_hfsc" | sudo tee /etc/modprobe.d/disable-hfsc.conf

# Verify current qdisc configurations for suspicious setups
tc qdisc show

# Update kernel to patched version (Debian/Ubuntu)
sudo apt update && sudo apt upgrade linux-image-$(uname -r)

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Technical References
  • Debian LTS Announcement

  • Debian LTS Announcement

  • System Failure Blog Post
  • Vendor Resources
  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

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