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-2025-22035

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

CVE-2025-22035 is a use-after-free flaw in the Linux Kernel tracing subsystem that occurs during tracer switching. This vulnerability can be triggered when switching between function_graph and other tracers. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 16, 2026

CVE-2025-22035 Overview

CVE-2025-22035 is a use-after-free vulnerability [CWE-416] in the Linux kernel's ftrace subsystem. The flaw resides in print_graph_function_flags() and is triggered when a user switches the active tracer while another process is concurrently reading the trace file. Switching from the function_graph tracer to another tracer such as timerlat frees iter->private via graph_trace_close() without setting the pointer to NULL. A subsequent call path through event->funcs->trace() then dereferences the stale pointer.

Critical Impact

A local user with access to the tracing interface can trigger memory corruption in kernel space, potentially leading to privilege escalation, kernel crash, or arbitrary code execution.

Affected Products

  • Linux Kernel (multiple stable branches prior to the fix commits)
  • Debian distributions referenced in DLA advisories msg00030 and msg00045
  • Downstream distributions packaging vulnerable kernel versions

Discovery Timeline

  • 2025-04-16 - CVE-2025-22035 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-22035

Vulnerability Analysis

The vulnerability is a use-after-free condition in the kernel tracing subsystem. During each s_show() call, print_trace_line() invokes print_graph_function_flags() through two paths: directly via iter->trace->print_line() and indirectly via event->funcs->trace() inside print_trace_fmt(). When a user switches tracers mid-read, only the first path is updated to reflect the new tracer. The second path retains a reference to the previous tracer's print function.

When the previous tracer was function_graph, s_start() calls graph_trace_close() to release iter->private. The pointer itself is never cleared. Subsequent reads then pass the dangling pointer to event->funcs->trace(), producing the use-after-free.

Root Cause

The root cause is a missing pointer invalidation in graph_trace_close(). The function frees memory allocated to iter->private but does not assign NULL to the pointer after release. Combined with stale function pointers cached through the event subsystem during tracer switching, this leaves a window where freed memory is dereferenced by code path that was not synchronized with the tracer change.

Attack Vector

Exploitation requires local access and the ability to write to current_tracer and read from trace under tracefs or debugfs. These interfaces typically require CAP_SYS_ADMIN or root, but they may be exposed to lower-privileged contexts in misconfigured containers or systems with relaxed tracing permissions. The reporter reproduced the issue by enabling function_graph, beginning a cat trace read, then switching to timerlat during the read window. A local attacker who controls execution timing can convert the freed allocation into a controlled object and achieve kernel memory corruption.

No public proof-of-concept exploit has been released, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Detection Methods for CVE-2025-22035

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing print_graph_function_flags, print_trace_line, or print_trace_fmt in dmesg or /var/log/kern.log
  • KASAN reports flagging use-after-free in the ftrace code path when kernel address sanitizer is enabled
  • Non-root or container processes writing to /sys/kernel/tracing/current_tracer or /sys/kernel/debug/tracing/current_tracer

Detection Strategies

  • Audit access to tracefs and debugfs mount points and alert on unprivileged writes to current_tracer
  • Enable kernel hardening features such as KASAN in test environments to surface the use-after-free during regression testing
  • Correlate kernel crash dumps with concurrent reads of the trace file and tracer-switch events

Monitoring Recommendations

  • Monitor process execution that touches /sys/kernel/tracing/ or /sys/kernel/debug/tracing/ paths and flag non-administrative users
  • Track kernel version inventory across the fleet to confirm patched builds are deployed
  • Forward kernel ring buffer events to a centralized logging platform for retroactive analysis of crash patterns

How to Mitigate CVE-2025-22035

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable tree commits, including 099ef33, 42561fe, 70be951, 7f81f27, 81a85b1, a2cce54, c85efe6, de7b309, and f14752d
  • Update Debian systems using the fixed packages announced in Debian LTS msg00030 and Debian LTS msg00045
  • Restrict access to tracefs and debugfs to trusted administrators only

Patch Information

The fix sets iter->private to NULL immediately after freeing it in graph_trace_close(), preventing other tracers from dereferencing the released allocation. The patch also removes redundant iter->private = NULL assignments from the wakeup and irqsoff tracers. Refer to the upstream commit 099ef33 and the additional backport commits in the Linux stable tree.

Workarounds

  • Unmount or restrict tracefs and debugfs where kernel tracing is not required for production workloads
  • Set restrictive permissions on /sys/kernel/tracing/current_tracer so that only privileged administrators can change the active tracer
  • Disable container access to host tracing interfaces by removing CAP_SYS_ADMIN and masking /sys/kernel/debug in container runtimes
bash
# Configuration example: restrict tracefs access to root only
mount -o remount,mode=0700 /sys/kernel/tracing
chmod 0600 /sys/kernel/tracing/current_tracer
chmod 0600 /sys/kernel/tracing/trace

# Verify the running kernel includes the fix
uname -r
dpkg -l | grep linux-image   # Debian/Ubuntu
rpm -qa | grep kernel        # RHEL/Fedora

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

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

  • Debian LTS Announcement 45
  • Vendor Resources
  • Kernel Commit 099ef33

  • Kernel Commit 42561fe

  • Kernel Commit 70be95

  • Kernel Commit 7f81f2

  • Kernel Commit 81a85b

  • Kernel Commit a2cce54

  • Kernel Commit c85efe6

  • Kernel Commit de7b309

  • Kernel Commit f14752d
  • 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