Database/AI/ML frameworks & serving

llama.cpp: race between bench and context-free in the Android JNI wrapper gives use-after-free code execution
Impact
Builds b1886 through b7445 let two threads in the LLaMA-Android JNI wrapper operate on the same llama_context while one frees it, because bench_1model() and free_1context() have no synchronization. The record describes heap-spray control of the freed object leading to code execution in the inference process. The exposure is in the Android JNI binding, not the server binaries a GPU fleet typically runs, so for datacenter operators this matters only where llama.cpp is embedded through that wrapper; the CVSS vector is local with user interaction. If you do ship that wrapper, an attacker who can drive both calls gets execution with the privileges of the inference process.
Who can reach it
Local, requires the ability to invoke the JNI bench and free paths concurrently in a process embedding llama.cpp's Android wrapper; the vector is rated local with user interaction and no authentication stated.
What to do
Upgrade to llama.cpp build b7446 or later, which adds the missing synchronization, and restart any service that embeds the library. No node reboot or firmware work is involved.
References
Related entries
- CodeWhale agent: exec_shell_interact auto-approves, letting injected content drive an approved root shellCVE-2026-75857 · CodeWhale / deepseek-tui coding agent (exec_shell_interact auto-approval)High
- JupyterHub: A user granted limited access can escalateCVE-2024-41942 · JupyterHubHigh
- Weaviate: Crafted entry name with an absolute pathCVE-2025-67818 · WeaviateHigh
- Kubeflow Pipelines: any authenticated user can modify or delete shared pipelines without RBACCVE-2026-88984 · Kubeflow Pipelines multi-user API server (shared-pipeline authorization)High
- llama.cpp (`gguf_init_from_file`): Use of uninitialized heap variableCVE-2024-32878 · llama.cpp (`gguf_init_from_file`)High
- MLflow: basic-auth app leaves tracing and assessment endpoints without permission checksCVE-2025-15381 · MLflow Tracking Server (basic-auth app: tracing and assessment endpoints)High
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.