CVE-2024-58399 llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets
MediumCVSS 6.9
EPSS 0.12%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights.
Upgrade path
3 packages: 1 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/llama.cpp(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/llama.cpp(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ggml-org llama.cpp | >= b1046, < b2731 | b2731 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ggml-org llama.cpp | >= b1046, < b2731 | b2731 |
| ubuntu/llama.cpp(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/llama.cpp(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com issue-tracking
- github.com issue-tracking patch
- github.com patch
- github.com technical-description
- llama.cpp b2731 Release Notes release-notes
- VulnCheck Advisory: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2024-58399 vendor-advisory
- ENISA EUVD EUVD-2024-55826 third-party-advisory