Use After Free Affecting micropython/micropython package, versions [,1.22.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.49% (77th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-MICROPYTHONMICROPYTHON-6140432
  • published29 Dec 2023
  • disclosed29 Dec 2023
  • creditjunwha0511

Introduced: 29 Dec 2023

CVE-2023-7152  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade micropython/micropython to version 1.22.0 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free because poll_set_add_fd frees previously allocated fds at m_renew, when fd is allocated for a poll object. An attacker can try to malform an object or fd by using each other, leading to unintended behavior of the package.

CVSS Scores

version 3.1