CVE-2021-42553

published 21 Oct 2022 · updated 7 May 2025

STM32 USB Host Library Buffer Overflow

6.8MediumCVSS 6.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.5.1.

A buffer overflow vulnerability in stm32_mw_usb_host of STMicroelectronics in versions before 3.5.1 allows an attacker to execute arbitrary code when the descriptor contains more endpoints than USBH_MAX_NUM_ENDPOINTS. The library is typically integrated when using a RTOS such as FreeRTOS on STM32 MCUs.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
STMicroelectronics STM32Cube>=all <3.5.13.5.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-42553 severity on Zeptric[![CVE-2021-42553](https://zeptric.io/badge/cve/CVE-2021-42553.svg)](https://zeptric.io/cve/CVE-2021-42553)