{"affected":[{"defaultStatus":"unaffected","product":"llama.cpp","source":"CNA: VulnCheck","vendor":"ggml-org","versions":[{"lessThanOrEqual":"b7445","status":"affected","version":"b1886","versionType":"custom"},{"status":"unaffected","version":"5c0d18881e0e9794c96b2602736b758bac9d9388","versionType":"git"}]}],"cveId":"CVE-2026-70638","cwes":["CWE-190","CWE-122"],"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.","epss":{"date":"2026-11-08","percentile":0.13973,"score":0.00231},"exploits":[],"kev":null,"metrics":[{"score":8.5,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},{"score":7.8,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1794146912070,"publishedAt":1786030508090,"references":[{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b7446"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388"},{"source":"CNA: VulnCheck","tags":["related"],"url":"https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-integer-overflow-via-new-1batch-in-llama-android-cpp"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388"}],"revision":"b6b01ba7c675beb7a9158561e94b43388bc3274933625f7954b4a926978d7af5","sources":[{"modifiedAt":1794146912070,"name":"CNA: VulnCheck","retrievedAt":1794151321953,"url":"https://www.cve.org/CVERecord?id=CVE-2026-70638"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1794151338325,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-70638"}],"ssvc":{"assessedAt":1786115831050,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"total"},"status":"published","title":"llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp","updatedAt":1794151338325}