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

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

CVE-2025-21858 is a use-after-free vulnerability in the Linux Kernel geneve driver that can lead to memory corruption. This article covers the technical details, affected kernel versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21858 Overview

CVE-2025-21858 is a use-after-free vulnerability in the Linux kernel's GENEVE (Generic Network Virtualization Encapsulation) driver, specifically within the geneve_find_dev() function. This memory corruption flaw occurs due to improper handling of network namespace associations when creating GENEVE tunnel devices. The vulnerability was identified through syzkaller fuzzing and can lead to local privilege escalation or system instability.

Critical Impact

A local attacker with low privileges can exploit this use-after-free condition to potentially execute arbitrary code in kernel context, escalate privileges, or cause denial of service through system crashes.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 6.14-rc1, 6.14-rc2, 6.14-rc3
  • Multiple stable kernel branches requiring backported fixes

Discovery Timeline

  • 2025-03-12 - CVE CVE-2025-21858 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-21858

Vulnerability Analysis

This use-after-free vulnerability exists in the GENEVE tunnel driver's device lookup mechanism. The flaw stems from a mismatch between network namespaces during device creation and destruction. When a GENEVE device is created with network namespace redirection attributes (IFLA_NET_NS_PID, IFLA_NET_NS_FD, or IFLA_TARGET_NETNSID), the device's geneve_dev.next pointer is linked to a list in a different namespace than the device itself resides in.

During namespace teardown via geneve_exit_batch_rtnl(), the device is unregistered and freed from its home namespace, but the geneve_dev.next pointer remains dangling in the backend UDP socket namespace's geneve list. Subsequent GENEVE device creation in that namespace traverses this corrupted list, accessing freed memory in geneve_find_dev() at line 1295 of drivers/net/geneve.c.

Root Cause

The root cause is improper lifecycle management of the geneve_dev.next linked list pointer across network namespaces. The geneve_configure() function links the device structure to net_generic(net, geneve_net_id)->geneve_list, where net can differ from dev_net(dev) when namespace attributes are specified. When the device's actual namespace is destroyed, geneve_destroy_tunnels() fails to properly unlink the device from the alternate namespace's list before freeing the device memory.

Attack Vector

The vulnerability requires local access and low privileges. An attacker can exploit this by:

  1. Creating a GENEVE tunnel device with cross-namespace configuration using netlink attributes
  2. Triggering destruction of the device's home network namespace
  3. Creating another GENEVE device in the original backend namespace
  4. The new device creation traverses the corrupted list, accessing freed memory

The KASAN-detected access shows a 2-byte read from freed slab memory during the geneve_configure() call path, indicating list traversal of deallocated structures.

Detection Methods for CVE-2025-21858

Indicators of Compromise

  • KASAN (Kernel Address Sanitizer) reports showing slab-use-after-free in geneve_find_dev or geneve_configure
  • Kernel panic or oops messages referencing drivers/net/geneve.c with memory access violations
  • Unexpected system crashes during GENEVE tunnel creation in multi-namespace environments

Detection Strategies

  • Enable KASAN on development and testing kernels to detect memory corruption attempts
  • Monitor kernel logs (dmesg) for UAF reports in the GENEVE driver subsystem
  • Implement audit rules for netlink operations involving network namespace manipulation

Monitoring Recommendations

  • Deploy kernel live patching solutions to receive immediate protection
  • Monitor for unusual patterns of network namespace creation and destruction
  • Track GENEVE device creation events across namespaces using eBPF tracing

How to Mitigate CVE-2025-21858

Immediate Actions Required

  • Update to patched Linux kernel versions immediately
  • Review systems using GENEVE tunneling with cross-namespace configurations
  • Consider temporarily disabling GENEVE module on high-security systems if patching is delayed
  • Apply vendor-specific security updates from distribution maintainers

Patch Information

The fix modifies geneve_destroy_tunnels() to call geneve_dellink() instead of directly unregistering devices, ensuring proper unlinking from all namespace lists before device destruction. Patches have been committed to the stable kernel tree across multiple branches:

  • Commit 3ce92ca990cf
  • Commit 5a0538ac6826
  • Commit 788dbca056a8
  • Commit 904e746b2e7f

Debian has also issued security announcements for LTS releases. See the Debian LTS Security Announcements for distribution-specific guidance.

Workarounds

  • Restrict access to network namespace creation capabilities (CAP_SYS_ADMIN or CAP_NET_ADMIN)
  • Use network policy to limit which users can create GENEVE devices
  • Monitor and limit cross-namespace GENEVE configurations until patches are applied
bash
# Temporarily disable GENEVE module loading if not required
echo "blacklist geneve" >> /etc/modprobe.d/blacklist-geneve.conf
modprobe -r geneve

# Verify module is not loaded
lsmod | grep geneve

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

  • 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

  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change
  • Related CVEs
  • CVE-2026-23427: Linux Kernel Use-After-Free Vulnerability

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

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

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