Buffer Overflow Affecting micropython package, versions <1.22.1+ds-1ubuntu0.24.10.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.16% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2410-MICROPYTHON-8195743
  • published2 May 2025
  • disclosed21 Oct 2022

Introduced: 21 Oct 2022

CVE-2021-42553  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.10 micropython to version 1.22.1+ds-1ubuntu0.24.10.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream micropython package and not the micropython package as distributed by Ubuntu. See How to fix? for Ubuntu:24.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1