# CVE-2021-42553: STM32 USB Host Library Buffer Overflow

- Severity: Medium 6.8 (CVSS:3.1, scored by NCSC.ch) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-11-30)
- Published: 2022-10-21T00:00:00.000Z
- Modified: 2026-10-08T18:23:29.090Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- STMicroelectronics STM32Cube STM32 USB Host Library: from all before 3.5.1
- st stm32_mw_usb_host: before 3.5.1

## Every score

- NCSC.ch: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4> (patch, third-party-advisory)
- <https://github.com/STMicroelectronics/stm32_mw_usb_host> (product)

## Sources

- CVE List: [CVE-2021-42553](https://www.cve.org/CVERecord?id=CVE-2021-42553), CVE Terms of Use, modified 2025-05-07
- NVD: [CVE-2021-42553](https://nvd.nist.gov/vuln/detail/CVE-2021-42553), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2021-42553 · Whole record: https://cve.day/CVE-2021-42553.json · Rebuilt by cve.day 2026-11-25T22:58:07.849Z
