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-2024-56658

CVE-2024-56658: Linux Kernel Use-After-Free Vulnerability

CVE-2024-56658 is a use-after-free flaw in the Linux Kernel affecting network namespace dismantling. Attackers may exploit freed memory in dst_destroy operations. This article covers technical details, impact, and patches.

Published: January 28, 2026

CVE-2024-56658 Overview

CVE-2024-56658 is a Use-After-Free vulnerability in the Linux kernel's network namespace (netns) dismantle process. The flaw occurs in the dst_destroy function when handling XFRM (IPsec) destination operations during network namespace cleanup. Specifically, the xfrm6_net_init() and xfrm4_net_init() functions copy template structures into the net structure, but the net structure may be freed before all destination callbacks complete, leading to a slab-use-after-free condition.

Critical Impact

Local attackers with low privileges can exploit this vulnerability to potentially achieve high impacts on confidentiality, integrity, and availability of the system through memory corruption in kernel space.

Affected Products

  • Linux Kernel (multiple versions)
  • Linux Kernel 6.13-rc1
  • Linux Kernel 6.13-rc2

Discovery Timeline

  • December 27, 2024 - CVE-2024-56658 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2024-56658

Vulnerability Analysis

This Use-After-Free vulnerability resides in the Linux kernel's network namespace destruction path. When a network namespace is dismantled, the kernel copies XFRM destination operations templates (xfrm4_dst_ops_template and xfrm6_dst_ops_template) into the per-network structure via net->xfrm.xfrm4_dst_ops and net->xfrm.xfrm6_dst_ops. The vulnerability manifests when the struct net is freed before all pending destination callbacks have completed execution.

When dst_destroy() is subsequently invoked during RCU callback processing, it attempts to access dst->ops->destroy, which points to memory within the already-freed network structure. This results in a slab-use-after-free condition that was detected by KASAN (Kernel Address Sanitizer) during kernel testing.

The issue is related to a previously addressed problem in commit ac888d58869b ("net: do not delay dst_entries_add() in dst_release()"), indicating a pattern of timing-related memory safety issues in the destination cache management code.

Root Cause

The root cause is a race condition between network namespace destruction and RCU-deferred destination cache cleanup. The struct net structure is freed prematurely without ensuring that all destination operations referencing the per-namespace xfrm[46]_dst_ops structures have completed. The XFRM subsystem's initialization functions copy operation templates to per-namespace storage, creating dangling pointers when the namespace is destroyed while destinations still reference these operations.

Attack Vector

The vulnerability requires local access to the system with low privileges. An attacker would need to:

  1. Create and manipulate network namespaces
  2. Trigger XFRM/IPsec destination operations within those namespaces
  3. Race the namespace destruction against pending RCU callbacks
  4. Exploit the use-after-free condition to corrupt kernel memory

The vulnerability is exploited through local attack vectors involving network namespace manipulation. The attack does not require user interaction but does require authenticated local access to a system where network namespace operations are permitted.

Detection Methods for CVE-2024-56658

Indicators of Compromise

  • KASAN reports showing "slab-use-after-free in dst_destroy" in kernel logs
  • Kernel panic or crash events originating from net/core/dst.c with RCU batch processing in the call stack
  • Anomalous behavior in IPsec/XFRM subsystem operations during namespace cleanup

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) in development and testing environments to detect memory corruption
  • Monitor kernel logs for use-after-free warnings in networking subsystem components
  • Implement syscall auditing for unshare() and clone() calls with CLONE_NEWNET flag
  • Deploy eBPF-based monitoring for network namespace lifecycle events

Monitoring Recommendations

  • Configure centralized logging for kernel messages containing "dst_destroy" and "use-after-free" patterns
  • Monitor for unusual spikes in network namespace creation and destruction operations
  • Enable kernel crash dump collection to capture forensic data if exploitation occurs
  • Implement SentinelOne Singularity agent for real-time kernel-level threat detection

How to Mitigate CVE-2024-56658

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes the fix for CVE-2024-56658
  • Restrict network namespace creation privileges to trusted users and processes using user namespace restrictions
  • Consider temporarily disabling unprivileged user namespaces via sysctl kernel.unprivileged_userns_clone=0 if not required
  • Apply security-focused kernel hardening configurations

Patch Information

The fix defers the final struct net free operation until after an additional cleanup_net() round and existing rcu_barrier() calls have completed, ensuring all destination callbacks finish before the network structure is released. Patches are available through the kernel.org git repository:

  • Kernel Git Commit 0f6ede9fbc74
  • Kernel Git Commit 3267b254dc0a
  • Kernel Git Commit 6610c7f8a8d4
  • Kernel Git Commit b7a79e51297f

Additionally, Debian has released security announcements for affected distributions. See the Debian LTS Security Announcements for distribution-specific guidance.

Workarounds

  • Restrict access to network namespace operations by limiting CAP_SYS_ADMIN and CAP_NET_ADMIN capabilities
  • Disable unprivileged user namespace creation if operationally feasible
  • Implement mandatory access control (SELinux/AppArmor) policies restricting namespace operations
  • Monitor and limit processes that can create new network namespaces
bash
# Disable unprivileged user namespaces (if not required)
echo 0 > /proc/sys/kernel/unprivileged_userns_clone
# Or persistently via sysctl
echo "kernel.unprivileged_userns_clone = 0" >> /etc/sysctl.d/99-security.conf
sysctl -p /etc/sysctl.d/99-security.conf

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.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
  • Kernel Git Commit Update 5

  • Kernel Git Commit Update 6

  • Debian LTS Security Announcement 1

  • Debian LTS Security Announcement 2
  • Vendor Resources
  • Kernel Git Commit Update 1

  • Kernel Git Commit Update 2

  • Kernel Git Commit Update 3

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