CVE-2023-7152MicroPython modselect.c poll_set_add_fd use after free
A vulnerability, which was classified as critical, has been found in MicroPython 1.21.0/1.22.0-preview. Affected by this issue is the function poll_set_add_fd of the file extmod/modselect.c. The manipulation leads to use after free. The exploit has been disclosed to the public and may be used. The patch is identified as 8b24aa36ba978eafc6114b6798b47b7bfecdca26. It is recommended to apply a patch to fix this issue. VDB-249158 is the identifier assigned to this vulnerability.
What to do
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.10 | giac | Fix pending | UBUNTU-CVE-2023-7152 | |
| Ubuntu 26.04 | giac | Under investigation | UBUNTU-CVE-2023-7152 | |
| Ubuntu 25.10 | giac | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-7152 | |
| Ubuntu 24.04 | giac | Under investigation | UBUNTU-CVE-2023-7152 | |
| Ubuntu 22.04 | giac | Under investigation | UBUNTU-CVE-2023-7152 | |
| Ubuntu 20.04 | giac | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-7152 | |
| Ubuntu 18.04 | giac | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2023-7152 | |
| PyPI library | micropython-copy | Fix pending | PYSEC-2023-256 | |
| PyPI library | micropython-io | Fix pending | PYSEC-2023-257 | |
| PyPI library | micropython-os | Fix pending | PYSEC-2023-258 | |
| PyPI library | micropython-select | Fix pending | PYSEC-2023-259 |
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.21.0, 1.22.0-preview
Vendor advisories:
References
- https://vuldb.com/?id.249158
- https://vuldb.com/?ctiid.249158
- https://github.com/micropython/micropython/issues/12887
- https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/
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.