CVE Vulnerabilities

CVE-2023-7152

Use After Free

Published: Dec 29, 2023 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Micropython Micropython 1.21.0 (including) 1.21.0 (including)
Micropython Micropython 1.22.0-preview (including) 1.22.0-preview (including)
Giac Ubuntu bionic *
Giac Ubuntu focal *
Giac Ubuntu lunar *
Giac Ubuntu mantic *
Giac Ubuntu oracular *
Giac Ubuntu trusty *
Giac Ubuntu xenial *

Potential Mitigations

References