Mbed-TLS.mbedtls is vulnerable to Race Condition
68
Medium Risk
Mbed TLS detects processor support for the AESNI and CLMUL instructions in mbedtls_aesni_has_support() and caches the result in global variables. Depending on compiler optimizations, the flag marking the cache as populated can be written before the cached value itself, creating a race where a second thread reads the default value and falls back to the table-based AES and GCM implementations. Those portable implementations are not constant time, so a local attacker who can observe memory access patterns and stall a thread can recover AES keys or forge GCM tags. The fix orders the writes so concurrent callers always observe a fully populated detection result.
You are affected if you are using a version that falls within the vulnerable range and your program performs AES or GCM operations from multiple threads on x86 or amd64 hardware.
Mbed-TLS.mbedtls is vulnerable to Race Condition in versions 1.0.0 - 3.6.3.
Upgrade the Mbed-TLS.mbedtls library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant