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

CVE-2021-38604: GNU Glibc Use-After-Free Vulnerability

CVE-2021-38604 is a use-after-free flaw in GNU Glibc's librt component that leads to NULL pointer dereference. This article covers the technical details, affected versions through 2.34, impact, and mitigation.

Published: February 25, 2026

CVE-2021-38604 Overview

CVE-2021-38604 is a NULL pointer dereference vulnerability in the GNU C Library (glibc) through version 2.34. The flaw exists in librt within the file sysdeps/unix/sysv/linux/mq_notify.c, where certain NOTIFY_REMOVED data is mishandled. This vulnerability was introduced as an unintended side effect of the fix for CVE-2021-33574, demonstrating how security patches can sometimes introduce new vulnerabilities.

Critical Impact

Remote attackers can trigger a denial of service condition by causing applications that rely on POSIX message queue notification functionality to crash through a NULL pointer dereference, potentially disrupting critical services across Linux-based infrastructure.

Affected Products

  • GNU glibc (through version 2.34)
  • Fedora 35
  • Oracle Communications Cloud Native Core Binding Support Function 22.1.3
  • Oracle Communications Cloud Native Core Network Function Cloud Native Environment 22.1.0
  • Oracle Communications Cloud Native Core Network Repository Function 22.1.2 and 22.2.0
  • Oracle Communications Cloud Native Core Security Edge Protection Proxy 22.1.1
  • Oracle Communications Cloud Native Core Unified Data Repository 22.2.0
  • Oracle Enterprise Operations Monitor 4.3, 4.4, and 5.0

Discovery Timeline

  • August 12, 2021 - CVE-2021-38604 published to NVD
  • May 30, 2025 - Last updated in NVD database

Technical Details for CVE-2021-38604

Vulnerability Analysis

This vulnerability is classified as CWE-476 (NULL Pointer Dereference). The flaw resides in the message queue notification handling code within librt, a library that provides POSIX real-time extensions. When processing NOTIFY_REMOVED data, the code fails to properly validate pointer state before dereferencing, leading to a crash condition.

The vulnerability can be exploited remotely without authentication or user interaction. When successfully triggered, the NULL pointer dereference causes the affected application to crash, resulting in a denial of service. While this vulnerability does not compromise confidentiality or integrity, it poses a significant availability risk for systems running affected glibc versions, particularly in enterprise environments where continuous service availability is critical.

Root Cause

The root cause of this vulnerability stems from the patch applied to address CVE-2021-33574. During the fix for that vulnerability, changes were made to the mq_notify.c file that inadvertently introduced improper handling of NOTIFY_REMOVED data structures. Specifically, the code path failed to account for scenarios where pointers could be NULL after certain notification removal operations, leading to an unguarded dereference that triggers a segmentation fault.

Attack Vector

The vulnerability is exploitable over the network with low attack complexity. An attacker can craft specific conditions that trigger the NOTIFY_REMOVED code path with malformed or unexpected data states. Since the attack requires no privileges and no user interaction, any network-accessible application using glibc's message queue notification functionality could potentially be targeted. The attack results in application crashes, which in multi-threaded or service-oriented environments can cascade into broader system instability.

The exploitation mechanism involves triggering the vulnerable code path in mq_notify() where the NOTIFY_REMOVED handling occurs. When the notification thread processes removal events, it may encounter a state where expected data structures are NULL, and without proper validation, the subsequent dereference causes the process to terminate abnormally.

Detection Methods for CVE-2021-38604

Indicators of Compromise

  • Unexpected application crashes with segmentation fault signals (SIGSEGV) in processes using message queue notifications
  • Core dumps showing crash location within librt.so or mq_notify related functions
  • Increased frequency of service restarts for applications utilizing POSIX message queues
  • System logs showing repeated process terminations without clear application-level errors

Detection Strategies

  • Monitor for segmentation fault signals in applications known to use glibc message queue functionality
  • Implement crash monitoring and alerting for critical services to detect potential exploitation attempts
  • Use library version scanning tools to identify systems running glibc versions through 2.34 that have not been patched
  • Deploy runtime application self-protection (RASP) solutions capable of detecting NULL pointer dereference attempts

Monitoring Recommendations

  • Enable core dump collection and analysis for applications using librt and message queue notifications
  • Configure system monitoring to alert on abnormal process termination rates
  • Implement application health checks that can detect and report on unexpected restarts
  • Review system logs regularly for patterns consistent with denial of service attempts

How to Mitigate CVE-2021-38604

Immediate Actions Required

  • Update glibc to a patched version that addresses CVE-2021-38604 immediately
  • Prioritize patching for systems running Oracle Communications Cloud Native Core products and Oracle Enterprise Operations Monitor
  • Assess exposure of systems using POSIX message queue functionality to untrusted network traffic
  • Consider implementing network segmentation to limit exposure of vulnerable systems while patches are being deployed

Patch Information

The vulnerability has been addressed through patches committed to the glibc source repository. The relevant fixes can be found in commits 4cc79c217744 and b805aebd4236. For Oracle products, refer to the Oracle CPU July 2022 Security Alert. Fedora users should apply updates as described in the Fedora Package Announcement. Gentoo users should review GLSA 2022-08-24.

Workarounds

  • If immediate patching is not feasible, consider temporarily disabling or limiting access to applications that utilize POSIX message queue notifications
  • Implement application-level restart mechanisms to automatically recover from crashes while patches are being scheduled
  • Deploy network-level controls to restrict access to vulnerable services from untrusted sources
  • Use containerization or sandboxing to limit the impact of potential crashes on overall system stability
bash
# Check current glibc version
ldd --version

# Verify if librt is being used by critical applications
lsof | grep librt.so

# Update glibc on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get upgrade libc6

# Update glibc on RHEL/CentOS systems
sudo yum update glibc

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/TechGnu Glibc

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • TuxCare Blog Vulnerability Analysis

  • Fedora Package Announcement

  • Gentoo GLSA 2022-08-24

  • NetApp Security Advisory NTAP-20210909-0005

  • glibc Commit Change 4cc79c217744

  • glibc Commit Change b805aebd4236
  • Vendor Resources
  • Sourceware Bug Report #28213

  • Oracle CPU July 2022 Security Alert
  • Related CVEs
  • CVE-2023-4813: GNU Glibc Use-After-Free Vulnerability

  • CVE-2023-4806: GNU Glibc Use-After-Free Vulnerability

  • CVE-2021-33574: GNU Glibc Use-After-Free Vulnerability

  • CVE-2020-1752: GNU Glibc 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