CVE Vulnerabilities

CVE-2021-44964

Use After Free

Published: Mar 14, 2022 | Modified: Nov 21, 2024
CVSS 3.x
6.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7 IMPORTANT
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.

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
LuaLua5.4.0 (including)5.4.3 (including)
Red Hat Enterprise Linux 9RedHatlua-0:5.4.4-2.el9_1*
Red Hat Enterprise Linux 9RedHatlua-0:5.4.4-2.el9_1*
Red Hat Enterprise Linux 9.0 Extended Update SupportRedHatlua-0:5.4.4-1.el9_0.1*
Lua5.1Ubuntuimpish*
Lua5.1Ubuntutrusty*
Lua5.1Ubuntuxenial*
Lua5.2Ubuntuimpish*
Lua5.2Ubuntutrusty*
Lua5.2Ubuntutrusty/esm*
Lua5.2Ubuntuxenial*
Lua5.3Ubuntuimpish*
Lua5.3Ubuntutrusty*
Lua5.3Ubuntuxenial*
Lua5.4Ubuntuimpish*
Lua5.4Ubuntutrusty*
Lua50Ubuntubionic*
Lua50Ubuntufocal*
Lua50Ubuntuimpish*
Lua50Ubuntutrusty*
Lua50Ubuntuxenial*

Potential Mitigations

References