Learn about CVE-2021-45985 where Lua 5.4.3 has a heap-based buffer over-read due to an erroneous finalizer, allowing unauthorized memory access. Find mitigation steps and long-term security practices here.
Lua 5.4.3 contains a vulnerability where an erroneous finalizer called during a tail call results in a heap-based buffer over-read.
Understanding CVE-2021-45985
Lua 5.4.3 vulnerability leading to a heap-based buffer over-read.
What is CVE-2021-45985?
In Lua 5.4.3, an incorrect finalizer invoked during a tail call causes a heap-based buffer over-read.
The Impact of CVE-2021-45985
The vulnerability can be exploited to read sensitive information from memory, potentially leading to a leakage of confidential data.
Technical Details of CVE-2021-45985
Lua 5.4.3 vulnerability technical aspects.
Vulnerability Description
An erroneous finalizer triggered during a tail call can result in a heap-based buffer over-read, allowing unauthorized access to memory contents.
Affected Systems and Versions
Exploitation Mechanism
The vulnerability can be exploited by invoking a specific sequence of tail calls to trigger the erroneous finalizer and read beyond the bounds of allocated memory.
Mitigation and Prevention
Steps to mitigate the Lua 5.4.3 vulnerability.
Immediate Steps to Take
Long-Term Security Practices
Patching and Updates
Ensure timely installation of patches and updates released by the Lua community to address security issues.