PT-2026-68793
CVE-2026-70638
·
Published
2026-08-06
·
Updated
2026-09-21
Description by
CVSS 4.0
8.5
HighMetricsAV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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.
Found an issue in the description? Have something to add? Feel free to write us 👾