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 pollsetadd_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.
{
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/7xxx/CVE-2023-7152.json",
"cna_assigner": "VulDB"
}{
"source": "REFERENCES"
}{
"extracted_events": [
{
"introduced": "1.21.0"
},
{
"last_affected": "1.21.0"
},
{
"introduced": "1.22.0-preview"
},
{
"last_affected": "1.22.0-preview"
}
],
"cpe": [
"cpe:2.3:a:micropython:micropython:1.21.0:*:*:*:*:*:*:*",
"cpe:2.3:a:micropython:micropython:1.22.0:preview:*:*:*:*:*:*"
],
"source": [
"AFFECTED_FIELD",
"CPE_STRING"
]
}[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"100514678993952764631001232513906537474",
"184635985177277776058266799635677985380",
"164230940075714143062822397552674040199",
"228660635332080749222774965009048948408",
"28995778423837000612302589737259141075",
"18652610911259546864168799773277061273",
"286860532521091533751639708115663559090",
"224462232164678787202293072350156611568",
"240308530618914926892437594634708463221",
"84432039754077587633886216482598820342",
"268424210313647838700403150769473988174",
"321210418996263357512097437121534983644"
]
},
"deprecated": false,
"id": "CVE-2023-7152-25f6c61c",
"signature_version": "v1",
"source": "https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26",
"target": {
"file": "extmod/modselect.c"
}
},
{
"signature_type": "Function",
"digest": {
"function_hash": "160868559766814285633166252859406262810",
"length": 591.0
},
"deprecated": false,
"id": "CVE-2023-7152-b41c5cce",
"signature_version": "v1",
"source": "https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26",
"target": {
"file": "extmod/modselect.c",
"function": "poll_set_add_fd"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-7152.json"
"2026-07-22T02:50:47Z"