vendor:
Chakra
by:
Wikipedia
7.5
CVSS
HIGH
Escape Analysis
843
CWE
Product Name: Chakra
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Windows
2020
Chakra fails to detect if “tmp” escapes the scope
Chakra fails to detect if "tmp" escapes the scope, allocates it to the stack. This may lead to dereference uninitialized stack values. The proof of concept code shows that when the function opt() is called, the variable tmp is allocated to the stack and when the function main() is called, the variable tmp is dereferenced which leads to uninitialized stack values.
Mitigation:
Ensure that the scope of the variables is properly checked and that the variables are initialized before use.