CVE-2026-70638
published high CVSS 4.0 · 8.5llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ggml-org | — | llama.cppb1886 through b7445 (affected · custom) · 5c0d18881e0e9794c96b2602736b758bac9d9388 (unaffected · git) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggml-org | llama.cpp | b1886 through b7445 (affected · custom)5c0d18881e0e9794c96b2602736b758bac9d9388 (unaffected · git)Default: unaffected | VulnCheck · cna |
Weaknesses
2- CWE-190 Integer Overflow or Wraparound
- CWE-122 Heap-based Buffer Overflow
References
4- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches
- https://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388
- llama.cpp b7446 Release Notes https://github.com/ggml-org/llama.cpp/releases/tag/b7446
- https://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-integer-overflow-via-new-1batch-in-llama-android-cpp
Provider assertions
2VulnCheck · cna
llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f5eb8af38fcefb334eda87921e187b5d01c8c1f4b2fdfaff62fbd6da206c364
- Ingested
- 08 Nov 2026, 14:15:24 UTC
- Source record
- Official CVE record