{"id":"CVE-2021-42553","aliases":["CVE-2021-42553"],"related":[],"kind":"vulnerability","state":"published","title":"STM32 USB Host Library Buffer Overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad de desbordamiento de búfer en la función stm32_mw_usb_host de STMicroelectronics permite a un atacante ejecutar código arbitrario cuando el descriptor contiene más endpoints que USBH_MAX_NUM_ENDPOINTS. La librería es integrada normalmente cuando es usado un RTOS como FreeRTOS en los MCUs STM32","source":"nvd"}],"published":"2022-10-21T00:00:00.000Z","modified":"2026-10-08T18:23:29.090Z","severity":{"scorer":"NCSC.ch","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"NCSC.ch","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"type":"custom","introduced":"all","fixed":"3.5.1","status":"affected"}],"vendor":"STMicroelectronics STM32Cube","product":"STM32 USB Host Library","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.5.1"}],"vendor":"st","product":"stm32_mw_usb_host","cpe":"cpe:2.3:a:st:stm32_mw_usb_host:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","tags":["patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host","tags":["product","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["github.com/Defonceuse"],"assigner":"NCSC.ch","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-05-07T20:06:01.309Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42553","url":"https://www.cve.org/CVERecord?id=CVE-2021-42553","licence":"CVE Terms of Use","modified":"2025-05-07T20:10:49.445Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42553","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42553","licence":"Public domain","modified":"2026-10-08T18:23:29.090Z"}],"updatedAt":"2026-11-25T22:58:07.849Z","epss":{"score":0.01304,"percentile":0.7062,"date":"2026-11-30T12:00:22.000Z"}}