製品・ソフトウェアに関する情報
Tatsuhiro-tのNgtcp2におけるスタックベースのバッファオーバーフローの脆弱性
Title Tatsuhiro-tのNgtcp2におけるスタックベースのバッファオーバーフローの脆弱性
Summary

ngtcp2はIETFのQUICプロトコルのC言語による実装です。バージョン1.22.1より前のバージョンでは、ngtcp2_qlog_parameters_set_transport_params()関数がピアのトランスポートパラメータを境界チェックなしに固定長1024バイトのスタックバッファにシリアライズしていました。qlogが有効な場合、リモートピアはQUICハンドシェイク中に十分に大きなトランスポートパラメータを送信することで、バッファ境界を超える書き込みを引き起こし、スタックバッファオーバーフローを発生させる可能性があります。この問題はqlogコールバックを有効にし、信頼できないピアのトランスポートパラメータを処理するデプロイ環境に影響を与えます。本問題はバージョン1.22.1で修正されています。開発者がすぐにアップグレードできない場合は、クライアント側でqlogを無効化することが可能です。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 16, 2026, midnight
Registration Date May 28, 2026, 2:33 p.m.
Last Update May 28, 2026, 2:33 p.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected System
Tatsuhiro-t
Ngtcp2 1.22.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年05月28日]
  掲載
May 28, 2026, 2:33 p.m.

NVD Vulnerability Information
CVE-2026-40170
Summary

ngtcp2 is a C implementation of the IETF QUIC protocol. In versions prior to 1.22.1, ngtcp2_qlog_parameters_set_transport_params() serializes peer transport parameters into a fixed 1024-byte stack buffer without bounds checking. When qlog is enabled, a remote peer can send sufficiently large transport parameters during the QUIC handshake to cause writes beyond the buffer boundary, resulting in a stack buffer overflow. This affects deployments that enable the qlog callback and process untrusted peer transport parameters. This issue has been fixed in version 1.22.1. If developers are unable to immediately upgrade, they can disable the qlog on client.

Publication Date April 17, 2026, 7:16 a.m.
Registration Date April 18, 2026, 4:10 a.m.
Last Update April 21, 2026, 1:16 a.m.
Related information, measures and tools
Common Vulnerabilities List