Description
llama.cpp builds b1886 through b7445 contain a double free vulnerability in the LLaMA-Android JNI wrapper where new_1batch() allocates memory using malloc() while free_1batch() deallocates it using the C++ delete operator, causing heap metadata corruption. Attackers can trigger this memory management mismatch to cause denial of service through process crashes or potentially achieve arbitrary code execution depending on allocator state.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-762 — CWE-762 Mismatched Memory Management Routines
- CWE-415 — CWE-415 Double Free
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ggml-org | llama.cpp | b1886 to <=b7445; 0.9.0 to <=0.17.1; 5c0d18881e0e9794c96b2602736b758bac9d9388 |
References
Generated from the official CVE List on 07 Aug 2026 07:02 UTC.