7.8High
CVE-2026-43622llama.cpp b1886–b7445 Double Free via llama-android.cpp
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
- llama.cpp b7446 Release Notes release-notesPatchRelease NotesVendor Advisory
- https://github.com/ggml-org/llama.cpp/commit/5c0d18881e0e9794c96b2602736b758bac9d9388 patchPatch
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches PatchThird Party Advisory
- https://www.vulncheck.com/advisories/llama-cpp-b1886-b7445-double-free-via-llama-android-cpp third-party-advisoryPatchThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*≥ b1886 ≤ b7445