CVE-2025-48965
NoneCVSS
—
EPSS
0.6%
Published
Jul 20, 2025
CISA due date
—
Cloudanix analysis
A flaw in a widely used encryption library can cause programs to crash when handling certain security data, potentially interrupting secure connections until fixed.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
NULL pointer dereference triggered in mbedtls_asn1_store_named_data when ASN.1 named data storage receives a val.p of NULL paired with a non-zero val.len value, causing invalid memory access during parsing of certificate or configuration data.
Why it matters to the business
Applications relying on Mbed TLS for secure communications may experience unexpected crashes, leading to denial of service, interrupted TLS handshakes, and degraded availability of encrypted services without data exposure.
How an attack unfolds
An attacker supplies specially crafted ASN.1 structures containing conflicting named data fields during certificate processing or configuration loading; the library stores the data without validating the pointer-length pair, resulting in a NULL dereference crash on access.
How to fix it
Upgrade armmbed/mbedtls to the commit c765c831e5c2a0971410692f92f7a81d6ec65ec2 or later equivalent release; rebuild and redeploy all dependent applications after verification.
How to confirm the fix worked
Confirm the installed library version or commit hash matches or exceeds the fixed commit; perform regression testing with ASN.1 inputs containing NULL pointer and non-zero length combinations to ensure no crash occurs.
Typical attack path
- Identify a target application or service that uses vulnerable Mbed TLS for ASN.1 or certificate handling
- Craft and deliver ASN.1 input with val.p NULL and val.len greater than zero via network protocol, file, or API call
- Trigger processing of the malformed data in mbedtls_asn1_store_named_data
- Cause NULL pointer dereference leading to process crash or denial of service
How to detect it
Inspect application and system logs for segmentation faults or crashes occurring during certificate parsing or ASN.1 processing; correlate with inbound connections or configuration loads involving Mbed TLS.
What your security team should do
- Prioritize upgrade of Mbed TLS across all products to the fixed commit within standard patch windows given low exploit maturity
- Monitor upstream releases and rebuild pipelines for the affected GIT repository
- Review ASN.1 parsing code paths for similar validation gaps in custom integrations
The record
Mbed TLS before 3.6.4 has a NULL pointer dereference because mbedtls_asn1_store_named_data can trigger conflicting data with val.p of NULL but val.len greater than zero.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.20 | mbedtls | 0 | 3.6.4-r0 |
| Alpine:v3.21 | mbedtls | 0 | 3.6.4-r0 |
| Alpine:v3.22 | mbedtls | 0 | 3.6.4-r0 |
| Debian:11 | mbedtls | 0 | No fix |
| Debian:12 | mbedtls | 0 | No fix |
| Debian:13 | mbedtls | 0 | 3.6.4-1 |
| Debian:14 | mbedtls | 0 | 3.6.4-1 |
| openSUSE:Leap 16.0 | mbedtls | 0 | 3.6.6-bp160.1.1 |
Related vulnerabilities
- CVE-2025-47917 Mbed TLS before 3.6.4 allows a use-after-free in certain situations of applications that… Also affects mbedtls
- CVE-2025-52497 Mbed TLS before 3.6.4 has a PEM parsing one-byte heap-based buffer underflow, in… Also affects mbedtls
- CVE-2025-52496 Mbed TLS before 3.6.4 has a race condition in AESNI detection if certain compiler… Also affects mbedtls
- CVE-2025-27810 Mbed TLS before 2.28.10 and 3.x before 3.6.3, in some cases of failed memory allocation… Also affects mbedtls
- CVE-2025-27809 Mbed TLS before 2.28.10 and 3.x before 3.6.3, on the client side, accepts servers that… Also affects mbedtls
- CVE-2024-49195 Mbed TLS 3.5.x through 3.6.x before 3.6.2 has a buffer underrun in pkwrite when writing… Also affects mbedtls
- CVE-2024-45158 An issue was discovered in Mbed TLS 3.6 before 3.6.1. Also affects mbedtls
- CVE-2024-45159 An issue was discovered in Mbed TLS 3.x before 3.6.1. Also affects mbedtls