CVE-2021-42553
JSON

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 packageVersionsReported by
STMicroelectronics STM32Cube STM32 USB Host Libraryfrom all before 3.5.1CVE List
st stm32_mw_usb_hostbefore 3.5.1NVD

All scores

NCSC.ch6.8medium CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-120

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

Sources

SourceRecordLicence
CVE ListCVE-2021-42553 changed 2025-05-07CVE Terms of Use
NVDCVE-2021-42553 changed 2026-10-08Public domain