Heap-based buffer overflow in Lua - CVE-2022-33099
Published: November 2, 2022 / Updated: May 1, 2023
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The
vulnerability exists due to a boundary error in the luaG_runerror component. A remote attacker can send specially crafted data to the application, trigger a heap-based buffer overflow and perform a denial of service (DoS) attack.
Affected software
Oracle Linux
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Oracle Solaris
openEuler
Ubuntu
Fedora
NetObserv Operator
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
lua5.4 (Ubuntu package)
lua (Red Hat package)
lua
lua-devel
lua-debugsource
lua-debuginfo
lua-help
OpenShift Data Foundation (formerly OpenShift Container Storage)
How to mitigate CVE-2022-33099
lua5.4 (Ubuntu package) - update to Ubuntu Pro
OpenShift Data Foundation (formerly OpenShift Container Storage) - update to 4.13.0
lua (Red Hat package) - update to 5.4.2-4.el9_0.3
lua - update to 5.4.3-7
lua-devel - update to 5.4.3-7
lua-debugsource - update to 5.4.3-7
lua-debuginfo - update to 5.4.3-7
lua-help - update to 5.4.3-7
lua - addressed in versions 5.4.4-3.fc35, 5.4.4-3.fc36
External References
- https://lua-users.org/lists/lua-l/2022-05/msg00073.html
- https://lua-users.org/lists/lua-l/2022-05/msg00042.html
- https://www.lua.org/bugs.html#Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error:~:text=Lua%2Dstack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error
- https://lua-users.org/lists/lua-l/2022-05/msg00035.html
- https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/
Related Security Bulletins
- Heap-based buffer overflow in Lua
- Red Hat Enterprise Linux 9 update for lua
- Multiple vulnerabilities in NetObserv Operator
- Multiple vulnerabilities in Red Hat OpenShift Data Foundation 4.13
- Multiple vulnerabilities in Oracle Solaris third-party software
- Multiple vulnerabilities in Oracle Linux
- openEuler 22.03 LTS update for lua
- Ubuntu update for lua5.4
- Fedora 36 update for lua
- Fedora 35 update for lua