Use-after-free in Lua - CVE-2021-44964

 

Use-after-free in Lua - CVE-2021-44964

Published: February 28, 2023


Vulnerability identifier: #VU72632
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-44964
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a use-after-free error in garbage collector and finalizer of lgc.c. A remote attacker can pass specially crafted script file to the application, trigger a use-after-free error and perform a denial of service (DoS) attack.



Affected software

Lua
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
lua
lua-devel
lua-debuginfo
lua-debugsource
lua-help
lua (Red Hat package)
Red Hat OpenShift Container Platform
OpenShift Data Foundation (formerly OpenShift Container Storage)

How to mitigate CVE-2021-44964

Install updates from vendor's website.

Lua - update to 5.4.4
Red Hat OpenShift Container Platform - update to 4.13.0
OpenShift Data Foundation (formerly OpenShift Container Storage) - update to 4.13.0
lua - update to 5.4.3-8
lua-devel - update to 5.4.3-8
lua-debuginfo - update to 5.4.3-8
lua-debugsource - update to 5.4.3-8
lua-help - update to 5.4.3-8
lua (Red Hat package) - addressed in versions 5.4.4-1.el9_0.1, 5.4.4-2.el9_1

External References

Related Security Bulletins