Vulnerability · Published Oct 21, 2022 · Assigned by NCSC.ch
CVE-2021-42553STM32 USB Host Library Buffer Overflow
Medium 6.8
In plain English
A medium-severity buffer overflow in STM32 USB Host Library from STMicroelectronics STM32Cube . There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities).
Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)1.3%top 30.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:25.10 | micropython | no fix listed | UBUNTU-CVE-2021-42553 |
| Ubuntu:26.04:LTS | micropython | no fix listed | UBUNTU-CVE-2021-42553 |
| Ubuntu:26.10 | micropython | no fix listed | UBUNTU-CVE-2021-42553 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| STMicroelectronics STM32Cube | STM32 USB Host Library | all – before 3.5.1 |
Weakness: CWE-120 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H