CVE-2026-70640
CVE-2026-70640 — llama.cpp b1886–b7445 Race Condition Use-After-Free via llama-android.cpp
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.
Published Updated Sources: cvelistV5, VulnCheck
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.0
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.0 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-476
- CWE-362
References
6 on the record
- github.com/ggml-org/llama.cpp/releases/tag/b7446
release-notes
- github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388
patch
- github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches
related
- www.vulncheck.com/advisories/llama-cpp-b1886-b7445-race-condition-use-after-free-via-llama-android-cpp
third-party-advisory
- www.youtube.com/watch?v=_FKX5hDwgVE&t=1079s
reference
- www.cyera.com/research/breaking-local-ai-runtimes-10-vulnerabilities-in-the-engine-behind-your-open-source-models
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-137567 llama.cpp b11450 before b12658 Out-of-Bounds Write via RPC copy_tensorCVSS 9.8
- CVE-2021-21166 Google Chromium Race Condition VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2020-6820 Mozilla Firefox And Thunderbird Use-After-Free VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2020-6819 Mozilla Firefox And Thunderbird Use-After-Free VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2025-43510 Apple Multiple Products Improper Locking VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2023-36884 Microsoft Windows Search Remote Code Execution VulnerabilityCVSS 7.5 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.