CVE Vulnerabilities

CVE-2022-48560

Use After Free

Published: Aug 22, 2023 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A use-after-free exists in Python through 3.9 via heappushpop in heapq.

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

NameVendorStart VersionEnd Version
PythonPython*3.6.11 (excluding)
PythonPython3.7.0 (including)3.7.7 (excluding)
PythonPython3.8.0 (including)3.8.2 (excluding)
PythonPython3.9.0-alpha1 (including)3.9.0-alpha1 (including)
PythonPython3.9.0-alpha2 (including)3.9.0-alpha2 (including)
Red Hat Enterprise Linux 8RedHatpython3-0:3.6.8-56.el8_9.2*
Red Hat Enterprise Linux 8RedHatpython27:2.7-8100020240208011952.5f0f67de*
Red Hat Enterprise Linux 8RedHatpython3-0:3.6.8-56.el8_9.2*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatpython3-0:3.6.8-47.el8_6.4*
Red Hat Enterprise Linux 8.8 Extended Update SupportRedHatpython3-0:3.6.8-51.el8_8.4*
PythonUbuntubionic*
PythonUbuntutrusty*
PythonUbuntuxenial*
Python2.7Ubuntubionic*
Python2.7Ubuntuesm-apps/focal*
Python2.7Ubuntuesm-apps/jammy*
Python2.7Ubuntuesm-infra-legacy/trusty*
Python2.7Ubuntuesm-infra/bionic*
Python2.7Ubuntuesm-infra/xenial*
Python2.7Ubuntufocal*
Python2.7Ubuntujammy*
Python2.7Ubuntutrusty*
Python2.7Ubuntutrusty/esm*
Python2.7Ubuntuxenial*
Python3.4Ubuntuesm-infra-legacy/trusty*
Python3.4Ubuntutrusty*
Python3.4Ubuntutrusty/esm*
Python3.5Ubuntuesm-infra-legacy/trusty*
Python3.5Ubuntuesm-infra/xenial*
Python3.5Ubuntutrusty*
Python3.5Ubuntutrusty/esm*
Python3.5Ubuntuxenial*
Python3.6Ubuntubionic*
Python3.6Ubuntuesm-infra/bionic*
Python3.6Ubuntuupstream*
Python3.7Ubuntubionic*
Python3.7Ubuntuesm-apps/bionic*
Python3.7Ubuntuupstream*
Python3.8Ubuntubionic*
Python3.8Ubuntuesm-apps/bionic*
Python3.8Ubuntuupstream*

Potential Mitigations

References