CVE-2024-45159 An issue was discovered in Mbed TLS 3.x before 3.6.1. With TLS 1.3, when a server enables optional authentication of the client, if the client-provided certificate does not have appropriate values in....
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- Debian
Description
An issue was discovered in Mbed TLS 3.x before 3.6.1. With TLS 1.3, when a server enables optional authentication of the client, if the client-provided certificate does not have appropriate values in if keyUsage or extKeyUsage extensions, then the return value of mbedtls_ssl_get_verify_result() would incorrectly have the MBEDTLS_X509_BADCERT_KEY_USAGE and MBEDTLS_X509_BADCERT_KEY_USAGE bits clear. As a result, an attacker that had a certificate valid for uses other than TLS client authentication would nonetheless be able to use it for TLS client authentication. Only TLS 1.3 servers were affected, and only with optional authentication (with required authentication, the handshake would be aborted with a fatal alert).
Upgrade path
8 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/mbedtls(Alpine v3.20) | < 3.6.1-r0 | 3.6.1-r0 | Fixed |
| alpine/mbedtls(Alpine v3.21) | < 3.6.1-r0 | 3.6.1-r0 | Fixed |
| alpine/mbedtls(Alpine v3.22) | < 3.6.1-r0 | 3.6.1-r0 | Fixed |
| alpine/mbedtls(Alpine v3.23) | < 3.6.1-r0 | 3.6.1-r0 | Fixed |
| alpine/mbedtls(Alpine v3.24) | < 3.6.1-r0 | 3.6.1-r0 | Fixed |
| alpine/mbedtls3(Alpine v3.24) | < 3.6.1-r0 | 3.6.1-r0 | Fixed |
| Microsoft cbl mariner | < 1.0.1-6 | 1.0.1-6 | Fixed |
| TrustedFirmware Mbed TLS | >= 3.2.0, < 3.6.1 | 3.6.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 1.0.1-6 | 1.0.1-6 |
| alpine/mbedtls(Alpine:v3.20) | < 3.6.1-r0 | 3.6.1-r0 |
| alpine/mbedtls(Alpine:v3.21) | < 3.6.1-r0 | 3.6.1-r0 |
| alpine/mbedtls(Alpine:v3.22) | < 3.6.1-r0 | 3.6.1-r0 |
| alpine/mbedtls(Alpine:v3.23) | < 3.6.1-r0 | 3.6.1-r0 |
| alpine/mbedtls(Alpine:v3.24) | < 3.6.1-r0 | 3.6.1-r0 |
| alpine/mbedtls3(Alpine:v3.24) | < 3.6.1-r0 | 3.6.1-r0 |
| TrustedFirmware Mbed TLS | >= 3.2.0, < 3.6.1 | 3.6.1 |
References
- MSRC Security Update Guide vendor-advisory
- hvloader vendor-advisory
- mbed-tls.readthedocs.io issue-tracking
- github.com release-notes
- mbed-tls.readthedocs.io vendor-advisory
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2024-45159 vendor-advisory