CVE-2025-49601 In MbedTLS 3.3.0 before 3.6.4, mbedtls_lms_import_public_key does not check that the input buffer is at least 4 bytes before reading a 32-bit field, allowing a possible out-of-bounds read on truncated...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
In MbedTLS 3.3.0 before 3.6.4, mbedtls_lms_import_public_key does not check that the input buffer is at least 4 bytes before reading a 32-bit field, allowing a possible out-of-bounds read on truncated input. Specifically, an out-of-bounds read in mbedtls_lms_import_public_key allows context-dependent attackers to trigger a crash or limited adjacent-memory disclosure by supplying a truncated LMS (Leighton-Micali Signature) public-key buffer under four bytes. An LMS public key starts with a 4-byte type indicator. The function mbedtls_lms_import_public_key reads this type indicator before validating the size of its input.
Upgrade path
11 packages: 10 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/mbedtls(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| alpine/mbedtls(Alpine v3.20) | < 3.6.4-r0 | 3.6.4-r0 | Fixed |
| alpine/mbedtls(Alpine v3.21) | < 3.6.4-r0 | 3.6.4-r0 | Fixed |
| alpine/mbedtls(Alpine v3.22) | < 3.6.4-r0 | 3.6.4-r0 | Fixed |
| alpine/mbedtls(Alpine v3.23) | < 3.6.4-r0 | 3.6.4-r0 | Fixed |
| alpine/mbedtls(Alpine v3.24) | < 3.6.4-r0 | 3.6.4-r0 | Fixed |
| alpine/mbedtls3(Alpine v3.24) | < 3.6.4-r0 | 3.6.4-r0 | Fixed |
| debian/mbedtls(Debian 13) | < 3.6.4-1 | 3.6.4-1 | Fixed |
| debian/mbedtls(Debian 14) | < 3.6.4-1 | 3.6.4-1 | Fixed |
| mbedtls | >= 3.3.0, < 3.6.4 | 3.6.4 | Fixed |
| TrustedFirmware Mbed TLS | >= 3.3.0, < 3.6.4 | 3.6.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/mbedtls(Debian:13) | < 3.6.4-1 | 3.6.4-1 |
| debian/mbedtls(Debian:14) | < 3.6.4-1 | 3.6.4-1 |
| mbedtls | >= 3.3.0, < 3.6.4 | 3.6.4 |
| alpine/mbedtls(Alpine:v3.20) | < 3.6.4-r0 | 3.6.4-r0 |
| alpine/mbedtls(Alpine:v3.21) | < 3.6.4-r0 | 3.6.4-r0 |
| alpine/mbedtls(Alpine:v3.22) | < 3.6.4-r0 | 3.6.4-r0 |
| alpine/mbedtls(Alpine:v3.23) | < 3.6.4-r0 | 3.6.4-r0 |
| alpine/mbedtls(Alpine:v3.24) | < 3.6.4-r0 | 3.6.4-r0 |
| alpine/mbedtls3(Alpine:v3.24) | < 3.6.4-r0 | 3.6.4-r0 |
| ubuntu/mbedtls(Ubuntu:26.04) | All versions | No fix listed |
| TrustedFirmware Mbed TLS | >= 3.3.0, < 3.6.4 | 3.6.4 |
References
- Debian Security Tracker CVE-2025-49601 vendor-advisory
- github.com third-party-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking