Intel

AIKIDO-2026-605024

Mbed-TLS.mbedtls is vulnerable to NULL Pointer Dereference

NULL Pointer DereferenceCVE-2025-48965 Published 5 days ago

40

Medium 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_asn1_store_named_data() can leave a list entry in an inconsistent state where the value pointer is NULL but its length is non-zero. This is reachable directly or through X.509 name-writing helpers such as mbedtls_x509_string_to_names() when an input string contains two entries of the same type, one non-empty followed by one of zero length. Later use of the list dereferences the NULL pointer and crashes the process. The fix keeps the length consistent so the stale NULL pointer is not dereferenced.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application builds X.509 names from untrusted input strings.

Background info

Mbed-TLS.mbedtls is vulnerable to NULL Pointer Dereference in versions 1.0.0 - 3.6.3.

How to fix this

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