CVE-2021-42553: STM32 USB Host Library Buffer Overflow
Vulnerability summary
CVE-2021-42553 is a critical (CVSS 9.8) vulnerability in st stm32_mw_usb_host. EPSS estimates a 1.30% chance of exploitation in the next 30 days, higher than 71.4% of scored vulnerabilities.
Not severe (CVSS 6.8, physical access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 21-10-2022PublishedVulnerability first disclosed.
- 07-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA6.8MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.30%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 1.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: physical access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
St1 product
- stm32_mw_usb_host< 3.5.1
Stmicroelectronics stm32cube1 product
- stm32 usb host library≥ all, < 3.5.1
Ubuntu1 product
- micropython< 1.12-1ubuntu0.1~esm1 | < 1.17+ds-1.1ubuntu2+esm1 | < 1.22.1+ds-1ubuntu0.24.04.1~esm1 | All versions (No fix recorded)
3 vendors · 3 products