CVE Vulnerabilities

CVE-2025-52496

Compiler Optimization Removal or Modification of Security-critical Code

Published: Jul 04, 2025 | Modified: Sep 22, 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

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

Name Vendor Start Version End Version
Mbed_tls Arm * 3.6.4 (excluding)
Mbedtls Ubuntu devel *
Mbedtls Ubuntu esm-apps/bionic *
Mbedtls Ubuntu esm-apps/focal *
Mbedtls Ubuntu esm-apps/jammy *
Mbedtls Ubuntu esm-apps/noble *
Mbedtls Ubuntu esm-apps/xenial *
Mbedtls Ubuntu jammy *
Mbedtls Ubuntu noble *
Mbedtls Ubuntu oracular *
Mbedtls Ubuntu plucky *
Mbedtls Ubuntu questing *
Mbedtls Ubuntu upstream *

References