AUGUST 16, 2026
Live Feed
Back to database
Case File

CVE-2026-70640

HIGH · CVSS 7 EPSS 0.16% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-08-06 · Last synced 2026-08-16

CyberRota Analysis

AI-Generated

The LLaMA-Android JNI wrapper in specific builds of llama.cpp is vulnerable due to a race condition use-after-free, which arises from a lack of synchronization between memory operations in multi-threaded scenarios. This vulnerability allows attackers to exploit the situation by manipulating memory, potentially leading to remote code execution through arbitrary memory dereferencing. Android developers and organizations utilizing affected versions should prioritize addressing this vulnerability to mitigate the risk of exploitation.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

Detected Signals
exploit remote code execution code execution

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-70640
Severity
HIGH
CVSS
7
EPSS
0.16%
Android

Original NVD 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.