CVE Vulnerabilities

CVE-2025-52496

Compiler Optimization Removal or Modification of Security-critical Code

Published: Jul 04, 2025 | Modified: Nov 03, 2025
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Mbed TLS before 3.6.4 has a race condition in AESNI detection if certain compiler optimizations occur. An attacker may be able to extract an AES key from a multithreaded program, or perform a GCM forgery.

Weakness

The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified.

Affected Software

NameVendorStart VersionEnd Version
Mbed_tlsArm*3.6.4 (excluding)
MbedtlsUbuntudevel*
MbedtlsUbuntuesm-apps/bionic*
MbedtlsUbuntuesm-apps/focal*
MbedtlsUbuntuesm-apps/jammy*
MbedtlsUbuntuesm-apps/noble*
MbedtlsUbuntuesm-apps/xenial*
MbedtlsUbuntujammy*
MbedtlsUbuntunoble*
MbedtlsUbuntuoracular*
MbedtlsUbuntuplucky*
MbedtlsUbuntuquesting*
MbedtlsUbuntuupstream*

References