Skip to content
HighVulnerabilityLLM-specific

CVE-2026-70638: llama.cpp integer overflow in the LLaMA-Android JNI wrapper

Identifier
CVE-2026-70638
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

llama.cpp builds b1886 through b7445 contain an integer overflow in the LLaMA-Android JNI wrapper. The new_1batch() function multiplies sizeof(llama_seq_id) by an attacker-controlled n_seq_max without overflow validation, so the heap allocation wraps and is too small. A crafted n_seq_max value, supplied through a malicious model file or a JNI call, can cause heap corruption leading to denial of service or arbitrary code execution in Android applications using the binding.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.