Skip to content
OpenAdvisories
High · 7.8 CVE-2026-43622 EUVD-2026-54096GHSA-54rv-j2gm-hqfc

llama.cpp b1886–b7445 Double Free via llama-android.cpp

Published Aug 6, 2026 · Updated Nov 8, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
ggml-org llama.cpp b1886 – ≤ b7445 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 llama.cpp 7593+dfsg-1 —

References