CVE-2024-45158

Name
CVE-2024-45158
Description
An issue was discovered in Mbed TLS 3.6 before 3.6.1. A stack buffer overflow in mbedtls_ecdsa_der_to_raw() and mbedtls_ecdsa_raw_to_der() can occur when the bits parameter is larger than the largest supported curve. In some configurations with PSA disabled, all values of bits are affected. (This never happens in internal library calls, but can affect applications that call these functions directly.)
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
https://mbed-tls.readthedocs.io/en/latest/security-advisories/
https://github.com/Mbed-TLS/mbedtls/releases/
https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-08-2/

Match rules

CPE URI Source package Min version Max version
n/a == n/a == n/a
cpe:2.3:a:mbed-tls:mbedtls:*:*:*:*:*:*:*:* mbedtls >= 3.6 < 3.6.1
cpe:2.3:a:arm:mbed_tls:3.6.0:*:*:*:*:*:*:* mbed_tls == None == 3.6.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
mbedtls edge-main 3.6.1-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
mbedtls 3.22-main 3.6.1-r0 None fixed
mbedtls 3.21-main 3.6.1-r0 None fixed
mbedtls 3.20-main 3.6.1-r0 Natanael Copa <ncopa@alpinelinux.org> fixed