Hayaki Saito (saitoha)のlibsixelにおける解放済みメモリの使用に関する脆弱性
| Title |
Hayaki Saito (saitoha)のlibsixelにおける解放済みメモリの使用に関する脆弱性
|
| Summary |
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で修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
April 14, 2026, midnight |
| Registration Date |
April 24, 2026, 11:37 a.m. |
| Last Update |
April 24, 2026, 11:37 a.m. |
|
CVSS3.0 : 重要
|
| Score |
7.3
|
| Vector |
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
Affected System
| Hayaki Saito (saitoha) |
|
libsixel 1.8.7-r1 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月24日] 掲載 |
April 24, 2026, 11:37 a.m. |
NVD Vulnerability Information
CVE-2026-33021
| Summary |
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.
|
| Publication Date |
April 15, 2026, 8:16 a.m. |
| Registration Date |
April 15, 2026, 11:42 a.m. |
| Last Update |
April 23, 2026, 11:23 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:* |
|
|
|
1.8.7-r1 |
Related information, measures and tools
Common Vulnerabilities List