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).

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.9%top 40.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPImicropython-copyno fix listedPYSEC-2023-256
PyPImicropython-iono fix listedPYSEC-2023-257
PyPImicropython-osno fix listedPYSEC-2023-258
PyPImicropython-selectno fix listedPYSEC-2023-259
Ubuntu:22.04:LTSgiacno fix listedUBUNTU-CVE-2023-7152
Ubuntu:24.04:LTSgiacno fix listedUBUNTU-CVE-2023-7152
Ubuntu:25.10giacno fix listedUBUNTU-CVE-2023-7152
Ubuntu:26.04:LTSgiacno fix listedUBUNTU-CVE-2023-7152
Ubuntu:26.10giacno fix listedUBUNTU-CVE-2023-7152

Affected products (as reported)

VendorProductVersions
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