SecurityContext

CVE-2021-42553: STMicroelectronics - Buffer Overflow

  • Cve: CVE-2021-42553
  • Name: STMicroelectronics - Buffer Overflow
  • 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.
  • Impact: Attackers can execute arbitrary code on the device, potentially leading to full device compromise or control.
  • Remediation: Update to version 3.5.1 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01304
  • Epss percentile: 0.71261
  • Assignee: [email protected]
  • Published at: 2022-10-21T10:15:12Z
  • Age in days: 1495
  • Modified at: 2026-10-08T18:23:29Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42553
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-120Buffer Copy without Checking Size of Input

References

UrlSourceTags
https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4nvdPatch, Third Party Advisory
https://github.com/STMicroelectronics/stm32_mw_usb_hostnvdProduct

Products

ProductAffectedPlatform boundSourcesUrl
st:stm32_mw_usb_host< 3.5.1nonvd/v1/products/st/stm32_mw_usb_host

Projects

RepositoryLink kindsIndexedUrl
stmicroelectronics/stm32_mw_usb_hostpullyes/v1/repositories/stmicroelectronics/stm32_mw_usb_host

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts