CVE-2026-43622

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.

Scoring

Severity
HIGH
CVSS base score
8.5
CVSS 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
EPSS probability
0.16%
CWE
CWE-762, CWE-415, CWE-762, CWE-415
Published
2026-08-06
Last modified
2026-08-14

Affected products

Weakness type

Related vulnerabilities

Markdown version · Browse all CVEs