| タイトル | Hayaki Saito (saitoha)のlibsixelにおける解放済みメモリの使用に関する脆弱性 |
|---|---|
| 概要 | libsixelはkmiyaのsixelに由来するSIXELエンコーダ/デコーダの実装です。バージョン1.8.7以前のlibsixelには、sixel_encoder_encode_bytes()関数にuse-after-freeの脆弱性が含まれていました。これは、sixel_frame_init()が呼び出し元所有のピクセルバッファポインタを防御的コピーを行わずに直接frame-pixelsに格納するために発生します。リサイズ操作がトリガーされると、sixel_frame_convert_to_rgb888()がこの呼び出し元所有のバッファを無条件に解放し、新しい内部割り当てに置き換えます。その結果、呼び出し元には未使用のポインタが残ることになります。呼び出し元が元のバッファにアクセスするとuse-after-freeとなり、AddressSanitizerによって検出されています。受信フレームを制御できる攻撃者は、このバグを繰り返しかつ予測可能にトリガーし、信頼性の高いクラッシュおよびコード実行を引き起こす可能性があります。この問題はバージョン1.8.7-r1で修正されました。 |
| 想定される影響 | 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年4月14日0:00 |
| 登録日 | 2026年4月24日11:37 |
| 最終更新日 | 2026年4月24日11:37 |
| CVSS3.0 : 重要 | |
| スコア | 7.3 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| Hayaki Saito (saitoha) |
| libsixel 1.8.7-r1 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年04月24日] 掲載 |
2026年4月24日11:37 |
| 概要 | libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain a use-after-free vulnerability in sixel_encoder_encode_bytes() because sixel_frame_init() stores the caller-owned pixel buffer pointer directly in frame->pixels without making a defensive copy. When a resize operation is triggered, sixel_frame_convert_to_rgb888() unconditionally frees this caller-owned buffer and replaces it with a new internal allocation, leaving the caller with a dangling pointer. Any subsequent access to the original buffer by the caller constitutes a use-after-free, confirmed by AddressSanitizer. An attacker who controls incoming frames can trigger this bug repeatedly and predictably, resulting in a reliable crash with potential for code execution. This issue has been fixed in version 1.8.7-r1. |
|---|---|
| 公表日 | 2026年4月15日8:16 |
| 登録日 | 2026年4月15日11:42 |
| 最終更新日 | 2026年4月23日23:23 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:* | 1.8.7-r1 | ||||