Bug 2073884 (CVE-2022-28805) - CVE-2022-28805 lua: heap buffer overread
Summary: CVE-2022-28805 lua: heap buffer overread
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-28805
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2073889 2074542
Blocks: 2073886
TreeView+ depends on / blocked
 
Reported: 2022-04-11 04:04 UTC by Avinash Hanwate
Modified: 2023-05-09 15:45 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A heap buffer-overflow vulnerability was found in Lua. The flaw occurs due to vulnerable code present in the lparser.c function of Lua that allows the execution of untrusted Lua code into a system, resulting in malicious activity.
Clone Of:
Environment:
Last Closed: 2023-05-09 15:45:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2582 0 None None None 2023-05-09 08:01:05 UTC

Description Avinash Hanwate 2022-04-11 04:04:28 UTC
singlevar in lparser.c in Lua through 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

https://lua-users.org/lists/lua-l/2022-02/msg00001.html
https://lua-users.org/lists/lua-l/2022-02/msg00070.html
https://lua-users.org/lists/lua-l/2022-04/msg00009.html
https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa

Comment 1 Avinash Hanwate 2022-04-11 04:21:49 UTC
Created lua tracking bugs for this issue:

Affects: fedora-all [bug 2073889]

Comment 4 errata-xmlrpc 2023-05-09 08:01:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2582 https://access.redhat.com/errata/RHSA-2023:2582

Comment 5 Product Security DevOps Team 2023-05-09 15:45:03 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-28805


Note You need to log in before you can comment on or make changes to this bug.