Vulnerability · Published Dec 29, 2023 · Assigned by VulDB
CVE-2023-7152MicroPython modselect.c poll_set_add_fd use after free
Medium 5.5
In plain English
A medium-severity use-after-free in MicroPython. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities).
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | micropython-copy | no fix listed | PYSEC-2023-256 |
| PyPI | micropython-io | no fix listed | PYSEC-2023-257 |
| PyPI | micropython-os | no fix listed | PYSEC-2023-258 |
| PyPI | micropython-select | no fix listed | PYSEC-2023-259 |
| Ubuntu:22.04:LTS | giac | no fix listed | UBUNTU-CVE-2023-7152 |
| Ubuntu:24.04:LTS | giac | no fix listed | UBUNTU-CVE-2023-7152 |
| Ubuntu:25.10 | giac | no fix listed | UBUNTU-CVE-2023-7152 |
| Ubuntu:26.04:LTS | giac | no fix listed | UBUNTU-CVE-2023-7152 |
| Ubuntu:26.10 | giac | no fix listed | UBUNTU-CVE-2023-7152 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | MicroPython | 1.21.01.22.0-preview |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://vuldb.com/?id.249158 vdb-entry, technical-description
- https://vuldb.com/?ctiid.249158 signature, permissions-required
- https://github.com/micropython/micropython/issues/12887 exploit, issue-tracking
- https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26 patch
- 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/