CVE-2021-42553
published medium CVSS 3.1 · 6.8STM32 USB Host Library Buffer Overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| STMicroelectronics STM32Cube | — | STM32 USB Host Libraryall to < 3.5.1 | Affected | Not stated | NCSC.ch |
| Ubuntu | focal | micropython | Advisory build | 1.12-1ubuntu0.1~esm1 | USN-7472-1 |
| Ubuntu | jammy | micropython | Advisory build | 1.17+ds-1.1ubuntu2+esm1 | USN-7472-1 |
| Ubuntu | noble | micropython | Advisory build | 1.22.1+ds-1ubuntu0.24.04.1~esm1 | USN-7472-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- NCSC.ch · cna
- Vector string
- CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| STMicroelectronics STM32Cube | STM32 USB Host Library | all to < 3.5.1 (affected · custom) | NCSC.ch · cna |
Weaknesses
2- buffer overflow
- CWE-120 CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
2Provider assertions
3NCSC.ch · cna
STM32 USB Host Library Buffer Overflow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 467c791c94dd08c5cf551091d341e620d8f3f5f29c6d17388bf09589168301a4
- Ingested
- 23 Sep 2026, 07:56:21 UTC
- Source record
- Official CVE record