CVE-2026-43622: llama.cpp builds b1886 through b7445 contain a double free vulnerability in the LLaMA-Android JNI wrapper wher
CVE-2026-43622 is a high-severity flaw (CVSS 7.8) affecting llama.cpp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-43622?
llama.cpp: upgrade to newer than b7445. Exact commands for each OS are on this page.
Is CVE-2026-43622 being exploited?
CVE-2026-43622 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-43622 affect?
CVE-2026-43622 affects llama.cpp. Severity is high (CVSS 7.8). 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 meta
How urgent is CVE-2026-43622?
Priority 31/100. High severity
Software pages
Android vulnerabilities · OpenAI and LLM tools vulnerabilities
Related CVEs
- CVE-2026-70640 HIGH 7.0 UPGRADE llama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability in the LLaMA-Androi
- CVE-2026-70638 HIGH 7.8 UPGRADE llama.cpp builds b1886 through b7445 contain an integer overflow vulnerability in the LLaMA-Android JNI wrappe
- CVE-2026-70639 MEDIUM 5.5 UPGRADE llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI
- CVE-2026-43629 HIGH 8.1 UPGRADE llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restor
- CVE-2026-43631 HIGH 8.1 UPGRADE llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in the vocab pointer o