CVE-2024-32878: Use of Uninitialized Variable Vulnerability in llama.cpp
Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in ggufinitfromfile, the code will free this uninitialized variable later. In a simple POC, it will directly cause a crash. If the file is carefully constructed, it may be possible to control this uninitialized value and cause arbitrary address free problems. This may further lead to be exploited. Causes llama.cpp to crash (DoS) and may even lead to arbitrary code execution (RCE). This vulnerability has been patched in commit b2740.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-32878?
CVE-2024-32878 is considered to be a medium severity vulnerability due to its potential to cause crashes through uninitialized heap variables.
How do I fix CVE-2024-32878?
To fix CVE-2024-32878, ensure that any heap variables are properly initialized before they are used in the code.
What software is affected by CVE-2024-32878?
CVE-2024-32878 affects Llama.cpp, particularly in its method gguf_init_from_file.
Can CVE-2024-32878 be exploited remotely?
CVE-2024-32878 has the potential to be exploited if an attacker can provide a specially crafted file to trigger the vulnerability.
What are the consequences of CVE-2024-32878?
The consequences of CVE-2024-32878 include application crashes and potential denial of service if exploited.