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-2022-2588

CVE-2022-2588: Linux Kernel Use-After-Free Vulnerability

CVE-2022-2588 is a use-after-free vulnerability in the Linux Kernel's cls_route filter that occurs when handles have a value of 0. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2022-2588 Overview

CVE-2022-2588 is a use-after-free vulnerability discovered in the cls_route filter implementation within the Linux kernel's network traffic control subsystem. The flaw occurs when the cls_route filter fails to properly remove an old filter from the hashtable before freeing it when the filter's handle has a value of 0. This memory management error can lead to a use-after-free condition that local attackers with low privileges can exploit to escalate privileges on affected systems.

Critical Impact

Local attackers can exploit this use-after-free vulnerability to achieve privilege escalation, potentially gaining root access on affected Linux systems. The vulnerability requires local access but no user interaction, making it particularly dangerous in multi-user environments.

Affected Products

  • Linux Kernel (multiple versions)
  • Canonical Ubuntu Linux 14.04 ESM
  • Canonical Ubuntu Linux 16.04 ESM
  • Canonical Ubuntu Linux 18.04 ESM
  • Canonical Ubuntu Linux 20.04 LTS
  • Canonical Ubuntu Linux 22.04 LTS

Discovery Timeline

  • August 2022 - Vulnerability disclosed via the Kernel Mailing List Discussion
  • August 2022 - Multiple Ubuntu Security Notices released (USN-5557-1 through USN-5588-1)
  • January 8, 2024 - CVE-2022-2588 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-2588

Vulnerability Analysis

This vulnerability is a use-after-free (CWE-416) and double-free (CWE-415) issue in the Linux kernel's traffic control filtering subsystem. The cls_route classifier, part of the kernel's Quality of Service (QoS) framework, is used for routing-based packet classification. The vulnerability exists in the handling of filter objects when their handle value is set to 0.

When a filter with a handle value of 0 is being replaced or modified, the code path fails to properly remove the old filter from the internal hashtable before deallocating its memory. This leaves a dangling pointer in the hashtable, which can subsequently be dereferenced during filter lookups or other operations. An attacker can manipulate this condition to achieve arbitrary code execution in kernel context.

The attack requires local access to the system with the ability to create network namespaces or access to CAP_NET_ADMIN capabilities. Once exploited, the attacker can leverage the memory corruption to escalate privileges from a low-privileged user to root.

Root Cause

The root cause lies in improper object lifecycle management within the cls_route filter implementation. When processing filter updates or replacements, the code checks for handle collisions but fails to properly handle the edge case where the handle value equals 0. This results in the old filter remaining in the hashtable while its memory is freed, creating a classic use-after-free scenario.

The issue is compounded by insufficient validation of the filter state during cleanup operations, allowing attackers to trigger the vulnerable code path through specific sequences of netlink messages to the traffic control subsystem.

Attack Vector

The attack vector is local, requiring an attacker to have existing access to the target system. The exploitation typically involves:

  1. Creating a network namespace to gain the necessary capabilities for traffic control operations
  2. Setting up a cls_route filter with specific parameters, including a handle value of 0
  3. Triggering a filter replacement operation that exposes the use-after-free condition
  4. Manipulating freed memory through heap spraying or other techniques to gain kernel code execution
  5. Leveraging the kernel execution context to escalate privileges to root

The vulnerability mechanism involves improper hashtable management where filter objects are freed without being removed from the lookup table. When subsequent operations reference this stale entry, the attacker can control the contents of the freed memory, allowing redirection of kernel execution flow. For detailed technical analysis and proof-of-concept code, refer to the GitHub PoC for CVE-2022-2588 repository.

Detection Methods for CVE-2022-2588

Indicators of Compromise

  • Unusual network namespace creation activity from non-administrative users
  • Unexpected traffic control (tc) commands executed by low-privileged accounts
  • Kernel log entries showing memory corruption or unexpected cls_route filter operations
  • Process privilege changes where non-root processes suddenly gain elevated capabilities

Detection Strategies

  • Monitor for tc command execution and netlink socket operations related to traffic control configuration
  • Implement audit rules to track network namespace creation: auditctl -a always,exit -F arch=b64 -S unshare -F a0=0x40000000
  • Deploy kernel memory monitoring tools to detect potential use-after-free exploitation attempts
  • Utilize SentinelOne's behavioral AI to identify privilege escalation patterns following network subsystem manipulation

Monitoring Recommendations

  • Enable kernel audit logging for traffic control subsystem operations
  • Configure alerting on unexpected privilege escalation events, particularly those following network-related system calls
  • Review system logs for unusual cls_route filter manipulation activity
  • Implement file integrity monitoring on critical system binaries that may be modified post-exploitation

How to Mitigate CVE-2022-2588

Immediate Actions Required

  • Apply kernel security updates from your distribution vendor immediately
  • Restrict unprivileged user namespace creation by setting kernel.unprivileged_userns_clone=0 if not required
  • Limit CAP_NET_ADMIN capability to trusted users and processes only
  • Consider using kernel lockdown mode on sensitive systems to prevent runtime kernel modifications

Patch Information

Patches for this vulnerability have been released through the Linux kernel mainline and backported to affected distribution kernels. Canonical has released multiple Ubuntu Security Notices addressing this vulnerability:

  • Ubuntu Security Notice USN-5557-1
  • Ubuntu Security Notice USN-5560-1
  • Ubuntu Security Notice USN-5562-1
  • Ubuntu Security Notice USN-5564-1
  • Ubuntu Security Notice USN-5565-1

The official patch discussion can be found in the Kernel Mailing List Discussion. Additional details are available in the Zero Day Initiative Advisory ZDI-22-1117.

Workarounds

  • Disable the cls_route module if not required: modprobe -r cls_route and blacklist it in /etc/modprobe.d/
  • Restrict unprivileged user namespace creation to prevent attackers from obtaining necessary capabilities
  • Apply network namespace restrictions using seccomp or AppArmor profiles for sensitive applications
  • Implement mandatory access control policies to limit traffic control operations to authorized processes only
bash
# Disable unprivileged user namespaces to limit attack surface
echo "kernel.unprivileged_userns_clone=0" >> /etc/sysctl.conf
sysctl -p

# Blacklist cls_route module if not needed
echo "blacklist cls_route" >> /etc/modprobe.d/blacklist-cls_route.conf
modprobe -r cls_route

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 Probability54.31%

  • 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

  • CWE-415
  • Technical References
  • MITRE CVE Database Entry

  • GitHub PoC for CVE-2022-2588

  • Ubuntu Security Notice USN-5557-1

  • Ubuntu Security Notice USN-5560-1

  • Ubuntu Security Notice USN-5560-2

  • Ubuntu Security Notice USN-5562-1

  • Ubuntu Security Notice USN-5564-1

  • Ubuntu Security Notice USN-5565-1

  • Ubuntu Security Notice USN-5566-1

  • Ubuntu Security Notice USN-5567-1

  • Ubuntu Security Notice USN-5582-1

  • Ubuntu Security Notice USN-5588-1

  • OpenWall OSS-Security Post

  • Zero Day Initiative Advisory ZDI-22-1117
  • Vendor Resources
  • Kernel Mailing List Discussion
  • Related CVEs
  • CVE-2026-23462: Linux Kernel Use-After-Free Vulnerability

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

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

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