llama.cppの脆弱性、細工したGGUFモデルで heap 領域の外に書き込まれるおそれ
Summary
llama.cppのb5899以降b10261より前のバージョンには、plamo2トークナイザーの処理に脆弱性があります。細工したGGUFモデルを読み込ませると、ヒープメモリの範囲外に書き込まれ、異常終了やコード実行につながるおそれがあります。修正版はb10261です。すでに利用している場合は、b10261以降に更新してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
llama.cppのb5899以降b10261より前のバージョンには、plamo2トークナイザーの処理に脆弱性があります。細工したGGUFモデルを読み込ませると、ヒープメモリの範囲外に書き込まれ、異常終了やコード実行につながるおそれがあります。修正版はb10261です。すでに利用している場合は、b10261以降に更新してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| ggml-org | llama.cpp |
≥ b5899, < b10261 |
b10261 |
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2026-116816 llama.cpp Fixed in: 10271+dfsg-1
- Ubuntu UBUNTU-CVE-2026-116816 llama.cpp
Original description The description as published by the source.
llama.cpp b5899 before b10261 contains a heap out-of-bounds write vulnerability in llm_tokenizer_plamo2::build that allows attackers to corrupt heap memory via crafted GGUF models. Attackers can supply BYTE-typed token text like <0x-1> whose negative parsed value writes token ids before the bytes_ buffer during model loading, causing crashes or potential code execution.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com
- web github.com