Intel

AIKIDO-2026-214049

Mbed-TLS.mbedtls is vulnerable to Use After Free

Use After FreeCVE-2025-47917 Published Jul 29, 2026

89

High Risk

This Affects:

c++Mbed-TLS.mbedtls
1.0.0 - 3.6.3
Fixed in 3.6.4
Are you affected? Scan for Free

TL;DR

The function mbedtls_x509_string_to_names() documents its head argument as an output parameter but internally calls a deep free on it. Applications that follow the documentation keep pointers to memory that the function frees, leading to use-after-free or double-free when they later use or release those pointers. Depending on the allocator this can escalate to arbitrary code execution, and the bundled cert_write and cert_req sample programs are affected. The fix rejects a non-NULL pointer target so the unexpected free no longer occurs.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application calls mbedtls_x509_string_to_names() while relying on its documented output behavior.

Background info

Mbed-TLS.mbedtls is vulnerable to Use After Free in versions 1.0.0 - 3.6.3.

How to fix this

Upgrade the Mbed-TLS.mbedtls library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform