CVEfocus › CVE database › CVE-2024-8946

CVE-2024-8946MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow

CVSS 7.3 HighEPSS 1.0% (higher than 64% of CVEs)Published 2024-09-17Updated 2024-09-17Assigner: VulDB

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.

CWE-122

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

2Fixed
7Fix pending
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04micropythonNot affected
vulnerable_code_not_present
Ubuntu 25.10micropythonNot affected
vulnerable_code_not_present
Ubuntu 24.04micropythonFix pending1.22.1+ds-1ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-8946
Ubuntu 22.04micropythonFix pending1.17+ds-1.1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-8946
Ubuntu 20.04micropythonFix pending1.12-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-8946
Debian 14micropythonFixed1.24.0+ds-1DEBIAN-CVE-2024-8946
Debian 13micropythonFixed1.24.0+ds-1DEBIAN-CVE-2024-8946
PyPI librarymicropython-copyFix pendingPYSEC-2024-91
PyPI librarymicropython-ioFix pendingPYSEC-2024-93
PyPI librarymicropython-os-pathFix pendingPYSEC-2024-95
PyPI librarymicropython-stringFix pendingGHSA-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.

Vendor advisories:

References

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.