CVE Tools

CVE-2021-42553

STM32 USB Host Library Buffer Overflow

Published: Oct 21, 2022Updated: May 7, 2025 Sources: CVE List NVDCWE-120
6.8CVSSMEDIUM

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 Vector Breakdown

AV:PAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:PAttack Vector
Physical
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

stmicroelectronics stm32cubecommercialCHHardware Firmwareaka stm32cube, stm32 cube
stcommercialCHOperating Systemsaka stm, stmicroelectronics, stmicroelectronics

Attack Graph

Products CVE Techniques Tactics

Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.

Exploitability

Official Patch Available

MITRE ATT&CK

2 techniques
Initial Access
Privilege Escalation
View detailed technique mapping

References

Timeline

Published
Oct 21, 2022
Last Updated
May 7, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2021-42553 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows