CVE Catalog

CVE-2026-43622

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

3th percentile - higher than 3% of all known CVEs

Summary

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.

Risk Assessment

The risk includes process crashes that can lead to application unavailability, and potential arbitrary code execution, which could allow an attacker to take control of the system. The vulnerability may be exploitable remotely if the application processes user input.

Recommendation

It is recommended to update llama.cpp to a version newer than b7445 that contains the fix. Also, avoid processing untrusted input in applications using this JNI wrapper.

Other vulnerabilities in llama.cpp

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS