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-27943

CVE-2022-27943: GNU GCC Denial of Service Vulnerability

CVE-2022-27943 is a denial of service vulnerability in GNU GCC 11.2 affecting libiberty/rust-demangle.c, allowing stack consumption attacks. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-27943 Overview

A stack consumption vulnerability exists in the libiberty/rust-demangle.c component of GNU GCC 11.2. The flaw resides in the demangle_const function and can be triggered when processing specially crafted input, as demonstrated through the nm-new utility. This vulnerability allows an attacker to cause a denial of service condition through excessive stack consumption.

Critical Impact

Attackers can craft malicious input that triggers uncontrolled recursion in the Rust demangling functionality, leading to stack exhaustion and application crashes.

Affected Products

  • GNU GCC 11.2
  • Fedora 36

Discovery Timeline

  • 2022-03-26 - CVE-2022-27943 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-27943

Vulnerability Analysis

The vulnerability is classified as CWE-674 (Uncontrolled Recursion), which occurs when the demangle_const function in libiberty/rust-demangle.c processes certain input patterns without adequate recursion depth controls. When parsing Rust-mangled symbols, the demangler can enter a recursive call pattern that consumes stack memory until the process runs out of stack space. This condition is exploitable through tools that invoke the demangling functionality, such as nm-new, when processing maliciously crafted object files or symbol names.

The attack requires local access and user interaction to open or process a malicious file. While the vulnerability does not lead to data confidentiality or integrity impacts, it can cause complete denial of service to the affected application.

Root Cause

The root cause is uncontrolled recursion in the demangle_const function. The function lacks proper bounds checking on recursion depth when processing nested or deeply structured Rust-mangled symbol names. This allows specially crafted input to trigger excessive recursive calls, ultimately exhausting the available stack space and crashing the application.

Attack Vector

The attack vector is local, requiring an attacker to either provide a malicious file for processing or trick a user into opening a crafted binary or object file with a tool that uses the libiberty demangling functionality. The vulnerability can be triggered through utilities like nm, objdump, or other binutils that process symbol names. An attacker could embed malicious symbol names in object files that, when processed, cause stack exhaustion.

The vulnerability mechanism involves recursive parsing of specially constructed Rust-mangled names. When the demangle_const function encounters certain patterns, it recursively calls itself without adequate depth limiting, causing the call stack to grow until system limits are reached.

Detection Methods for CVE-2022-27943

Indicators of Compromise

  • Unexpected crashes of binutils tools (nm, objdump, addr2line) when processing object files
  • Segmentation faults related to stack overflow in processes using libiberty
  • Abnormal memory consumption patterns in development toolchains
  • Core dumps indicating stack exhaustion in demangling functions

Detection Strategies

  • Monitor for crashes in development toolchains with stack-related error messages
  • Implement resource limits (ulimit) on processes that handle untrusted binary files
  • Use application crash monitoring to detect patterns of stack exhaustion
  • Deploy process sandboxing for tools processing untrusted input

Monitoring Recommendations

  • Enable crash reporting and analysis for development environment tools
  • Monitor system logs for repeated segmentation faults in binutils processes
  • Track unusual resource consumption in build and analysis pipelines
  • Review any automated processing of external or untrusted binary artifacts

How to Mitigate CVE-2022-27943

Immediate Actions Required

  • Update GNU GCC and binutils to the latest available versions
  • Restrict processing of untrusted object files and binaries
  • Apply stack size limits to processes handling potentially malicious input
  • Review the GCC Bug Report #105039 for specific patch information

Patch Information

The vulnerability has been tracked in the GNU GCC Bugzilla system. System administrators should consult their distribution's package repositories for updated versions. Fedora users should review the Fedora Package Announcement for patched packages. Additional technical details are available in the Sourceware Bug Report #28995.

Workarounds

  • Set strict stack size limits using ulimit -s before running tools that process untrusted files
  • Sandbox binutils operations using containerization or process isolation
  • Avoid processing untrusted or unverified object files with vulnerable versions
  • Use alternative demangling tools that implement recursion depth limits
bash
# Configuration example
# Set stack size limit to prevent complete system resource exhaustion
ulimit -s 8192

# Run nm with limited resources on untrusted files
ulimit -s 8192 && nm suspicious_file.o

# Alternative: Use timeout to limit execution time
timeout 30s nm suspicious_file.o

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGnu Gcc

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Technical References
  • Fedora Package Announcement

  • Sourceware Bug Report #28995
  • Vendor Resources
  • GCC Bug Report #105039
  • Related CVEs
  • CVE-2023-4039: GNU GCC Buffer Overflow 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