A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
llama.cpp builds b1886 through b7445 contain an integer overflow vulnerability in the LLaMA-Android JNI wrapper where the new_1batch() function multiplies sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation, causing heap buffer allocation to wrap and allocate insufficient memory. Attackers can exploit this by providing a crafted n_seq_max value through a malicious model file or JNI call to trigger heap corruption and achieve denial of service or arbitrary code execution on Android applications using the LLaMA-Android binding.
Affected products
From the NVD's configuration data (CPE), vendor first.
- Ggml llama.cpp
Weakness type
References
- github.com /Vladimir-tokarev-cyera/llama-cpp-security-patches
- github.com /ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758b…
- github.com /ggml-org/llama.cpp/releases/tag/b7446
- www.vulncheck.com /advisories/llama-cpp-b1886-b7445-integer-overflow-via-new-…
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning