{"schemaVersion":3,"id":"CVE-2021-42553","aliases":["UBUNTU-CVE-2021-42553"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-10-21T00:00:00.000Z","modified":"2025-05-07T20:10:49.445Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01274,"percentile":0.69472,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.21899999999999992,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01055},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01274,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01274,"percentile":0.69472}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01055,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0106,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01069,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01274,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01274,"percentile":0.69472}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"ubuntu","product":"micropython","name":"micropython","label":"micropython","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/micropython","purlType":"deb","versions":[{"text":"< 1.12-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.17+ds-1.1ubuntu2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.22.1+ds-1ubuntu0.24.04.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 1.12-1ubuntu0.1~esm1 | < 1.17+ds-1.1ubuntu2+esm1 | < 1.22.1+ds-1ubuntu0.24.04.1~esm1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"st","product":"stm32_mw_usb_host","name":"stm32 mw usb host","label":"stm32_mw_usb_host","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.5.1","eol":null,"hubHref":"/vendor/st/stm32_mw_usb_host"},{"vendor":"stmicroelectronics stm32cube","product":"stm32 usb host library","name":"STM32 USB Host Library","label":"stm32 usb host library","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ all, < 3.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ all, < 3.5.1","eol":null,"hubHref":"/vendor/stmicroelectronics_stm32cube/stm32_usb_host_library"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","label":"github.com/STMicroelectronics/stm32_mw_usb_host/pull/4","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/STMicroelectronics/stm32_mw_usb_host","label":"github.com/STMicroelectronics/stm32_mw_usb_host","hostname":"github.com","tags":["Product"]},{"url":"https://ubuntu.com/security/CVE-2021-42553","label":"ubuntu.com/security/CVE-2021-42553","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-42553","label":"www.cve.org/CVERecord?id=CVE-2021-42553","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7472-1","label":"ubuntu.com/security/notices/USN-7472-1","hostname":"ubuntu.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-7472-1"],"duplicates":[],"related":["USN-7472-1"]},"timeline":[{"kind":"published","date":"2022-10-21T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-07T20:10:49.445Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:37:07.242Z","stale":false,"partial":false}}