HighVulnerabilityLLM-specific
CVE-2026-70640: llama.cpp use-after-free in the LLaMA-Android JNI wrapper enables code execution
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-70640
- Published
- Record updated
- Fixed in
- The source references a patch, a mitigation or a vendor advisory.
Summary
llama.cpp builds b1886 through b7445 contain a race condition use-after-free in the LLaMA-Android JNI wrapper, where bench_1model() and free_1context() lack synchronization. Thread A can operate on memory that Thread B has already freed from the llama_context. An attacker can exploit this through heap spraying with attacker-controlled data containing a fake vtable, hijacking the vtable pointer at offset +0x30 so that llama_batch_allocr::clear() dereferences arbitrary memory and achieves remote code execution.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Topics
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online