CVE-2021-42553

STM32 USB Host Library Buffer Overflow

Published Oct 21, 2022 CVSS 3.1 · 6.8 Medium EPSS 1.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-29521 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.
Ubuntu USN Ubuntu USN USN-7472-1 Micropython vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:st:stm32_mw_usb_host:-:*:*:*:*:*:*:* cpe:2.3:a:st:stm32_mw_usb_host:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics epss

{'score': 0.00136}

epss

{'score': 0.00182}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
NCSC.ch
Published
Updated
May 7, 2025, 8:10 PM
Reserved
Oct 15, 2021, 12:00 AM
Status
Analyzed
Published
Oct 21, 2022, 10:15 AM
Modified
Oct 8, 2026, 6:23 PM