First published: Fri Oct 21 2022(Updated: )
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.
Credit: vulnerability@ncsc.ch
Affected Software | Affected Version | How to fix |
---|---|---|
St Stm32 Mw Usb Host |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-42553 is a buffer overflow vulnerability in stm32_mw_usb_host of STMicroelectronics in versions before 3.5.1.
An attacker can exploit CVE-2021-42553 by providing a descriptor with more endpoints than USBH_MAX_NUM_ENDPOINTS, leading to arbitrary code execution.
CVE-2021-42553 has a severity rating of 9.8 (critical).
Versions of stm32_mw_usb_host before 3.5.1 are affected by CVE-2021-42553.
To fix CVE-2021-42553, upgrade to version 3.5.1 or newer of stm32_mw_usb_host.