脆弱性の一覧へ戻る
編集部の見出し:stable-diffusion.cpp:不正な imatrix ファイルでヒープ破壊
NVD の情報
stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. From master-742-1a13107 until master-763-4fcc6fe, IMatrixCollector::load_imatrix in src/runtime/imatrix.cpp reuses the values and counts vectors for entries with the same tensor name but resizes them only when they are empty. An untrusted .imatrix file can provide a small nval for the first entry and a larger nval for a second entry with the same name, causing the accumulation loop to write attacker-controlled floating-point and integer values beyond both heap buffers. Loading the file through the --imat-in conversion path can corrupt the heap or crash the process before a model is required. This issue is fixed in master-763-4fcc6fe.
- 公開日
- 2026-11-05
- 最終更新(NVD)
- 2026-11-05
- NVD の状態
- Received
- 脆弱性の種類
- CWE-1284、CWE-787
深刻度(CVSS)
- 7.8 HighCVSS 3.1/副/評価:security-advisories@github.com
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
悪用の状況
CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。
EPSS:今後30日に悪用される推定確率 0.13%(全体の上位 97.5%、評価日 2026-11-06)
解消方法
- 解消方法の情報なし
「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。
編集部の記載(レポート掲載時)
レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。
2026-11-06 のレポートstable-diffusion.cpp:不正な imatrix ファイルでヒープ破壊
評価 7.8。NVD 一覧の記載。
参照(NVD)
- https://github.com/leejet/stable-diffusion.cpp/commit/4fcc6fef10c6f686801c6e257b22cd6a3deb906b
- https://github.com/leejet/stable-diffusion.cpp/pull/1750
- https://github.com/leejet/stable-diffusion.cpp/releases/tag/master-763-4fcc6fe
- https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-6q7q-2v9c-x8m7
NVD から取得:2026-11-06T17:55:25.774Z/EPSS 評価日:2026-11-06
This product uses the NVD API but is not endorsed or certified by the NVD.
悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。