CVE Catalog

CVE-2021-42553

MediumCVSS 6.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.06%

64th percentile - higher than 64% of all known CVEs

Summary

A buffer overflow vulnerability in STMicroelectronics stm32_mw_usb_host 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 an RTOS such as FreeRTOS on STM32 MCUs.

Risk Assessment

An attacker can execute arbitrary code on an STM32 device, taking control of the embedded system. The risk affects devices that connect untrusted USB devices.

Recommendation

Upgrade stm32_mw_usb_host to version 3.5.1 or later. Restrict connection of untrusted USB devices to STM32 microcontrollers.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS