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-2021-3864

CVE-2021-3864: Linux Kernel Privilege Escalation Flaw

CVE-2021-3864 is a privilege escalation vulnerability in Linux Kernel involving improper dumpable flag handling in SUID binaries. This post covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-3864 Overview

A privilege escalation vulnerability exists in the Linux kernel related to improper handling of the dumpable flag when certain SUID binaries execute descendant processes. The flaw occurs when a SUID binary sets the real UID equal to the effective UID, and the real GID equal to the effective GID. Under these conditions, the descendant process inherits a dumpable value of 1, which can be exploited by an unprivileged local user to place core dumps into root-owned directories when core_pattern is configured with a relative path value.

Critical Impact

An unprivileged local user with access to an eligible root SUID binary can exploit this vulnerability to place core dumps into root-owned directories, potentially resulting in escalation of privileges on the affected system.

Affected Products

  • Linux Kernel (all versions prior to fix)
  • Debian Linux 10.0 and 11.0
  • Red Hat Enterprise Linux 6.0, 7.0, and 9.0

Discovery Timeline

  • 2022-08-26 - CVE CVE-2021-3864 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3864

Vulnerability Analysis

This vulnerability is classified as a Privilege Escalation issue stemming from Improper Access Control (CWE-284). The flaw resides in the Linux kernel's handling of the dumpable process attribute when SUID binaries execute child processes.

The dumpable flag is a kernel security mechanism that controls whether a process can be traced or have its memory dumped. Normally, when a SUID binary executes, the dumpable flag should be cleared to prevent unprivileged users from accessing privileged memory contents through core dumps.

However, when a SUID binary sets its real UID to match its effective UID (and similarly for GID), the descendant processes incorrectly inherit a dumpable value of 1. This means the child process can generate core dumps, and if the core_pattern kernel parameter is set to a relative path, these dumps are written to the current working directory with the UID:GID permissions of the process.

An attacker can leverage this behavior by manipulating the current working directory to a root-owned location before triggering a crash in the descendant process. The resulting core dump could contain sensitive data or be used as a stepping stone for further privilege escalation attacks.

Root Cause

The root cause lies in the kernel's logic for handling the dumpable flag inheritance when SUID binaries perform UID/GID equalization. When a SUID binary sets real UID == effective UID and real GID == effective GID, the kernel fails to properly restrict the dumpable attribute on descendant processes. This oversight allows core dumps to be generated in unintended locations, bypassing the security controls designed to prevent unprivileged users from accessing privileged process memory.

Attack Vector

This is a local attack vector requiring the attacker to have:

  1. Unprivileged local access to the target system
  2. Access to an eligible root SUID binary that performs UID/GID equalization
  3. The ability to influence the current working directory
  4. A core_pattern kernel parameter configured with a relative path

The attacker triggers the SUID binary to spawn a descendant process, manipulates the working directory to a root-owned location, and then causes the descendant to crash. The resulting core dump is written to the target directory with elevated permissions, potentially enabling further exploitation.

The attack flow involves executing the vulnerable SUID binary from a carefully chosen directory, causing the descendant process to crash, and exploiting the incorrectly-placed core dump for privilege escalation. Detailed technical information can be found in the Red Hat Bug Report #2015046 and the Openwall OSS Security Mailing List discussion.

Detection Methods for CVE-2021-3864

Indicators of Compromise

  • Unexpected core dump files appearing in root-owned directories such as /root, /etc, or other privileged locations
  • Core dump files with unexpected ownership or permission patterns in sensitive directories
  • Unusual execution patterns of SUID binaries followed by process crashes
  • Audit logs showing SUID binary execution with subsequent child process termination signals

Detection Strategies

  • Monitor for core dump file creation in root-owned or sensitive system directories using file integrity monitoring
  • Implement audit rules to track SUID binary execution and subsequent process terminations using auditd
  • Review core_pattern kernel parameter configuration for relative path values that could be exploited
  • Deploy endpoint detection solutions to identify suspicious patterns of SUID binary exploitation

Monitoring Recommendations

  • Configure auditd rules to monitor execution of SUID binaries: -a always,exit -F path=/path/to/suid -F perm=x -k suid_exec
  • Enable monitoring for file creation events in critical system directories
  • Implement alerting for unexpected core dump generation, especially in privileged directories
  • Regularly audit the core_pattern setting via /proc/sys/kernel/core_pattern

How to Mitigate CVE-2021-3864

Immediate Actions Required

  • Apply kernel patches from your distribution vendor as soon as they become available
  • Configure core_pattern to use an absolute path (e.g., /var/crash/%e-%p.core) to prevent exploitation
  • Audit SUID binaries on the system and remove unnecessary SUID permissions where possible
  • Implement additional access controls and monitoring on sensitive directories

Patch Information

Kernel patches addressing this vulnerability have been discussed on the Linux kernel mailing list. Users should apply updates from their respective distribution vendors:

  • Red Hat: Review the Red Hat CVE-2021-3864 Advisory for patches and guidance
  • Debian: Check the Debian Security Tracker CVE-2021-3864 for updated packages
  • Upstream: Monitor the Kernel Mailing List Discussion for patch details

Workarounds

  • Set core_pattern to an absolute path to prevent core dumps from being written to attacker-controlled directories
  • Consider setting fs.suid_dumpable=0 via sysctl to disable core dumps for SUID processes entirely
  • Restrict access to SUID binaries using file permissions or SELinux/AppArmor policies
  • Enable kernel hardening options such as kernel.core_uses_pid=1 for additional protection
bash
# Configuration example - Mitigate by setting absolute core_pattern
# Add to /etc/sysctl.conf or /etc/sysctl.d/99-security.conf

# Set core dump pattern to absolute path
kernel.core_pattern = /var/crash/core.%e.%p.%t

# Disable core dumps for SUID programs (most restrictive)
fs.suid_dumpable = 0

# Apply changes immediately
# 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
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.57%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-284

  • NVD-CWE-noinfo
  • Technical References
  • Red Hat CVE-2021-3864 Advisory

  • Kernel Mailing List Discussion

  • Kernel Mailing List Discussion

  • Kernel Mailing List Discussion

  • Debian Security Tracker CVE-2021-3864

  • Openwall OSS Security Mailing List
  • Vendor Resources
  • Red Hat Bug Report #2015046
  • 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