Skip to content
OpenAdvisories
Medium · 5.6 CVE-2024-8947 EUVD-2024-0103GHSA-pwwp-3q7j-9mx8PYSEC-2024-92PYSEC-2024-94

MicroPython objarray.c use after free

Published Sep 17, 2024 · Updated Sep 17, 2024 · Assigned by VulDB

Description

A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.

Affected products

VendorProductAffectedFixed
— MicroPython 1.22.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 micropython 1.24.0+ds-1 —
Debian 13 micropython 1.24.0+ds-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS micropython 1.22.1+ds-1ubuntu0.24.04.1~esm1 USN-7472-1
Ubuntu Pro 22.04 LTS micropython 1.17+ds-1.1ubuntu2+esm1 USN-7472-1
Ubuntu Pro 20.04 LTS micropython 1.12-1ubuntu0.1~esm1 USN-7472-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed micropython 1.28.0-2.1 openSUSE-SU-2026:10704-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI micropython-copy <= 3.3.3.post3 — GHSA-pwwp-3q7j-9mx8
PyPI micropython-copy all versions — PYSEC-2024-92
PyPI micropython-io <= 0.1 — GHSA-pwwp-3q7j-9mx8
PyPI micropython-io all versions — PYSEC-2024-94

Advisories 2

References