CVE-2026-70640
published high CVSS 4.0 · 7.3llama.cpp b1886–b7445 Race Condition Use-After-Free via 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 a race condition use-after-free vulnerability in the LLaMA-Android JNI wrapper where bench_1model() and free_1context() lack synchronization, allowing Thread A to operate on freed memory while Thread B concurrently frees the llama_context. Attackers can exploit this by performing heap spray with attacker-controlled data containing a fake vtable to hijack the vtable pointer at offset +0x30, causing llama_batch_allocr::clear() to dereference arbitrary memory and achieve remote code execution.
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
- 7.3 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:H/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.0 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:H/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-476 NULL Pointer Dereference
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
6- 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.cyera.com/research/breaking-local-ai-runtimes-10-vulnerabilities-in-the-engine-behind-your-open-source-models
- https://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-race-condition-use-after-free-via-llama-android-cpp
- https://www.youtube.com/watch?v=_FKX5hDwgVE&t=1079s
Provider assertions
3VulnCheck · cna
llama.cpp b1886–b7445 Race Condition Use-After-Free via llama-android.cpp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 425d5fd6f5b377e08cb0f495599f1f7829b2ad027d194f6634ebd61bbfe54477
- Ingested
- 13 Nov 2026, 21:32:13 UTC
- Source record
- Official CVE record