Buffer Overread Affecting armmbed/mbedtls package, versions [,2.28.1)[3.0.0,3.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ARMMBEDMBEDTLS-3007474
  • published17 Jul 2022
  • disclosed17 Jul 2022
  • creditCybeats PSI Team

Introduced: 17 Jul 2022

CVE-2022-35409  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade armmbed/mbedtls to version 2.28.1, 3.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overread when a DTLS server with MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE in use receives a ClientHello message with a cookie whose declared length exceeds the end of the allocated buffer by up to 255 bytes. This can cause a crash or information disclosure via error output.

Only systems using a non-default MBEDTLS_SSL_IN_CONTENT_LEN shorter than the 258 bytes allocated by the default mbedtls_ssl_cookie_check() function are vulnerable.

CVSS Scores

version 3.1