{"id":"CVE-2026-70638","published":"2026-08-06T15:35:08Z","modified":"2026-11-08T14:08:32Z","title":"llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp","vendor":"ggml-org","product":"llama.cpp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.14183,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b7446","tags":["release-notes"]},{"url":"https://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388","tags":["patch"]},{"url":"https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches","tags":["related"]},{"url":"https://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-integer-overflow-via-new-1batch-in-llama-android-cpp","tags":["third-party-advisory"]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":2.84},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"ggml-org","affectedVersions":[{"vendor":"ggml-org","product":"llama.cpp","versions":[">= b1886, <= b7445"]}],"fixedVersions":[{"vendor":"ggml-org","product":"llama.cpp","versions":["5c0d18881e0e9794c96b2602736b758bac9d9388"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-07T15:17:11.050589Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-54276","exploited":false,"provenance":"source"}}