CVE-2026-43622: CWE-762 Mismatched Memory Management Routines in ggml-org llama.cpp
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.
AI Analysis
Technical Summary
llama.cpp builds b1886 through 0.9.0 contain a double free vulnerability in the LLaMA-Android JNI wrapper. Specifically, new_1batch() allocates memory using malloc(), while free_1batch() incorrectly deallocates it using the C++ delete operator. This mismatched memory management causes heap metadata corruption. An attacker can exploit this flaw to cause denial of service through process crashes or potentially achieve arbitrary code execution depending on the allocator state.
Potential Impact
The vulnerability can cause denial of service by crashing the process due to heap corruption. Additionally, depending on the allocator state, it may allow an attacker to execute arbitrary code, posing a significant security risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been documented at this time.
CVE-2026-43622: CWE-762 Mismatched Memory Management Routines in ggml-org llama.cpp
Description
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 v4.0
Score 8.5high
Affected software
pkg:github/ggml-org/llama.cppRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
llama.cpp builds b1886 through 0.9.0 contain a double free vulnerability in the LLaMA-Android JNI wrapper. Specifically, new_1batch() allocates memory using malloc(), while free_1batch() incorrectly deallocates it using the C++ delete operator. This mismatched memory management causes heap metadata corruption. An attacker can exploit this flaw to cause denial of service through process crashes or potentially achieve arbitrary code execution depending on the allocator state.
Potential Impact
The vulnerability can cause denial of service by crashing the process due to heap corruption. Additionally, depending on the allocator state, it may allow an attacker to execute arbitrary code, posing a significant security risk.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround has been documented at this time.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-01T18:22:45.640Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a74ab40bf8831d539ec7475
Added to database: 08/06/2026, 15:41:52 UTC
Last enriched: 08/06/2026, 15:57:12 UTC
Last updated: 08/07/2026, 02:38:09 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.