{"id":"UBUNTU-CVE-2021-42553","details":"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.","modified":"2026-05-20T16:05:16.296871058Z","published":"2022-10-21T10:15:00Z","related":["USN-7472-1"],"upstream":["CVE-2021-42553"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-42553"},{"type":"REPORT","url":"https://github.com/STMicroelectronics/stm32_mw_usb_host/pull/4"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-42553"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7472-1"}],"affected":[{"package":{"name":"micropython","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/micropython?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12-1ubuntu0.1~esm1"}]}],"versions":["1.12-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"micropython","binary_version":"1.12-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42553.json"}},{"package":{"name":"micropython","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/micropython?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17+ds-1.1ubuntu2+esm1"}]}],"versions":["1.17+ds-1ubuntu1","1.17+ds-1.1","1.17+ds-1.1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.17+ds-1.1ubuntu2+esm1","binary_name":"micropython"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42553.json"}},{"package":{"name":"micropython","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/micropython?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.1+ds-1ubuntu0.24.04.1~esm1"}]}],"versions":["1.19.1+ds-1","1.22.1+ds-1","1.22.1+ds-1build1","1.22.1+ds-1build2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.22.1+ds-1ubuntu0.24.04.1~esm1","binary_name":"micropython"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42553.json"}},{"package":{"name":"micropython","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/micropython?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.24.1+ds-1","1.25.0+ds-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.25.0+ds-1","binary_name":"micropython"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42553.json"}},{"package":{"name":"micropython","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/micropython?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.25.0+ds-1","1.26.1+ds-1"],"ecosystem_specific":{"binaries":[{"binary_name":"micropython","binary_version":"1.26.1+ds-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42553.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}