Skip to content
HighVulnerabilityLLM-specific

CVE-2026-43622: llama.cpp double free in LLaMA-Android JNI wrapper

Identifier
CVE-2026-43622
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

llama.cpp builds b1886 through b7445 contain a double free vulnerability in the LLaMA-Android JNI wrapper. The function new_1batch() allocates memory with malloc(), but free_1batch() releases it with the C++ delete operator, corrupting heap metadata. Attackers can trigger this allocator mismatch to crash the process, and potentially achieve arbitrary code execution depending on allocator state.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.