MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow
MicroPython
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| micropython-copy PyPI |
| No fix yet |
| micropython-io PyPI |
| No fix yet |
| micropython-os-path PyPI |
MicroPython
| Product | Affected | Fixed in |
|---|---|---|
| micropython-copy PyPI |
| No fix yet |
| micropython-io PyPI |
| No fix yet |
| micropython-os-path PyPI |
≤ 0.1.3all versions| No fix yet |
| micropython-string PyPI |
| No fix yet |
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 launch the attack remotely. The exploit has been disclosed to the public and may be used. The name of the patch is 29943546343c92334e8518695a11fc0e2ceea68b. It is recommended to apply a patch to fix this issue. In the VFS unmount process, the comparison between the mounted path string and the unmount requested string is based solely on the length of the unmount string, which can lead to a heap buffer overflow read.
From the CVE record · VulDB
MicroPython 1.23.0 has a heap buffer overflow read in the VFS unmount handler when it compares a mounted path with an unmount request using only the request string’s length. An attack can be launched remotely; the input does not specify whether authentication or user interaction is required.
Check deployments running MicroPython 1.23.0 or the listed PyPI packages micropython-copy, micropython-io, micropython-os-path, and micropython-string, for which no fixed versions are listed.