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

CVE-2022-24122: Linux Kernel Privilege Escalation Bug

CVE-2022-24122 is a privilege escalation vulnerability in the Linux kernel affecting versions 5.14 through 5.16.4. This use-after-free flaw enables attackers to gain elevated privileges. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 11, 2026

CVE-2022-24122 Overview

CVE-2022-24122 is a use-after-free vulnerability in the Linux kernel's kernel/ucount.c affecting versions 5.14 through 5.16.4. When unprivileged user namespaces are enabled, a ucounts object can outlive its namespace, creating a use-after-free condition that allows local attackers to escalate privileges on vulnerable systems.

Critical Impact

Local attackers with low privileges can exploit this use-after-free vulnerability to gain elevated privileges on Linux systems with unprivileged user namespaces enabled, potentially leading to full system compromise.

Affected Products

  • Linux Kernel versions 5.14 through 5.16.4
  • NetApp H-Series firmware (H410c, H300s, H500s, H700s, H300e, H500e, H700e, H410s)
  • Fedora 34 and Fedora 35

Discovery Timeline

  • 2022-01-29 - CVE-2022-24122 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24122

Vulnerability Analysis

The vulnerability exists in the user namespace accounting subsystem (kernel/ucount.c) of the Linux kernel. This use-after-free condition occurs because the ucounts object, which tracks resource usage within user namespaces, can persist beyond the lifetime of its associated namespace. When unprivileged user namespaces are enabled (a common configuration in modern Linux distributions), this creates a dangerous race condition where freed memory associated with a destroyed namespace can be subsequently accessed through a dangling ucounts reference.

The exploitation requires local access and low privileges, but does not require user interaction. An attacker can manipulate the timing of namespace creation and destruction to trigger the use-after-free condition, potentially corrupting kernel memory structures. This memory corruption can then be leveraged to overwrite critical kernel data structures, ultimately enabling privilege escalation from an unprivileged user to root.

Root Cause

The root cause is a missing reference count increment on the user namespace when creating new ucounts objects. Without proper reference counting, the namespace can be destroyed while ucounts objects still hold references to it. The fix addresses this by adding a get_user_ns() call when creating new ucounts entries, ensuring the namespace cannot be freed while ucounts objects reference it.

Attack Vector

The attack vector is local, requiring an attacker to have low-privilege access to a system running a vulnerable Linux kernel version with unprivileged user namespaces enabled. The attacker creates and manipulates user namespaces to trigger the race condition between namespace destruction and ucounts access. By carefully timing these operations, the attacker can cause the kernel to access freed memory, enabling arbitrary code execution in kernel context.

c
 		kfree(new);
 		} else {
 			hlist_add_head(&new->node, hashent);
+			get_user_ns(new->ns);
 			spin_unlock_irq(&ucounts_lock);
 			return new;
 		}

Source: GitHub Linux Commit Entry

The patch adds get_user_ns(new->ns) to properly increment the reference count on the namespace, preventing it from being freed while the ucounts object still references it.

Detection Methods for CVE-2022-24122

Indicators of Compromise

  • Unusual kernel crash logs or oops messages related to kernel/ucount.c or user namespace operations
  • Unexpected privilege escalation events from low-privilege user accounts
  • Abnormal user namespace creation and destruction patterns in audit logs
  • Memory corruption signatures in kernel crash dumps referencing ucounts structures

Detection Strategies

  • Monitor for processes creating rapid sequences of user namespaces followed by quick destruction
  • Implement kernel-level monitoring using tools like eBPF to detect unusual ucounts object access patterns
  • Review system logs for kernel warnings related to reference counting errors in namespace handling
  • Deploy endpoint detection solutions capable of identifying privilege escalation attempts

Monitoring Recommendations

  • Enable kernel auditing for namespace-related syscalls (clone, unshare, setns with namespace flags)
  • Configure SentinelOne agents to monitor for behavioral patterns consistent with namespace-based exploitation
  • Implement alerting for unexpected root-level process spawning from non-privileged user contexts
  • Monitor for suspicious kernel module loading or memory manipulation attempts following namespace operations

How to Mitigate CVE-2022-24122

Immediate Actions Required

  • Update Linux kernel to version 5.16.5 or later, which contains the security fix
  • If immediate patching is not possible, consider disabling unprivileged user namespaces as a temporary mitigation
  • Apply vendor-specific patches from NetApp and Fedora as applicable to your environment
  • Restrict local access to systems running vulnerable kernel versions

Patch Information

The vulnerability has been addressed in the upstream Linux kernel. The fix adds proper reference counting to ensure user namespaces cannot be freed while ucounts objects still reference them. Patches are available through:

  • Linux Kernel Commit Update
  • GitHub Linux Commit Entry
  • NetApp Security Advisory
  • Fedora package updates available via Fedora Package Announcements

Workarounds

  • Disable unprivileged user namespaces by setting the kernel parameter kernel.unprivileged_userns_clone=0
  • Restrict access to namespace-related system calls using seccomp profiles for containerized workloads
  • Implement mandatory access control policies (SELinux, AppArmor) to limit namespace creation capabilities
  • Apply defense-in-depth measures by limiting local user access to affected systems
bash
# Disable unprivileged user namespaces (temporary workaround)
echo 0 > /proc/sys/kernel/unprivileged_userns_clone

# Make the change persistent across reboots
echo "kernel.unprivileged_userns_clone = 0" >> /etc/sysctl.d/99-disable-userns.conf
sysctl --system

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.19%

  • 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
  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Openwall OSS-Security Discussion
  • Vendor Resources
  • Linux Kernel Commit Update

  • GitHub Linux Commit Entry
  • Related CVEs
  • CVE-2026-31430: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31443: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31463: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31459: Linux Kernel Privilege Escalation Flaw
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