llamaCVEVulnerability Intelligence
/
llama.cpp

CVE-2026-70640

llama.cpp b1886–b7445 Race Condition Use-After-Free via llama-android.cpp

Specific setups onlyParche disponibleNULL pointer dereference
Descargar PNG JSON
CVSS 4.0
7.3
Alta
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 Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónb7446
Exposición104 dDesde la divulgación, 6 ago 2026, 10:38 a. m.
Detección83 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Remediación
Monitoreo
Detectada +2
Verificada
6 ago 26
7 ago 26
29 oct 26
13 nov 26
16 nov 26
19 nov 26
6 ago 26
1 sept 26
28 sept 26
24 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-70640 divulgada · CVSS 7.3 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Affects llama.cpp builds b1886 through b7445 through the LLaMA-Android JNI wrapper, where bench_1model() and free_1context() are not synchronized. Fixed in b7446.

¿Qué significa?In the LLaMA-Android JNI wrapper, bench_1model() and free_1context() are not synchronized, so one thread can free the llama_context while another thread still uses it. The advisory says this use-after-free can be used to achieve remote code execution.
¿Quién está afectado?Builds of llama.cpp from b1886 through b7445 are affected. To check a build, compare its build tag against that range and see whether the LLaMA-Android JNI wrapper is in use.
¿Qué hacer?Upgrade to llama.cpp b7446, the fixed release listed for this vulnerability.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Builds of llama.cpp from b1886 through b7445 are affected.“llama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability”
02
The race is in the LLaMA-Android JNI wrapper, where bench_1model() and free_1context() are not synchronized, so one thread can free the llama_context while another uses it.“bench_1model() and free_1context() lack synchronization”
¿Quién debe revisar?Teams shipping llama.cpp builds b1886 through b7445 that use the LLaMA-Android JNI wrapper (llama-android.cpp).
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:L
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:P
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
llama.cpp≥ b1886 ≤ b7445
b1886
b7445
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
llama.cpp
Corregida b7446 — —
Versiones corregidasb7446
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Registro
EscenarioGENERALVulnCheck
Referencias
Parchehttps://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388
Otrahttps://github.com/ggml-org/llama.cpp/releases/tag/b7446
Otrahttps://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches
Otrahttps://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-race-condition-use-after-free-via-llama-android-cpp
Otrahttps://www.youtube.com/watch?v=_FKX5hDwgVE&t=1079s
Otrahttps://www.cyera.com/research/breaking-local-ai-runtimes-10-vulnerabilities-in-the-engine-behind-your-open-source-models

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.