CVE-2026-70639

llama.cpp b1886–b7445 Null Pointer Dereference DoS via llama-android.cpp

Published Aug 6, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI wrapper where the bench_1model() function fails to validate the model context pointer before dereferencing it. Attackers can supply a malicious, corrupt, or truncated model file to trigger a null context condition, causing a SIGSEGV crash that terminates the Android application process and results in denial of service.

Analysis

AI-generated

Technical impact

A null pointer dereference exists in the LLaMA-Android JNI wrapper within llama.cpp builds b1886 through b7445. The bench_1model() function does not validate the model context pointer, allowing an attacker to supply a malicious, corrupted, or truncated model file that causes a SIGSEGV crash and terminates the Android application process, resulting in a denial of service. This flaw is classified as CWE‑476, a null pointer dereference weakness. The primary impact is that the affected application becomes unavailable immediately upon loading the compromised model, creating a local service disruption. Confidentiality and integrity are not directly affected as the vulnerability does not lead to code execution or data leakage.

Affected Systems

The affected systems are Android applications built with the ggml‑org:llama.cpp project, specifically builds between b1886 and b7445 inclusive. Versions before b7446 and after are not impacted by this null pointer dereference. The vulnerability exists in the llama‑android.cpp wrapper of the project’s source code, which is included in the standard distribution of llama.cpp for Android platforms.

Risk and Exploitability

The CVSS score of 6.8 indicates a medium severity vulnerability. Because the exploit requires the attacker to supply a malicious model file to the application, the attack vector is local or requires some level of user interaction. The EPSS score is not available, so the likelihood of exploitation cannot be quantified, but the absence from the CISA KEV list means it is not known to be actively exploited in the wild. However, any environment where users can load arbitrary models poses a risk of denial of service if an attacker can provide a corrupted file.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update llama.cpp to release b7446 or later, which removes the NULL context validation flaw.
  • Verify the integrity of model files before loading, for example by checking checksums or digital signatures, to ensure only valid models are processed.
  • If upgrading immediately is not possible, restrict the application from loading external or user‑supplied model files, or enforce execution in a sandboxed environment to contain a crash.

Generated by OpenCVE AI on August 7, 2026 at 01:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Ggml
Ggml llama.cpp
CPEs cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
Vendors & Products Ggml
Ggml llama.cpp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp
Type Values Removed Values Added
Description llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI wrapper where the bench_1model() function fails to validate the model context pointer before dereferencing it. Attackers can supply a malicious, corrupt, or truncated model file to trigger a null context condition, causing a SIGSEGV crash that terminates the Android application process and results in denial of service.
Title llama.cpp b1886–b7445 Null Pointer Dereference DoS via llama-android.cpp
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:08 PM
Reserved
Aug 4, 2026, 8:17 PM
Status
Analyzed
Published
Aug 6, 2026, 10:18 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Moderate
Public date
Aug 6, 2026, 3:37 PM