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
    • 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-44732

CVE-2021-44732: Arm Mbed TLS Use-After-Free Vulnerability

CVE-2021-44732 is a use-after-free vulnerability in Arm Mbed TLS caused by double free errors in out-of-memory conditions. This post covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-44732 Overview

CVE-2021-44732 is a critical double free vulnerability affecting Mbed TLS, a lightweight TLS/SSL library designed for embedded systems and IoT devices. The vulnerability exists in versions prior to 3.0.1 and can be triggered during certain out-of-memory conditions, specifically demonstrated through an mbedtls_ssl_set_session() failure. This memory corruption flaw could allow remote attackers to execute arbitrary code or cause denial of service conditions on vulnerable systems.

Critical Impact

This double free vulnerability in Mbed TLS can be exploited remotely without authentication, potentially leading to arbitrary code execution, memory corruption, or system crashes in embedded devices and applications using the affected TLS library.

Affected Products

  • Arm Mbed TLS versions before 2.16.12
  • Arm Mbed TLS versions 2.17.x through 2.27.x (fixed in 2.28.0)
  • Arm Mbed TLS version 3.0.0 (including 3.0.0-preview1)
  • Debian Linux 10.0

Discovery Timeline

  • December 20, 2021 - CVE-2021-44732 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2021-44732

Vulnerability Analysis

The vulnerability is classified as CWE-415 (Double Free), a dangerous memory corruption issue that occurs when a program attempts to free the same memory location twice. In Mbed TLS, this flaw manifests during SSL/TLS session handling when specific out-of-memory conditions arise.

When mbedtls_ssl_set_session() fails due to memory allocation issues, the library's error handling path improperly manages internal memory structures. This results in the same memory being freed twice during cleanup operations, corrupting the heap allocator's metadata and potentially allowing an attacker to gain control over subsequent memory allocations.

The network-accessible nature of this vulnerability is particularly concerning for embedded systems and IoT devices that rely on Mbed TLS for secure communications. An attacker capable of triggering specific memory pressure conditions during TLS session establishment could exploit this flaw remotely.

Root Cause

The root cause stems from improper memory management in the session handling code path. When mbedtls_ssl_set_session() encounters an allocation failure, the error handling logic does not properly track which memory regions have already been freed. This leads to a scenario where cleanup code attempts to release memory that has already been deallocated, resulting in a double free condition.

The flaw specifically affects the SSL context initialization and session restoration functionality, where multiple memory allocations occur for session tickets, peer certificates, and other TLS session state data.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker could exploit this vulnerability by:

  1. Establishing a TLS connection with a vulnerable Mbed TLS server or client
  2. Manipulating the connection to induce memory pressure or specific allocation patterns
  3. Triggering the mbedtls_ssl_set_session() failure path through crafted session data
  4. Exploiting the resulting heap corruption for code execution or denial of service

The vulnerability mechanism involves improper cleanup during out-of-memory error handling in the session management functions. When memory allocation fails during session restoration, the library's error path incorrectly frees memory structures that may have already been deallocated or not yet allocated, leading to heap metadata corruption. Technical details are available in the mbed TLS Security Advisory 2021-12.

Detection Methods for CVE-2021-44732

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using Mbed TLS during TLS session operations
  • Memory corruption errors in system logs associated with TLS-enabled services
  • Unusual heap allocation patterns detected by memory debugging tools (Valgrind, AddressSanitizer)
  • Application instability following TLS connection attempts under memory pressure

Detection Strategies

  • Deploy SentinelOne agents to detect and prevent exploitation attempts targeting memory corruption vulnerabilities in TLS libraries
  • Enable AddressSanitizer (ASan) during development and testing to catch double free conditions
  • Implement runtime memory corruption detection through heap canaries and guard pages
  • Monitor application behavior for signs of heap corruption following TLS operations

Monitoring Recommendations

  • Configure SentinelOne Singularity Platform to alert on suspicious memory access patterns in processes using Mbed TLS
  • Enable verbose logging for TLS session operations to identify potential exploitation attempts
  • Monitor system memory metrics for anomalous allocation/deallocation patterns
  • Set up alerts for application crashes related to memory corruption in TLS components

How to Mitigate CVE-2021-44732

Immediate Actions Required

  • Upgrade Mbed TLS to version 2.16.12 or later for the 2.16.x LTS branch
  • Upgrade Mbed TLS to version 2.28.0 or later for the 2.x branch
  • Upgrade Mbed TLS to version 3.1.0 or later for the 3.x branch
  • Review and update all embedded devices and applications using vulnerable Mbed TLS versions
  • Apply Debian security updates for affected Debian Linux 10.0 systems

Patch Information

Arm has released patched versions addressing this double free vulnerability. The fixes are available in the following releases:

  • Mbed TLS v2.16.12 - For users on the 2.16.x LTS branch
  • Mbed TLS v2.28.0 - For users on the 2.x development branch
  • Mbed TLS v3.1.0 - For users on the 3.x branch

Debian has also released security updates through the Debian LTS Announcement. Consult the official mbed TLS Security Advisory 2021-12 for complete details.

Workarounds

  • Implement network-level controls to limit exposure of Mbed TLS-based services while patching is in progress
  • Deploy memory protection mechanisms (ASLR, stack canaries) to reduce exploitation success likelihood
  • Consider temporarily disabling session resumption features if business requirements allow
  • Monitor systems closely for signs of exploitation while working on permanent remediation
bash
# Verify installed Mbed TLS version
pkg-config --modversion mbedtls

# Check linked library version in applications
ldd /path/to/application | grep mbedtls

# Update Mbed TLS on Debian-based systems
apt-get update && apt-get install --only-upgrade libmbedtls-dev libmbedtls12

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/TechArm Mbed Tls

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.93%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-415
  • Technical References
  • Gentoo Bug Report

  • GitHub mbedtls Releases

  • GitHub mbedtls Release v2.16.12

  • GitHub mbedtls Release v2.28.0

  • GitHub mbedtls Release v3.1.0

  • Debian LTS Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • mbed TLS Security Advisory 2021-12
  • Related CVEs
  • CVE-2025-48965: Arm Mbed TLS Use-After-Free Vulnerability

  • CVE-2025-47917: Arm Mbed TLS Use-After-Free Vulnerability

  • CVE-2025-52497: Arm Mbed TLS Buffer Overflow Vulnerability

  • CVE-2025-52496: Arm Mbed TLS Race Condition Vulnerability
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