Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-21718

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

CVE-2025-21718 is a use-after-free vulnerability in the Linux Kernel's ROSE protocol timer implementation that can cause memory corruption. This post explains its technical details, affected versions, and mitigation steps.

Updated: January 22, 2026

CVE-2025-21718 Overview

CVE-2025-21718 is a race condition vulnerability in the Linux kernel's ROSE (Radio Over Serial Line Encapsulation) network protocol implementation. The vulnerability exists in the timer handling code where Rose timers only acquire the socket spinlock without verifying if the socket is currently owned by a user thread. This improper synchronization leads to a use-after-free condition that can be exploited for privilege escalation or denial of service.

Critical Impact

Local attackers with low privileges can exploit this race condition to potentially execute arbitrary code in kernel context or cause system crashes through use-after-free memory corruption.

Affected Products

  • Linux Kernel (multiple versions with ROSE protocol support)
  • Debian Linux distributions (as noted in LTS announcements)
  • Systems with net/rose module enabled

Discovery Timeline

  • February 27, 2025 - CVE-2025-21718 published to NVD
  • November 03, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21718

Vulnerability Analysis

This vulnerability is classified as CWE-362 (Race Condition). The flaw occurs in the rose_timer_expiry function located at net/rose/rose_timer.c. When a timer fires and attempts to process socket data, it only acquires the socket spinlock but fails to check whether a user thread currently owns the socket. This creates a window where both the timer interrupt handler and a user thread can simultaneously access and modify socket structures.

The kernel KASAN (Kernel Address Sanitizer) detected this as a slab-use-after-free error, indicating that the timer callback accessed memory that had already been freed by a concurrent user thread operation. The vulnerability requires local access and specific timing conditions to exploit, but successful exploitation could lead to information disclosure, privilege escalation, or system instability.

Root Cause

The root cause lies in insufficient synchronization between the Rose protocol timer callbacks and user-space socket operations. The timer implementation acquires only the socket spinlock without performing an ownership check via sock_owned_by_user(). This means that when a user thread is actively manipulating the socket (holding the socket lock in user context), the timer can still proceed to access socket data structures that may be in an inconsistent state or have been deallocated.

The fix adds a check to verify socket ownership before proceeding with timer operations. If the socket is owned by a user thread, the timer is rearmed to fire again later rather than operating on potentially invalid data.

Attack Vector

The attack requires local access to the system with the ability to create and manipulate ROSE protocol sockets. An attacker would need to:

  1. Create a ROSE socket and establish timer-based operations
  2. Trigger a race condition between socket cleanup in user context and timer expiry in interrupt context
  3. Win the race to cause the timer to access freed memory

The vulnerability was identified through automated testing (syzkaller fuzzer) running on kernel version 6.13.0-rc5-syzkaller-00172. The KASAN report shows the crash occurring in the timer softirq context (swapper/0 process with PID 0), indicating this is triggered from interrupt context accessing user-allocated memory.

The call trace demonstrates the execution path through rose_timer_expiry → call_timer_fn → expire_timers → __run_timers → run_timer_softirq, confirming the timer interrupt context. The vulnerability manifests when this timer path races against user thread socket operations that can free the underlying socket structure.

Detection Methods for CVE-2025-21718

Indicators of Compromise

  • Kernel panic or crash logs referencing rose_timer_expiry in the call stack
  • KASAN reports showing slab-use-after-free at address patterns in net/rose/rose_timer.c
  • System instability when ROSE protocol sockets are in active use
  • Unexpected system reboots on systems with ROSE networking enabled

Detection Strategies

  • Enable KASAN in kernel builds to detect use-after-free conditions during testing
  • Monitor kernel logs for warnings or errors related to the ROSE network subsystem (net/rose)
  • Deploy intrusion detection rules to alert on unusual ROSE socket activity
  • Audit loaded kernel modules for rose.ko presence on systems where it's not required

Monitoring Recommendations

  • Configure kernel auditing to log ROSE socket syscall activity
  • Implement system monitoring for kernel oops or panic events
  • Review /var/log/kern.log and dmesg output for ROSE-related errors
  • Use SentinelOne's kernel-level monitoring to detect exploitation attempts targeting race conditions

How to Mitigate CVE-2025-21718

Immediate Actions Required

  • Apply the kernel patches from the official Linux kernel stable branches immediately
  • If patching is not immediately possible, disable the ROSE protocol module if not required (modprobe -r rose)
  • Restrict local user access to systems running vulnerable kernels
  • Monitor affected systems for signs of exploitation until patches are applied

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability across multiple stable kernel branches. The fix adds proper socket ownership checking before timer operations proceed, rearming the timer if the socket is currently owned by a user thread.

Official patch commits are available:

  • Kernel Git Commit #1992fb2
  • Kernel Git Commit #51c128b
  • Kernel Git Commit #58051a2
  • Kernel Git Commit #5de7665
  • Kernel Git Commit #f55c88e

Debian has issued security updates via their LTS channels - see the Debian LTS Announcement March 2025 and Debian LTS Announcement May 2025.

Workarounds

  • Disable the ROSE kernel module if not actively used: echo "blacklist rose" >> /etc/modprobe.d/blacklist.conf
  • Remove the module from running systems: modprobe -r rose
  • Restrict unprivileged user access to socket creation syscalls using seccomp or SELinux policies
  • Limit local user access on affected systems until patches can be applied
bash
# Configuration example
# Blacklist the ROSE module to prevent loading
echo "blacklist rose" >> /etc/modprobe.d/blacklist-rose.conf

# Remove the module if currently loaded
rmmod rose 2>/dev/null || true

# Verify the module is not loaded
lsmod | grep rose

# Update initramfs to persist changes
update-initramfs -u

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.0

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-362
  • Technical References
  • Kernel Git Commit #0d5bca3

  • Kernel Git Commit #1409b45

  • Kernel Git Commit #52f5aff

  • Debian LTS Announcement March 2025

  • Debian LTS Announcement May 2025
  • Vendor Resources
  • Kernel Git Commit #1992fb2

  • Kernel Git Commit #51c128b

  • Kernel Git Commit #58051a2

  • Kernel Git Commit #5de7665

  • Kernel Git Commit #f55c88e
  • Related CVEs
  • CVE-2026-31475: Linux Kernel Use-After-Free Vulnerability

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

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

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