CVE-2021-42553: st stm32_mw_usb_host Classic Buffer Overflow
CVSS: 9.8v3.1CriticalAnalyzed
AliasesUBUNTU-CVE-2021-42553
Published 21-10-2022Last modified 07-05-2025
Vulnerability summary
CVE-2021-42553 is a critical (CVSS 9.8) Classic Buffer Overflow vulnerability in st stm32_mw_usb_host. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 69.4% of scored vulnerabilities.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
1.27%
0%100%
Low · +0.22 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
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 versionCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSources3 sources · 6.8–9.8
- 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.27%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
+0.22 pp
From 1.05% on 19-09-2026
19-09-202619-10-2026
EPSS score1.27%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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