7.8High

CVE-2026-43622llama.cpp b1886–b7445 Double Free via llama-android.cpp

ggml-org llama.cpp Published: (3 months ago)

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.

Weakness (CWE): CWE-762CWE-415

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
ggml llama.cpp b1886 – ≤ b7445
ggml-org llama.cpp b1886 – ≤ b7445

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:* ≥ b1886 ≤ b7445