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
    • 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-34918

CVE-2022-34918: Linux Kernel Privilege Escalation Flaw

CVE-2022-34918 is a privilege escalation vulnerability in Linux Kernel caused by a type confusion bug in nft_set_elem_init. Local attackers can exploit this to gain root access. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 18, 2026

CVE-2022-34918 Overview

CVE-2022-34918 is a type confusion vulnerability in the Linux kernel's Netfilter subsystem that can lead to local privilege escalation. The vulnerability exists in the nft_set_elem_init function within the nf_tables component, where improper type handling causes a buffer overflow condition. A local attacker with access to an unprivileged user namespace can exploit this flaw to obtain CAP_NET_ADMIN capabilities and ultimately escalate privileges to root access.

This vulnerability is distinct from CVE-2022-32250, another Netfilter-related privilege escalation issue. The flaw can be remediated through a patch applied to nft_setelem_parse_data in net/netfilter/nf_tables_api.c.

Critical Impact

Local privilege escalation to root access via type confusion in Netfilter nf_tables, requiring only unprivileged user namespace access to exploit.

Affected Products

  • Linux Kernel through version 5.18.9
  • Debian Linux 11.0
  • Canonical Ubuntu Linux 14.04 LTS, 16.04 ESM, 18.04 LTS, 20.04 LTS, 22.04 LTS
  • NetApp H300S, H500S, H700S, H410S, H410C (firmware)

Discovery Timeline

  • 2022-07-04 - CVE-2022-34918 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-34918

Vulnerability Analysis

The vulnerability resides in the Netfilter nf_tables subsystem, specifically in how set element initialization handles type information. When processing set elements through nft_set_elem_init, the function fails to properly validate and handle type information, resulting in a type confusion condition. This type confusion subsequently causes a heap-based buffer overflow when the kernel attempts to process malformed data with incorrect type assumptions.

The exploitation path requires the attacker to first obtain CAP_NET_ADMIN capabilities, which can be achieved through access to an unprivileged user namespace. User namespaces allow unprivileged users to create isolated environments with elevated capabilities within that namespace. Once CAP_NET_ADMIN is obtained within a user namespace, the attacker can interact with the Netfilter subsystem and trigger the type confusion bug.

Root Cause

The root cause of this vulnerability is a type confusion bug (CWE-843) in the nft_set_elem_init function. The function improperly handles type validation when parsing data for set elements, allowing an attacker to supply data that the kernel incorrectly interprets. This mismatch between the expected type and the actual type provided leads to out-of-bounds memory operations when the kernel attempts to process the element data based on incorrect size or structure assumptions.

The fix addresses this issue in nft_setelem_parse_data within net/netfilter/nf_tables_api.c by implementing proper type validation before processing set element data.

Attack Vector

The attack requires local access to the target system. The attacker must first create or access an unprivileged user namespace to gain CAP_NET_ADMIN capabilities within that namespace. With these capabilities, the attacker can craft malicious Netfilter table operations that trigger the type confusion in nft_set_elem_init. The resulting buffer overflow can be leveraged to corrupt kernel memory structures, enabling arbitrary code execution in kernel context and ultimately achieving root privileges on the host system.

The attack flow involves:

  1. Creating an unprivileged user namespace
  2. Obtaining CAP_NET_ADMIN within the namespace
  3. Crafting malicious nf_tables operations to trigger type confusion
  4. Exploiting the heap overflow for privilege escalation

For detailed technical analysis and proof-of-concept information, see the RandoriSec Blog on Firewall and the Netfilter Privilege Escalation Exploit on Packet Storm.

Detection Methods for CVE-2022-34918

Indicators of Compromise

  • Unexpected creation of user namespaces by low-privileged users
  • Unusual nf_tables or Netfilter configuration changes from non-root processes
  • Kernel crashes or instability related to netfilter subsystem operations
  • Processes unexpectedly gaining root privileges after interacting with Netfilter

Detection Strategies

  • Monitor for unshare or clone system calls with CLONE_NEWUSER flag from suspicious processes
  • Audit Netfilter/nf_tables operations using Linux audit subsystem with rules targeting nft operations
  • Deploy kernel integrity monitoring to detect unauthorized modifications to kernel memory
  • Use SentinelOne's behavioral analysis to identify privilege escalation patterns following namespace creation

Monitoring Recommendations

  • Enable kernel auditing for network namespace and Netfilter-related system calls
  • Monitor /proc/[pid]/ns/user for unexpected user namespace creation
  • Implement logging for all nftables rule modifications and set operations
  • Configure alerts for processes that transition from unprivileged to root context

How to Mitigate CVE-2022-34918

Immediate Actions Required

  • Apply kernel patches from your Linux distribution immediately
  • Restrict user namespace creation by setting kernel.unprivileged_userns_clone=0 if not required
  • Review and audit systems for signs of exploitation
  • Consider deploying kernel live patches if available for your distribution

Patch Information

The vulnerability is fixed in the upstream Linux kernel. The specific fix is available in the Linux Kernel Commit Update with commit hash 7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6. Distribution-specific patches are available:

  • Debian: Debian Security Advisory DSA-5191
  • Ubuntu: Kernel live patches available via Kernel Live Patch Security Notice LSN-0089-1
  • NetApp: NetApp Security Advisory

Workarounds

  • Disable unprivileged user namespace creation by setting kernel.unprivileged_userns_clone=0 in sysctl configuration
  • Restrict access to the CAP_NET_ADMIN capability through strict namespace policies
  • Implement seccomp filters to block namespace-related syscalls for untrusted applications
  • Use container security policies to prevent namespace escape attempts
bash
# Disable unprivileged user namespaces to mitigate exploitation
echo "kernel.unprivileged_userns_clone=0" >> /etc/sysctl.d/99-disable-userns.conf
sysctl -p /etc/sysctl.d/99-disable-userns.conf

# Verify the setting is applied
sysctl kernel.unprivileged_userns_clone

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 Probability39.06%

  • 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-843
  • Technical References
  • Packet Storm Security Notice

  • Netfilter Privilege Escalation Exploit

  • OpenWall OSS Security Mailing List

  • OpenWall OSS Security Mailing List

  • Netfilter Development Discussion

  • NetApp Security Advisory

  • Debian Security Advisory DSA-5191

  • OpenWall OSS Security Mailing List

  • RandoriSec Blog on Firewall
  • Vendor Resources
  • Linux Kernel Commit Update
  • Related CVEs
  • CVE-2026-31413: Linux Kernel BPF Privilege Escalation

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

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

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