Bug 2185579 (CVE-2021-45985) - CVE-2021-45985 lua: heap-based buffer over-read
Summary: CVE-2021-45985 lua: heap-based buffer over-read
Keywords:
Status: NEW
Alias: CVE-2021-45985
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2185580
TreeView+ depends on / blocked
 
Reported: 2023-04-10 11:20 UTC by Avinash Hanwate
Modified: 2024-03-18 17:46 UTC (History)
15 users (show)

Fixed In Version: Lua 5.4.4
Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow issue was found in Lua Interpreter. The vulnerability can be exploited when an erroneous finalizer calls during a tail call with an invalid stack, triggering an out-of-bounds read, leading to a crash or a denial of service.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2023-04-10 11:20:07 UTC
In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.

https://www.lua.org/bugs.html#5.4.3-11
https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5
http://lua-users.org/lists/lua-l/2021-12/msg00019.html


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