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
    • 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-21999

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

CVE-2025-21999 is a use-after-free flaw in the Linux kernel's proc filesystem that allows race conditions between module removal and inode operations. This post covers technical details, affected versions, and mitigations.

Published: April 1, 2026

CVE-2025-21999 Overview

A use-after-free (UAF) vulnerability has been identified in the Linux kernel's proc filesystem implementation, specifically in the proc_get_inode() function. This vulnerability arises from a race condition between kernel module unloading (rmmod) and /proc/XXX inode instantiation. The flaw allows an attacker with local access to potentially achieve arbitrary code execution or cause system instability by exploiting the timing window where pde->proc_ops is dereferenced after the owning module has been freed.

Critical Impact

Local attackers can exploit this race condition to trigger use-after-free, potentially leading to privilege escalation, arbitrary code execution, or denial of service on affected Linux systems.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 6.14-rc1 through 6.14-rc4
  • Various Linux distributions including Debian LTS

Discovery Timeline

  • April 3, 2025 - CVE-2025-21999 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21999

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free). The fundamental issue lies in the ownership semantics of pde->proc_ops structures. These operations structures belong to kernel modules, not to the /proc filesystem itself. When a /proc entry is registered, the associated proc_ops pointer references memory within the module's address space.

The race condition occurs during the narrow timing window where:

  1. A lookup operation obtains a reference to a proc directory entry via proc_lookup_de() and calls pde_get(de)
  2. Concurrently, rmmod triggers the module exit handler, which calls proc_remove() → remove_proc_subtree() → proc_entry_rundown(de)
  3. The module is then freed via free_module(mod)
  4. The lookup operation continues to execute proc_get_inode(), which attempts to dereference de->proc_ops->proc_read_iter

At step 4, the proc_ops structure has already been freed along with the module, resulting in a use-after-free condition. KASAN reports this as a page fault when attempting to access the freed memory.

Root Cause

The root cause is improper lifecycle management of the pde->proc_ops pointer. The existing protection mechanism using use_pde()/unuse_pde() pairs was not employed in this code path, allowing the dereference to occur without ensuring the module remains loaded. The fix addresses this by caching the necessary information from proc_ops in the proc directory entry (PDE) structure before calling proc_register(), eliminating the need to dereference pde->proc_ops during inode instantiation.

Attack Vector

The attack requires local access to the system with the ability to trigger /proc lookups while simultaneously unloading kernel modules. The exploitation scenario involves:

  1. An attacker loads a kernel module that registers a /proc entry
  2. The attacker initiates multiple parallel operations: directory listings or stat calls targeting the /proc entry
  3. Simultaneously, the attacker triggers module unloading via rmmod
  4. With precise timing, the race condition is triggered, causing the kernel to access freed memory
  5. By controlling the contents of the freed memory region (through heap manipulation techniques), an attacker could potentially redirect execution flow

The kernel oops trace shows the fault occurring at proc_get_inode+0x302/0x6e0 when dereferencing memory at address fffffbfff80a702b, confirming the use-after-free condition.

Detection Methods for CVE-2025-21999

Indicators of Compromise

  • Kernel oops messages referencing proc_get_inode() in the call trace
  • KASAN reports indicating use-after-free in proc filesystem operations
  • Unexpected page faults with addresses in the kernel shadow memory region (addresses starting with fffffbfff)
  • System instability or crashes during module loading/unloading operations

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) in development and staging environments to detect UAF conditions
  • Monitor kernel logs for oops traces containing proc_get_inode, proc_lookup_de, or related proc filesystem functions
  • Implement audit rules to track rmmod and module operations alongside /proc access patterns
  • Deploy kernel live patching solutions to detect and prevent exploitation attempts

Monitoring Recommendations

  • Configure syslog aggregation to capture and alert on kernel oops messages
  • Implement SentinelOne Singularity for real-time kernel-level threat detection and behavioral analysis
  • Monitor for unusual patterns of module loading/unloading combined with /proc filesystem access
  • Review system audit logs for processes attempting rapid module operations

How to Mitigate CVE-2025-21999

Immediate Actions Required

  • Apply the latest kernel patches from your distribution's security updates
  • Restrict access to kernel module loading/unloading to trusted administrators only
  • Consider disabling dynamic module loading on production systems where possible
  • Update Debian LTS systems per the Debian LTS security announcements

Patch Information

The Linux kernel maintainers have released patches across multiple stable branches. The fix caches necessary inode information in the PDE structure before proc registration, avoiding the unsafe pde->proc_ops dereference. Apply the appropriate patch for your kernel version:

  • Kernel patch 63b53198aff2
  • Kernel patch 64dc7c68e040
  • Kernel patch 654b33ada4ab
  • Kernel patch 966f331403dc
  • Kernel patch ede3e8ac90ae

Workarounds

  • Restrict module loading capabilities by setting kernel.modules_disabled=1 via sysctl after boot (note: this prevents all module loading)
  • Limit user access to systems where module unloading is required
  • Apply SELinux or AppArmor policies to restrict which processes can perform module operations
  • Consider using signed kernel modules and disabling unsigned module loading
bash
# Disable dynamic module loading (apply after boot)
sysctl -w kernel.modules_disabled=1

# Restrict module loading to specific capabilities
# In /etc/sysctl.conf or /etc/sysctl.d/99-security.conf
kernel.modules_disabled=1

# Alternative: Use capabilities to restrict module operations
# Ensure only root with CAP_SYS_MODULE can load modules

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

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.05%

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

  • Linux Kernel Commit Update 6

  • Debian LTS Announcement 1

  • Debian LTS Announcement 2
  • Vendor Resources
  • Linux Kernel Commit Update 2

  • Linux Kernel Commit Update 3

  • Linux Kernel Commit Update 4

  • Linux Kernel Commit Update 5

  • Linux Kernel Commit Update 7
  • Related CVEs
  • CVE-2026-23322: Linux Kernel Use-After-Free Vulnerability

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

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

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