CVE-2024-8946MicroPython 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 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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
PyPI, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | micropython | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | micropython | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | micropython | Fix pending | 1.22.1+ds-1ubuntu0.24.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-8946 |
| Ubuntu 22.04 | micropython | Fix pending | 1.17+ds-1.1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-8946 |
| Ubuntu 20.04 | micropython | Fix pending | 1.12-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-8946 |
| Debian 14 | micropython | Fixed | 1.24.0+ds-1 | DEBIAN-CVE-2024-8946 |
| Debian 13 | micropython | Fixed | 1.24.0+ds-1 | DEBIAN-CVE-2024-8946 |
| PyPI library | micropython-copy | Fix pending | PYSEC-2024-91 | |
| PyPI library | micropython-io | Fix pending | PYSEC-2024-93 | |
| PyPI library | micropython-os-path | Fix pending | PYSEC-2024-95 | |
| PyPI library | micropython-string | Fix pending | GHSA-74qm-4v7r-jw2f |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- MicroPython: affected: 1.23.0
Vendor advisories:
References
- https://vuldb.com/?id.277764
- https://vuldb.com/?ctiid.277764
- https://vuldb.com/?submit.409312
- https://github.com/micropython/micropython/issues/13006
- https://github.com/micropython/micropython/issues/13006#issuecomment-1820309455
- https://github.com/micropython/micropython/commit/29943546343c92334e8518695a11fc0e2ceea68b
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.