llama.cpp GGUF File Parsing Integer Overflow Denial-of-Service Vulnerability
The multimodal projector GGUF file parser in llama.cpp did not properly validate user-supplied data, leading to an integer overflow before a buffer was allocated. An attacker could exploit this by getting a victim to open a malicious file, causing a denial-of-service condition.
This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing bounds check on a size or count field in the GGUF metadata, allowing an integer overflow before buffer allocation.
Impact
An attacker could cause a denial-of-service condition on the system, but the target must open a malicious file.
What the attacker needed
Victim opens a malicious GGUF file
The fix
The vendor issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A file format parser reads numbers from a file to decide how much memory to reserve. If those numbers are not checked, they can wrap around to a tiny value, and the program then mishandles memory. Here the result is that the program crashes or becomes unusable, which is a denial of service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.