Skip to content
OpenAdvisories
High USN-7472-1 3 CVEs

micropython vulnerabilities

Published May 1, 2025 · Updated Apr 27, 2026

Summary

Junwha Hong and Wonil Jang discovered that Micropython incorrectly handled
the length of a buffer in mp_vfs_umount, leading to a heap-based buffer
overflow vulnerability. If a user or automated system were tricked into
opening a specially crafted file, an attacker could possibly use this issue
to cause a denial of service or possibly execute arbitrary code.
(CVE-2024-8946)

Junwha Hong and Wonil Jang discovered that Micropython incorrectly handled
memory, leading to a use-after-free vulnerability under certain
circumstances. If a user or automated system were tricked into opening a
specially crafted file, an attacker could possibly use this issue to
cause a denial of service or possibly execute arbitrary code.
(CVE-2024-8947)

It was discovered that Middleware USB Host MCU Component incorrectly
handled memory, leading to a buffer overflow vulnerability, If a user or
automated system were tricked into opening a specially crafted file, an
attacker could possibly use this issue to cause a denial of service or
possibly execute arbitrary code. (CVE-2021-42553)

Fixed packages 3

ReleasePackageFixed in
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS micropython 1.12-1ubuntu0.1~esm1
Ubuntu · Pro 22.04 LTS Pro:22.04:LTS micropython 1.17+ds-1.1ubuntu2+esm1
Ubuntu · Pro 24.04 LTS Pro:24.04:LTS micropython 1.22.1+ds-1ubuntu0.24.04.1~esm1

Vulnerabilities 3

  • High 7.3

    MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow

    A vulnerability was found in MicroPython 1.23.0. It has been classified as critical. Affected is the function mp_vfs_umount of the file extmod/vfs.c of the component VFS Unmount Handler. The manipulation leads to heap-based buffer overflow. It is possible to …

  • Medium 6.8

    STM32 USB Host Library Buffer Overflow

    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 …

  • Medium 5.6

    MicroPython objarray.c use after free

    A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complex…

References

  • report
    https://ubuntu.com/security/CVE-2021-42553
  • report
    https://ubuntu.com/security/CVE-2024-8946
  • report
    https://ubuntu.com/security/CVE-2024-8947