CVE-2026-138094
llama.cpp accumulator narrows a large offset before buffer access
ggml-org · llama.cpp
First documented disclosure · Review checkpoint
Summary
An oversized tensor accumulation offset can wrap when stored as a signed operation parameter.
Severity and exploitation evidence
Medium · 4.8/10 · CVSS 4.0. Severity source.
Exploitation not established: Public researcher or maintainer evidence establishes the reported behavior, not malicious exploitation or identified victims. No payload, package, model or proof of concept was executed during this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
ggml_acc_impl narrowed its size_t offset into int32 operation parameters without the bound used by the sibling set operation. The final merged correction adds an offset limit in the constructor.
Conditions required
A caller controls an oversized accumulation offset and invokes the affected tensor operation. The original discussion also speculates about directly supplied RPC operation parameters, but the final patch does not independently validate that wire-level path.
Potential impact
The researcher reported out-of-bounds memory access under ASan. A reliable remote exploit or code execution is not established.
Affected versions and configurations
CNA enumerates 0.1 through 0.6.0 as affected.
Fix and mitigation status
Stable v0.7.0, released October 15, contains commit 8ae386707bed05f02354dbfc6fa5ee0cf58e5f0f, merged October 9. Tagged code confirms the constructor limit. This is not verification of every raw RPC operation-parameter path.
Practical next steps
Use the corrected constructor implementation and constrain untrusted tensor/RPC parameters; do not treat this constructor check as evidence of complete RPC input validation.
Operating lesson
Validate a wide value before narrowing it into a smaller signed representation.
Evidence and limits
The October 8 original PR discussed broader negative-offset checks than the final one-line constructor patch. The distinction is retained rather than treating an abandoned patch proposal as the shipped fix. Issuing CNA publication was 2026-11-28; this is distinct from the earlier original disclosure and any later index ingestion. Severity is VulDB CNA CVSS 4.0 Medium 4.8. CNA also supplies CVSS 3.1 Medium 4.4.
Sources
- Original public report
Primary source ·
- Final merged patch
Primary source ·
- Stable v0.7.0 release
Primary source ·
- Tagged constructor check
Primary source ·
- Issuing CNA record
Primary source ·