MicroPython objarray.c use after free
MicroPython
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| micropython-copy PyPI |
| No fix yet |
| micropython-io PyPI |
| No fix yet |
MicroPython
| Product | Affected | Fixed in |
|---|---|---|
| micropython-copy PyPI |
| No fix yet |
| micropython-io PyPI |
| No fix yet |
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.
From the CVE record · VulDB
MicroPython 1.22.2 has a use-after-free flaw in py/objarray.c: resizing a bytes object and copying it into itself can reference freed memory. An attacker can trigger the flaw remotely, though exploitation is described as difficult; the input does not specify authentication or user-interaction requirements.
Engineers running MicroPython 1.22.2 or using the PyPI packages micropython-copy (through 3.3.3.post3) or micropython-io (through 0.1) should check their exposure.