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.
Published: 2026-08-06
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Fri, 07 Aug 2026 02:15:00 +0000

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp

Thu, 06 Aug 2026 22:15:00 +0000

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'}


Subscriptions

Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-06T15:47:07.635Z

Reserved: 2026-08-04T20:17:18.298Z

Link: CVE-2026-70639

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T02:00:06Z

Weaknesses