Skip to content
OpenAdvisories
Medium · 6.8 CVE-2021-42553 EUVD-2021-29521GHSA-vwmv-9r25-j98p

STM32 USB Host Library Buffer Overflow

Published Oct 21, 2022 · Updated May 7, 2025 · Assigned by NCSC.ch

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.

Affected products

VendorProductAffectedFixed
STMicroelectronics STM32Cube STM32 USB Host Library all – < 3.5.1 3.5.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 micropython No fix yet —
Ubuntu 26.04 LTS micropython No fix yet —
Ubuntu 25.10 micropython No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS micropython 1.22.1+ds-1ubuntu0.24.04.1~esm1 USN-7472-1
Ubuntu Pro 22.04 LTS micropython 1.17+ds-1.1ubuntu2+esm1 USN-7472-1
Ubuntu Pro 20.04 LTS micropython 1.12-1ubuntu0.1~esm1 USN-7472-1

Advisories 1

References