p PatchFirst

CVE-2025-49847

CVE-2025-49847 · llama.cpp Vulnerable to Buffer Overflow via Malicious GGUF Model

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

llama.cpp is an inference of several LLM models in C/C++. Prior to version b5662, an attacker‐supplied GGUF model vocabulary can trigger a buffer overflow in llama.cpp’s vocabulary‐loading code. Specifically, the helper _try_copy in llama.cpp/src/vocab.cpp: llama_vocab::impl::token_to_piece() casts a very large size_t token length into an int32_t, causing the length check (if (length < (int32_t)size)) to be bypassed. As a result, memcpy is still called with that oversized size, letting a malicious model overwrite memory beyond the intended buffer. This can lead to arbitrary memory corruption and potential code execution. This issue has been patched in version b5662.

CVSS 8.8 · Élevée · EPSS 0,5% · Correctif disponible

Publication
Mise à jour

Pile logicielle: system

Produits et versions concernés

  • llama.cpp

    Versions du logiciel
    • < b5662: Concernée

    Aucun correctif publié

  • llama.cpp Debian:14

    Versions du logiciel
    • 5151+dfsg-1~exp2
    • 5151+dfsg-1~exp3
    • 5318+dfsg-1
    • 5318+dfsg-2
    Plages de versions concernées
    • ECOSYSTEM: < 5713+dfsg-1

    Mettez à jour vers 5713+dfsg-1

  • llama.cpp Ubuntu:25.10

    Versions du logiciel
    • 5318+dfsg-1
    • 5318+dfsg-2
    • 5713+dfsg-1
    • 5760+dfsg-1
    • 5760+dfsg-3
    • 5760+dfsg-4
    • 5882+dfsg-2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • llama.cpp Ubuntu:26.10

    Versions du logiciel
    • 8681+dfsg-1
    • 9721+dfsg-1ubuntu1
    • 10438+dfsg-1
    • 10438+dfsg-1ubuntu1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • llama.cpp Ubuntu:26.04:LTS

    Versions du logiciel
    • 5882+dfsg-2
    • 8064+dfsg-1ubuntu1
    • 8681+dfsg-1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

Sources originales

Vérifiez votre serveur →