CVEfocus › CVE database › CVE-2021-42553

CVE-2021-42553STM32 USB Host Library Buffer Overflow

CVSS 6.8 MediumEPSS 1.3% (higher than 71% of CVEs)Published 2022-10-21Updated 2025-05-07Assigner: NCSC.ch

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.

CWE-120

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fix pending
1Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10micropythonFix pendingUBUNTU-CVE-2021-42553
Ubuntu 26.04micropythonUnder investigationUBUNTU-CVE-2021-42553
Ubuntu 25.10micropythonWill not fix
it seems like the micropython package contains the code which is vulnerable under ports/stm32/usbhost/Core/Src/usbh_ctlreq.c.
UBUNTU-CVE-2021-42553
Ubuntu 24.04micropythonFix pending1.22.1+ds-1ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42553
Ubuntu 22.04micropythonFix pending1.17+ds-1.1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42553
Ubuntu 20.04micropythonFix pending1.12-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42553

What the vendor says

As published in the CVE record by NCSC.ch, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.