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
    • 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-2021-23134

CVE-2021-23134: Linux Kernel Privilege Escalation Flaw

CVE-2021-23134 is a use-after-free vulnerability in Linux Kernel's NFC sockets that enables local privilege escalation. This article covers the technical details, affected kernel versions, security impact, and patches.

Published: February 25, 2026

CVE-2021-23134 Overview

A Use After Free vulnerability exists in the NFC (Near Field Communication) sockets implementation within the Linux Kernel before version 5.12.4. This memory corruption flaw allows local attackers to elevate their privileges on affected systems. In typical configurations, exploitation requires a privileged local user with the CAP_NET_RAW capability, which limits the attack surface but still presents a significant risk in multi-user environments or containerized workloads where privilege boundaries are critical.

Critical Impact

Local privilege escalation through Use After Free in Linux kernel NFC socket handling, potentially allowing attackers to gain root access from a limited privilege account with CAP_NET_RAW capability.

Affected Products

  • Linux Kernel (versions before 5.12.4)
  • Fedora 33 and Fedora 34
  • Debian Linux 9.0

Discovery Timeline

  • May 12, 2021 - CVE-2021-23134 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-23134

Vulnerability Analysis

CVE-2021-23134 is classified as CWE-416 (Use After Free), a memory corruption vulnerability class that occurs when a program continues to use a pointer after the memory it references has been freed. In this case, the vulnerability resides in the NFC socket implementation within the Linux kernel's networking subsystem.

The flaw enables local attackers to achieve privilege escalation by exploiting improper memory management in NFC socket operations. When an NFC socket is closed or released, certain memory structures may be freed while references to them still exist elsewhere in the kernel. A subsequent operation using these dangling pointers can lead to arbitrary memory access or code execution in kernel context.

The local attack vector requires the attacker to already have some level of access to the system. The requirement for CAP_NET_RAW capability in typical configurations provides some mitigation, as this capability is not granted to ordinary users by default. However, in container environments or systems with relaxed capability configurations, this prerequisite may be more easily satisfied.

Root Cause

The root cause of this vulnerability lies in improper lifecycle management of NFC socket structures within the Linux kernel. When NFC sockets are created and associated with various kernel objects, the reference counting or synchronization between socket closure and pending operations is insufficient. This leads to a race condition where memory can be freed while still being referenced by active kernel code paths.

The fix involves proper synchronization and reference counting to ensure that socket-related memory structures are not freed while still in use by any kernel component.

Attack Vector

The attack vector requires local access to the vulnerable system with the CAP_NET_RAW capability. An attacker would need to:

  1. Create an NFC socket using the affected kernel interfaces
  2. Trigger specific socket operations that create dangling references
  3. Time the exploitation to access freed memory before it's reallocated
  4. Use the corrupted memory state to achieve privilege escalation

The vulnerability exploitation requires precise timing and understanding of kernel memory allocation patterns. The attacker's payload would execute in kernel context, allowing complete system compromise including root privilege acquisition.

For detailed technical information about the fix, refer to the Linux Kernel Commit Change which addresses the improper memory handling in NFC socket operations.

Detection Methods for CVE-2021-23134

Indicators of Compromise

  • Unexpected kernel crashes or oops messages related to NFC subsystem or socket operations
  • Suspicious processes with elevated privileges that originated from limited user accounts
  • Audit logs showing unusual CAP_NET_RAW capability usage or NFC socket operations
  • System instability following NFC-related activity on systems that don't typically use NFC functionality

Detection Strategies

  • Monitor kernel logs (dmesg, /var/log/kern.log) for Use After Free or memory corruption errors in the NFC subsystem
  • Implement capability auditing to track processes using CAP_NET_RAW
  • Deploy kernel integrity monitoring solutions to detect unauthorized kernel memory modifications
  • Use Linux Security Modules (LSM) such as SELinux or AppArmor to restrict NFC socket access

Monitoring Recommendations

  • Enable kernel auditing for socket operations, particularly in the AF_NFC address family
  • Configure automated alerting for kernel panic or oops events that reference NFC-related code
  • Monitor for privilege escalation patterns where unprivileged processes suddenly acquire root capabilities
  • Regularly review system capability configurations to ensure CAP_NET_RAW is only granted where necessary

How to Mitigate CVE-2021-23134

Immediate Actions Required

  • Update the Linux kernel to version 5.12.4 or later immediately
  • Review and restrict CAP_NET_RAW capability grants to only essential services and users
  • Disable NFC functionality in the kernel if not required (blacklist nfc in modprobe configuration)
  • Apply vendor-specific patches from Debian, Fedora, or other Linux distributions

Patch Information

The vulnerability has been addressed in Linux kernel version 5.12.4 and later. The fix is available through the official kernel git repository at commit c61760e6940d. Multiple Linux distributions have released security advisories and patches:

  • Debian: Security updates available per Debian LTS Advisory June 2021 #19 and Debian LTS Advisory June 2021 #20
  • Fedora: Updates for Fedora 33 and 34 available via Fedora Package Announcements
  • NetApp: Consult NetApp Security Advisory NTAP-20210625-0007 for affected products

Workarounds

  • Blacklist NFC kernel modules if NFC functionality is not required on the system
  • Remove CAP_NET_RAW capability from containers and unprivileged processes
  • Use seccomp profiles to restrict access to NFC-related system calls
  • Implement network namespace isolation to limit socket access scope
bash
# Configuration example
# Disable NFC kernel modules by blacklisting
echo "blacklist nfc" >> /etc/modprobe.d/blacklist-nfc.conf
echo "blacklist nfc_hci" >> /etc/modprobe.d/blacklist-nfc.conf
echo "blacklist nfc_llcp" >> /etc/modprobe.d/blacklist-nfc.conf

# Unload NFC modules if currently loaded
modprobe -r nfc_llcp nfc_hci nfc 2>/dev/null

# Verify modules are not loaded
lsmod | grep nfc

# Remove CAP_NET_RAW from a specific binary
setcap -r /path/to/binary

# Update kernel packages (Debian/Ubuntu)
apt update && apt upgrade linux-image-$(uname -r)

# Update kernel packages (Fedora/RHEL)
dnf update kernel

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

  • 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 Advisory June 2021 #19

  • Debian LTS Advisory June 2021 #20

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20210625-0007
  • Vendor Resources
  • Linux Kernel Commit Change

  • OpenWall OSS-Security Discussion
  • Related CVEs
  • CVE-2026-31411: Linux Kernel Privilege Escalation Flaw

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

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

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