Double Free Affecting llama.cpp package, versions <7593+dfsg-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.13% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN14-LLAMACPP-18572980
  • published7 Aug 2026
  • disclosed6 Aug 2026

Introduced: 6 Aug 2026

NewCVE-2026-43622  (opens in a new tab)
CWE-415  (opens in a new tab)
CWE-762  (opens in a new tab)

How to fix?

Upgrade Debian:14 llama.cpp to version 7593+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream llama.cpp package and not the llama.cpp package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1