CVE-2026-70640llama.cpp b1886–b7445 Race Condition Use-After-Free via llama-android.cpp
Updated under an hour ago ()
Does this affect you?
It affects ggml-org llama.cpp and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 7.0 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-476, CWE-362
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- VulnCheck
- NVD analysis
- Analyzed
- Record last updated
- Aug 14, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
ggml-org llama.cpp ggml_org:llama.cpp (from the name) | from b1886 through b7445; from 0.9.0 through 0.17.1; 5c0d18881e0e9794c96b2602736b758bac9d9388 not affected | CNA record |
ggml llama.cpp ggml:llama.cpp | from b1886 through b7445 | NVD |
References
- https://github.com/ggml-org/llama.cpp/releases/tag/b7446release-notes, patch, vendor-advisory
- https://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388patch
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patchesrelated, patch, third-party-advisory
- https://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-race-condition-use-after-free-via-llama-android-cppthird-party-advisory, exploit
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.