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

CVE-2021-32256: GNU Binutils Buffer Overflow Vulnerability

CVE-2021-32256 is a stack-overflow buffer overflow in GNU Binutils 2.36 affecting the rust-demangle.c component in libiberty. This vulnerability can compromise system stability and security through memory corruption.

Published: February 25, 2026

CVE-2021-32256 Overview

A stack overflow vulnerability exists in GNU libiberty, as distributed in GNU Binutils 2.36. The vulnerability occurs in the demangle_type function within rust-demangle.c, which handles demangling of Rust symbol names. When processing specially crafted input, the function can be exploited to cause a stack overflow condition, leading to a denial of service.

Critical Impact

This stack overflow vulnerability allows remote attackers to cause denial of service through crafted input processed by the Rust demangling functionality in GNU Binutils.

Affected Products

  • GNU Binutils 2.36

Discovery Timeline

  • 2023-07-18 - CVE CVE-2021-32256 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-32256

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-bounds Write), specifically manifesting as a stack overflow within the Rust symbol demangling functionality. The demangle_type function in rust-demangle.c fails to properly handle certain edge cases in mangled Rust symbol names, leading to excessive recursion or unbounded stack allocation.

The vulnerability is exploitable via network-based attack vectors, though user interaction is required. An attacker could craft malicious input that, when processed by applications using GNU Binutils' demangling capabilities, triggers the stack overflow condition. This results in application crashes and denial of service scenarios.

Root Cause

The root cause lies in improper bounds checking within the demangle_type function when processing Rust mangled names. The function handles type demangling recursively, and crafted input can cause the recursion to exceed safe stack limits. This is a classic example of insufficient validation of input complexity before performing recursive operations, a common pattern in demangling and parsing code.

Attack Vector

The attack vector is network-based, requiring an attacker to deliver malformed Rust symbol data to a target application that utilizes GNU Binutils for symbol demangling. Common attack scenarios include:

  • Processing malicious binary files or object files containing crafted symbol tables
  • Parsing untrusted debug information or symbol dumps
  • Applications that accept user-supplied input for symbol demangling operations

The exploitation does not require elevated privileges but does require user interaction, such as opening a malicious file or processing attacker-controlled data.

The vulnerability occurs when the demangle_type function processes deeply nested or recursive type structures in Rust mangled names. The function fails to implement adequate recursion depth limits, allowing stack exhaustion. For detailed technical analysis, see the Launchpad Bug Report.

Detection Methods for CVE-2021-32256

Indicators of Compromise

  • Unexpected crashes in applications utilizing GNU Binutils demangling functions
  • Stack overflow or segmentation fault errors in processes handling binary analysis or debugging
  • Repeated application restarts when processing specific binary files or symbol data

Detection Strategies

  • Monitor for abnormal process termination patterns in applications using GNU Binutils libraries
  • Implement file integrity monitoring for binutils components to detect unauthorized modifications
  • Deploy application crash analysis tools to identify stack overflow patterns indicative of exploitation attempts

Monitoring Recommendations

  • Enable core dump analysis for applications processing untrusted binary files
  • Implement logging for demangling operations that process external or user-provided data
  • Set up alerts for repeated application crashes involving libiberty or related GNU Binutils components

How to Mitigate CVE-2021-32256

Immediate Actions Required

  • Upgrade GNU Binutils to a patched version newer than 2.36
  • Restrict processing of untrusted binary files or symbol data until patches are applied
  • Implement input validation for any user-provided data that undergoes symbol demangling

Patch Information

The vulnerability affects GNU Binutils version 2.36. Users should upgrade to a newer version of GNU Binutils that includes the fix for this stack overflow issue. Review the Launchpad Bug Report for distribution-specific patch information. Additional vendor guidance is available in the NetApp Security Advisory.

Workarounds

  • Avoid processing binary files or symbol data from untrusted sources
  • Implement process sandboxing or resource limits (ulimit) to contain stack overflow impacts
  • Use alternative demangling tools that are not affected by this vulnerability when processing untrusted input
bash
# Configuration example: Set stack size limits to mitigate impact
ulimit -s 8192

# Alternatively, use systemd service limits
# Add to service unit file:
# [Service]
# LimitSTACK=8388608

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGnu Binutils

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • NetApp Security Advisory
  • Vendor Resources
  • Launchpad Bug Report
  • Related CVEs
  • CVE-2026-3442: GNU Binutils Buffer Overflow Vulnerability

  • CVE-2026-3441: GNU Binutils Buffer Overflow Vulnerability

  • CVE-2025-5244: GNU Binutils Buffer Overflow Vulnerability

  • CVE-2025-5245: GNU Binutils 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