CVE-2026-43622 PUBLISHED

llama.cpp b1886–b7445 Double Free via llama-android.cpp

Assigner: VulnCheck
Reserved: 01.05.2026 Published: 06.08.2026 Updated: 06.08.2026

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.

Metrics

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
CVSS Score: 8.5

Product Status

Vendor ggml-org
Product llama.cpp
Versions Default: affected
  • affected from b1886 to b7445 (incl.)
  • affected from 0.9.0 to 0.17.1 (incl.)
  • Version 5c0d18881e0e9794c96b2602736b758bac9d9388 is unaffected

Credits

  • Vladimir Tokarev (@G1ND1L4) - Vulnerability Research Tech Lead, Cyera finder
  • Ofek Itach (@ofekitach) - Security Research Team Lead, Cyera finder

References

Problem Types

  • CWE-762 Mismatched Memory Management Routines CWE
  • CWE-415 Double Free CWE