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-2025-66442

CVE-2025-66442: Mbed TLS Timing Side-Channel Vulnerability

CVE-2025-66442 is a compiler-induced timing side-channel flaw in Mbed TLS affecting RSA and CBC/ECB decryption with LLVM optimization. This article covers technical details, affected versions, and mitigation steps.

Published: April 2, 2026

CVE-2025-66442 Overview

CVE-2025-66442 is a timing side channel vulnerability affecting Mbed TLS through version 4.0.0 and TF-PSA-Crypto through version 1.0.0. The vulnerability is triggered by a compiler-induced timing side channel that occurs during RSA and CBC/ECB decryption operations when compiled with LLVM's select-optimize feature. This side channel attack allows local attackers to potentially extract sensitive cryptographic information by analyzing timing variations in decryption operations.

Critical Impact

Local attackers with access to timing information may extract cryptographic keys or sensitive data from RSA and CBC/ECB decryption operations when applications are compiled with vulnerable LLVM optimization settings.

Affected Products

  • Mbed TLS through version 4.0.0
  • TF-PSA-Crypto through version 1.0.0
  • Applications compiled with LLVM's select-optimize feature using these libraries

Discovery Timeline

  • April 1, 2026 - CVE-2025-66442 published to NVD
  • April 1, 2026 - Last updated in NVD database

Technical Details for CVE-2025-66442

Vulnerability Analysis

This vulnerability represents a timing side channel attack (CWE-385: Covert Timing Channel) that arises from compiler optimization behavior rather than flaws in the cryptographic implementation itself. When Mbed TLS or TF-PSA-Crypto code is compiled using LLVM with the select-optimize feature enabled, the compiler transforms constant-time cryptographic operations into variable-time operations.

Cryptographic libraries like Mbed TLS are designed to execute in constant time to prevent timing attacks, which measure execution time differences to deduce secret information. The select-optimize optimization pass in LLVM can inadvertently convert carefully crafted constant-time code into branching structures that execute in variable time depending on secret data values.

The vulnerability specifically impacts RSA decryption and CBC/ECB block cipher decryption modes, where timing variations can reveal information about private keys or plaintext data. This attack requires local access to measure precise timing information but does not require user interaction or special privileges.

Root Cause

The root cause lies in LLVM's select-optimize compiler pass, which transforms select instructions into conditional branches for performance optimization. While this optimization can improve general code performance, it breaks the constant-time guarantees that cryptographic code relies upon for security. The Mbed TLS library's defensive coding practices to ensure constant-time execution are circumvented at the compiler level, creating exploitable timing variations in RSA operations and CBC/ECB decryption routines.

Attack Vector

The attack requires local access to the target system to measure precise timing information from cryptographic operations. An attacker would need to:

  1. Position themselves on the same system or have access to precise timing measurements of the target process
  2. Trigger multiple RSA or CBC/ECB decryption operations with chosen or known ciphertexts
  3. Measure timing variations across multiple operations to statistically extract information about the secret key or plaintext
  4. Apply cryptanalytic techniques to reconstruct sensitive cryptographic material from the observed timing data

This side channel attack does not require authentication or special privileges, but the local access requirement and high attack complexity limit its practical exploitability in many deployment scenarios.

Detection Methods for CVE-2025-66442

Indicators of Compromise

  • Unusual patterns of cryptographic operation invocations from untrusted processes
  • Processes attempting to measure timing of TLS/cryptographic operations with high precision
  • Evidence of high-resolution timing system calls (clock_gettime, rdtsc) correlated with cryptographic library usage
  • Memory access patterns consistent with timing side channel exploitation techniques

Detection Strategies

  • Monitor for applications using vulnerable Mbed TLS or TF-PSA-Crypto versions compiled with LLVM
  • Audit compiler flags used in building cryptographic libraries for the presence of select-optimize optimizations
  • Review build configurations to identify LLVM-compiled binaries using affected library versions
  • Implement binary analysis to detect non-constant-time patterns in cryptographic code paths

Monitoring Recommendations

  • Enable logging for cryptographic operation timing anomalies
  • Monitor for unusual process behavior attempting to measure execution timing
  • Implement software composition analysis to track Mbed TLS and TF-PSA-Crypto versions across your environment
  • Review compiler toolchain configurations in CI/CD pipelines for vulnerable optimization settings

How to Mitigate CVE-2025-66442

Immediate Actions Required

  • Upgrade Mbed TLS to a patched version as released by the maintainers
  • Upgrade TF-PSA-Crypto to a patched version addressing this vulnerability
  • Review and modify compiler flags to disable LLVM's select-optimize feature for cryptographic code
  • Recompile affected applications with safe compiler settings or patched library versions

Patch Information

The Mbed TLS project has released security updates addressing this vulnerability. Refer to the MbedTLS Advisory 2026-03 for detailed patch information. Updated releases are available through the GitHub MbedTLS Releases page and GitHub TF-PSA-Crypto Releases page. Review the MbedTLS Security Advisories documentation for complete remediation guidance.

Workarounds

  • Disable LLVM's select-optimize pass when compiling Mbed TLS or TF-PSA-Crypto by using appropriate compiler flags
  • Use an alternative compiler (GCC) that does not exhibit this behavior for building cryptographic components
  • Implement application-level isolation to prevent local timing measurements by untrusted processes
  • Consider hardware-based timing attack mitigations where available on target platforms
bash
# Configuration example - Disable select-optimize when compiling with LLVM/Clang
# Add these flags to your build configuration
export CFLAGS="-mllvm -select-optimize=false"

# When using CMake with Mbed TLS
cmake -DCMAKE_C_FLAGS="-mllvm -select-optimize=false" ..

# Verify compiler is not applying select-optimize
clang --version
# Rebuild cryptographic libraries with updated flags

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechMbed Tls

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-385
  • Technical References
  • GitHub TF-PSA-Crypto Releases

  • GitHub MbedTLS Releases

  • MbedTLS Security Advisories

  • MbedTLS Advisory 2026-03
  • Related CVEs
  • CVE-2026-34871: Mbed TLS PRNG Seed Vulnerability

  • CVE-2026-34872: Mbed TLS FFDH Information Disclosure Flaw

  • CVE-2026-34877: Mbed TLS RCE Vulnerability

  • CVE-2026-34876: Mbed TLS Buffer Overflow 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