Intel

AIKIDO-2026-605024

Mbed-TLS.mbedtls is vulnerable to NULL Pointer Dereference

CVE-2025-48965Published Jul 29, 2026
July 29, 2026

40

CVE Score

Medium

NULL Pointer Dereference

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.

How do I fix this?

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

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.

Package

Mbed-TLS.mbedtls

Versions

1.0.0 - 3.6.3

Fixed in 3.6.4

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea