6.8medium
STM32 USB Host Library Buffer Overflow
- Severity
- 6.8medium CVSS:3.1 by NCSC.ch
- Exploit likelihood
- 1.30% (higher than 71% of CVEs)
- Published
- Last changed
- Assigned by
- NCSC.ch
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
| Product or package | Versions | Reported by |
|---|---|---|
| STMicroelectronics STM32Cube STM32 USB Host Library | from all before 3.5.1 | CVE List |
| st stm32_mw_usb_host | before 3.5.1 | NVD |
All scores
| NCSC.ch | 6.8medium CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de desbordamiento de búfer en la función stm32_mw_usb_host de STMicroelectronics permite a un atacante ejecutar código arbitrario cuando el descriptor contiene más endpoints que USBH_MAX_NUM_ENDPOINTS. La librería es integrada normalmente cuando es usado un RTOS como FreeRTOS en los MCUs STM32
References
| https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4 | patch, third-party-advisory | |
| https://github.com/STMicroelectronics/stm32_mw_usb_host | product | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42553 changed 2025-05-07 | CVE Terms of Use |
| NVD | CVE-2021-42553 changed 2026-10-08 | Public domain |