CVE-2021-42553: STM32 USB Host Library Buffer Overflow

Published Oct 21, 2022
·
Updated

A buffer overflow vulnerability in stm32mwusbhost of STMicroelectronics in versions before 3.5.1 allows an attacker to execute arbitrary code when the descriptor contains more endpoints than USBHMAXNUMENDPOINTS. The library is typically integrated when using a RTOS such as FreeRTOS on STM32 MCUs.

Affected Software

1 affected component
ST Stm32 Mw Usb Host

Event History

Oct 21, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
May 1, 2025
Data Sourced
via Ubuntu·05:41 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·05:42 PM
DescriptionAffected Software
Data Sourced
via Launchpad·05:42 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-42553?

CVE-2021-42553 is a buffer overflow vulnerability in stm32_mw_usb_host of STMicroelectronics in versions before 3.5.1.

2

How can an attacker exploit CVE-2021-42553?

An attacker can exploit CVE-2021-42553 by providing a descriptor with more endpoints than USBH_MAX_NUM_ENDPOINTS, leading to arbitrary code execution.

3

What is the severity of CVE-2021-42553?

CVE-2021-42553 has a severity rating of 9.8 (critical).

4

Which software versions are affected by CVE-2021-42553?

Versions of stm32_mw_usb_host before 3.5.1 are affected by CVE-2021-42553.

5

How can I fix CVE-2021-42553?

To fix CVE-2021-42553, upgrade to version 3.5.1 or newer of stm32_mw_usb_host.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203