| タイトル | Vimにおける境界外書き込みに関する脆弱性 |
|---|---|
| 概要 | Vimはオープンソースのコマンドラインテキストエディタです。バージョン9.2.0653以前では、src/spellfile.c内のtree_count_words()関数が、スペルファイルの単語トライの単語カウントフィールドを反復的に深さカウンターを用いて埋めます。このカウンターはトライ構造そのものによってのみ制限されており、固定長MAXWLEN要素のスタック配列(arridx[]、curi[]、wordcount[])のサイズとは照合されません。ユーザがスペル提案を呼び出す際に読み込まれる巧妙に作成された.spl/.sugファイルの組み合わせによって、下降が任意に深く駆動され、この関数がこれらの配列の範囲外に書き込む可能性があります。これはスタックの境界外書き込みであり、コールフレームを破壊してエディタをクラッシュさせます。この脆弱性はバージョン9.2.0653で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアが完全に停止する可能性があります。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年6月25日0:00 |
| 登録日 | 2026年6月29日11:10 |
| 最終更新日 | 2026年6月29日11:10 |
| CVSS3.0 : 重要 | |
| スコア | 7.8 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Vim |
| Vim 9.2.0653 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月29日] 掲載 |
2026年6月29日11:10 |
| 概要 | Vim is an open source, command line text editor. Prior to 9.2.0653, the tree_count_words() function in src/spellfile.c fills in the word-count fields of a spell-file word trie by walking it iteratively with a depth counter. The counter is bounded only by the trie structure itself; it is never checked against the size of the fixed MAXWLEN-element stack arrays it indexes (arridx[], curi[], wordcount[]). A crafted .spl/.sug file pair, loaded when the user invokes spell suggestion, can drive the descent arbitrarily deep, so the function writes past the end of those arrays. This is a stack out-of-bounds write that corrupts the call frame and crashes the editor. This vulnerability is fixed in 9.2.0653. |
|---|---|
| 公表日 | 2026年6月26日1:16 |
| 登録日 | 2026年6月27日4:29 |
| 最終更新日 | 2026年6月26日23:17 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* | 9.2.0653 | ||||