PT-2026-68793 · Llama.Cpp · Llama.Cpp

CVE-2026-70638

·

Published

2026-08-06

·

Updated

2026-08-07

CVSS v4.0

8.5

High

VectorAV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions llama.cpp versions b1886 through b7445
Description An integer overflow exists in the LLaMA-Android JNI wrapper. The new 1batch() function multiplies the size of llama seq id by the n seq max parameter without validating for overflows. This can lead to a heap buffer allocation wrap, resulting in insufficient memory allocation. An attacker can provide a crafted n seq max value via a malicious model file or JNI call to cause heap corruption, potentially leading to denial of service or arbitrary code execution on Android applications utilizing the LLaMA-Android binding.
Recommendations Update llama.cpp to a version later than b7445.

Exploit

Fix

DoS

Integer Overflow

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-70638

Affected Products

Llama.Cpp