| Name | CVE-2024-58399 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| llama.cpp (PTS) | forky | 1:0.7.0+dfsg-2 | fixed |
| sid | 1:0.9.0+dfsg-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| llama.cpp | source | (unstable) | (not affected) | | | |
Notes
- llama.cpp <not-affected> (Fixed before initial upload to Debian)
https://github.com/ggml-org/llama.cpp/issues/6774
https://github.com/ggml-org/llama.cpp/pull/6885
Fixed by: https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d (v0.1.0, b2731)