CVE-2021-42553

STM32 USB Host Library Buffer Overflow

State
Published
Severity
6.8 Medium
Published
Oct 21, 2022
Updated
May 7, 2025
Reserved
Oct 15, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.8 MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNCSC.ch

Weaknesses

  • CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Affected Products

ProductVersions
STM32 USB Host LibrarySTMicroelectronics STM32Cube
  • all to before 3.5.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.