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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- USN-7472-1 micropython vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026