CVE-2022-46393: Buffer Overflow
An issue was discovered in Mbed TLS before 2.28.2 and 3.x before 3.3.0. There is a potential heap-based buffer overflow and heap-based buffer over-read in DTLS if MBEDTLSSSLDTLSCONNECTIONID is enabled and MBEDTLSSSLCIDINLENMAX > 2 MBEDTLSSSLCIDOUTLENMAX.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/mbedtlsto a version that resolves this vulnerability.Fixed in 2.28.3-1Fixed in 3.6.6-0.1~deb13u1Fixed in 3.6.7-3 - Upgrade
Upgrade
debian/mbedtlsto a version that resolves this vulnerability.Fixed in 2.28.2-1 - Upgrade
Upgrade
Mbed TLSto a version that resolves this vulnerability.Fixed in 2.28.2 - Upgrade
Upgrade
Mbed TLSto a version that resolves this vulnerability.Fixed in 3.3.0 - Configuration
Disable MBEDTLS_SSL_DTLS_CONNECTION_ID if upgrading is not possible.
Mbed TLS DTLS MBEDTLS_SSL_DTLS_CONNECTION_ID = disabled - Configuration
Configure MBEDTLS_SSL_CID_IN_LEN_MAX to be less than or equal to 2 * MBEDTLS_SSL_CID_OUT_LEN_MAX.
Mbed TLS DTLS MBEDTLS_SSL_CID_IN_LEN_MAX = <= 2 * MBEDTLS_SSL_CID_OUT_LEN_MAX
Event History
Frequently Asked Questions
What is the vulnerability ID of this issue?
The vulnerability ID of this issue is CVE-2022-46393.
What is the severity of CVE-2022-46393?
The severity of CVE-2022-46393 is critical with a CVSS score of 9.8.
What is the affected software?
The affected software includes ARM mbed TLS versions up to 2.28.2 and versions 3.0.0 to 3.3.0, as well as Fedora 36 and Fedora 37.
What is the description of CVE-2022-46393?
CVE-2022-46393 is a potential heap-based buffer overflow and heap-based buffer over-read vulnerability in DTLS if MBEDTLS_SSL_DTLS_CONNECTION_ID is enabled and MBEDTLS_SSL_CID_IN_LEN_MAX > 2 * MBEDTLS_SSL_CID_OUT_LEN_MAX.
How can I fix CVE-2022-46393?
To fix CVE-2022-46393, it is recommended to update to Mbed TLS version 2.28.2 or 3.3.0, or apply the relevant patches provided by the vendor.