# CVE-2023-7152: MicroPython modselect.c poll\_set\_add\_fd use after free

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-12-29 · Modified: 2025-02-13
- Aliases: PYSEC-2023-256, PYSEC-2023-257, PYSEC-2023-258, PYSEC-2023-259, UBUNTU-CVE-2023-7152
- Record: https://cvemate.com/vulnerability/CVE-2023-7152 · JSON: https://cvemate.com/vulnerability/CVE-2023-7152/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.892%, percentile 60.663%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- ubuntu giac (Ubuntu): All versions (No fix recorded)
- micropython micropython: 1.21.0 \| 1.22.0:preview
- PyPI micropython-copy (PyPI): \< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 \| All versions (No fix recorded)
- PyPI micropython-io (PyPI): \< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 \| All versions (No fix recorded)
- PyPI micropython-os (PyPI): \< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 \| All versions (No fix recorded)
- PyPI micropython-select (PyPI): \< 8b24aa36ba978eafc6114b6798b47b7bfecdca26 \| All versions (No fix recorded)

## 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/>
- <https://ubuntu.com/security/CVE-2023-7152>
- <https://www.cve.org/CVERecord?id=CVE-2023-7152>

---

Data as of 2026-12-05T06:26:22.045Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
