CVE-2021-42553

CRITICAL CVSS 3.1: 9.8 EPSS 1.30%
Updated Oct 08, 2026
St
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions before 3.5.1
Fixed In 3.5.1
Type CWE-120 (Buffer Copy without Checking Size)
Vendor St
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
St Stm32_Mw_Usb_Host
cpe:2.3:a:st:stm32_mw_usb_host:*:*:*:*:*:*:*:*
— 3.5.1