CVE-2021-42553 STM32 USB Host Library Buffer Overflow
A buffer overflow in the STM32 USB Host Library allows attackers to execute arbitrary code via malicious USB descriptors.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-42553?
CVE-2021-42553 is a medium-severity memory corruption vulnerability in STMicroelectronics STM32Cube STM32 USB Host Library, published on 21 Oct 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-120
Which versions are affected by CVE-2021-42553?
It affects 1 product.
Products include St Stm32 Mw Usb Host.
How do I fix CVE-2021-42553?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-42553 being exploited?
There is no known exploitation of CVE-2021-42553 in the wild and no public exploit code.
Sources
Also known as GHSA-vwmv-9r25-j98p, UBUNTU-CVE-2021-42553.