PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-70638 ggml-org CVE debrief

The LLaMA-Android JNI wrapper in llama.cpp builds b1886 through b7445 contains an integer overflow vulnerability in the new_1batch() function. This function multiplies sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation, causing heap buffer allocation to wrap and allocate insufficient memory. This vulnerability can lead to denial of service or arbitrary code execution on Android applications using the LLaMA-Android binding. The CVE record was published on 2026-08-06T22:18:28.633Z and has not been modified since then. The NVD entry is currently Awaiting Analysis. Further analysis is needed to fully understand the scope of affected systems and potential mitigations. Android application developers and users who utilize the LLaMA-Android binding, as well as security teams responsible for monitoring and mitigating vulnerabilities in their organization's systems, should review and apply patches or updates from the vendor, restrict input to the new_1batch() function to prevent overflow, monitor systems using the LLaMA-Android binding for suspicious activity, and implement additional security controls to prevent exploitation.

Vendor
ggml-org
Product
llama.cpp
CVSS
HIGH 8.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-06
Original CVE updated
2026-08-31
Advisory published
2026-08-06
Advisory updated
2026-08-31

Who should care

Android application developers and users who utilize the LLaMA-Android binding, as well as security teams responsible for monitoring and mitigating vulnerabilities in their organization's systems, should review and apply patches or updates from the vendor, restrict input to the new_1batch() function to prevent overflow, monitor systems using the LLaMA-Android binding for suspicious activity, and implement additional security controls to prevent exploitation. The vulnerability requires immediate attention due to its potential for denial of service or arbitrary code execution. The LLaMA-Android JNI wrapper's new_1batch() function requires immediate attention due to its potential for denial of service or arbitrary code execution. The CVE record was published on 2026-08-06T22:18:28.633Z and has not been modified since then. The NVD entry is currently Awaiting Analysis. Further analysis is needed to fully understand the scope of affected systems and potential mitigations. The vulnerability affects llama.cpp builds b1886 through b7445. The LLaMA-Android JNI wrapper's new_1batch() function is vulnerable to an integer overflow when multiplying sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation. This can cause heap buffer allocation to wrap and allocate insufficient memory, leading to denial of service or arbitrary code execution. The vulnerability requires immediate attention due to its potential for denial of service or arbitrary code execution. The LLaMA-Android JNI wrapper's new_1batch() function requires immediate attention due to its potential for denial of service or arbitrary code execution. The CVE record was published on 2026-08-06T22:18:28.633Z and has not been modified since then. The NVD entry is currently Awaiting Analysis. Further analysis is needed to fully understand the scope of affected systems and potential mitigations. The vulnerability affects llama.cpp builds b1886 through b7445. The LLaMA-Android JNI wrapper's new_1batch() function is vulnerable to an integer overflow when multiplying sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation. This can cause heapbuffer

Technical summary

The LLaMA-Android JNI wrapper's new_1batch() function is vulnerable to an integer overflow when multiplying sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation. This can cause heap buffer allocation to wrap and allocate insufficient memory, leading to denial of service or arbitrary code execution. The vulnerability affects llama.cpp builds b1886 through b7445. The CVE record was published on 2026-08-06T22:18:28.633Z and has not been modified since then.

Defensive priority

This integer overflow vulnerability in the LLaMA-Android JNI wrapper's new_1batch() function requires immediate attention due to its potential for denial of service or arbitrary code execution.

Recommended defensive actions

  • Review and apply patches or updates from the vendor
  • Restrict input to the new_1batch() function to prevent overflow
  • Monitor systems using the LLaMA-Android binding for suspicious activity
  • Implement additional security controls to prevent exploitation
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed

Evidence notes

The CVE record and NVD entry provide details on the integer overflow vulnerability in llama.cpp builds b1886 through b7445. Further analysis is needed to fully understand the scope of affected systems and potential mitigations. The LLaMA-Android JNI wrapper's new_1batch() function is vulnerable to an integer overflow when multiplying sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation. This can cause heap buffer allocation to wrap and allocate insufficient memory, leading to denial of service or arbitrary code execution. Android application developers and users who utilize the LLaMA-Android binding, as well as security teams responsible for monitoring and mitigating vulnerabilities in their organization's systems, should review and apply patches or updates from the vendor, restrict input to the new_1batch() function to prevent overflow, monitor systems using the LLaMA-Android binding for suspicious activity, and implement additional security controls to prevent exploitation.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-70638 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-70638

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-70638 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-70638

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.