Bug 2256175 (CVE-2023-7158)

Summary: CVE-2023-7158 MicroPython: heap-based buffer overflow
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: MicroPython 1.22.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2256176    
Bug Blocks:    

Description Avinash Hanwate 2023-12-29 10:44:15 UTC
A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.

https://github.com/micropython/micropython/issues/13007
https://github.com/micropython/micropython/pull/13039
https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f
https://github.com/micropython/micropython/releases/tag/v1.22.0
https://vuldb.com/?ctiid.249180
https://vuldb.com/?id.249180

Comment 1 Avinash Hanwate 2023-12-29 10:44:40 UTC
Created micropython tracking bugs for this issue:

Affects: fedora-all [bug 2256176]

Comment 2 Fedora Update System 2024-04-04 00:45:48 UTC
FEDORA-2024-34aa24af35 (micropython-1.22.2-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2024-04-04 00:55:13 UTC
FEDORA-2024-51e55a7065 (micropython-1.22.2-1.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.