What’s Vulnerable › Vulnerabilities

CVE-2021-42553: STM32 USB Host Library Buffer Overflow

Description

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 products

How to fix

Upgrade to a fixed version: STMicroelectronics STM32Cube STM32 USB Host Library 3.5.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-42553 or the next vulnerability affects your stack