tokio-quicheにHTTP/3のDATAGRAM処理の脆弱性、メモリを使い果たしサービス停止のおそれ
Summary
tokio-quicheのHTTP/3でDATAGRAMを処理する部分に脆弱性があり、リモートの相手が大量の識別子を送ると接続ごとの状態が際限なく増え、メモリを使い果たしてサービス拒否に至るおそれがあります。影響するのは0.20.1までの版で、修正版は0.23.0以降です。DATAGRAM機能はデフォルトで有効のため、修正版へ更新するか、QuicSettings::enable_dgramをfalseにして無効化してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
tokio-quicheのHTTP/3でDATAGRAMを処理する部分に脆弱性があり、リモートの相手が大量の識別子を送ると接続ごとの状態が際限なく増え、メモリを使い果たしてサービス拒否に至るおそれがあります。影響するのは0.20.1までの版で、修正版は0.23.0以降です。DATAGRAM機能はデフォルトで有効のため、修正版へ更新するか、QuicSettings::enable_dgramをfalseにして無効化してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Cloudflaretokio-quiche |
0.0.1 – 0.20.1→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Summary
Cloudflare tokio-quiche was found to contain an uncontrolled resource consumption vulnerability in its HTTP/3 DATAGRAM handling. For every previously unseen flow identifier (quarter stream ID) received in a DATAGRAM frame, tokio-quiche creates and retains new, per-flow state. A remote peer can send DATAGRAMs with many distinct identifiers, causing the per-connection flow map and associated channel state to grow without bound.
Impact
Exploitation can exhaust process memory and cause a denial of service. The vulnerable code is used in both client and server configurations, so either role can be affected by a malicious peer. QUIC DATAGRAM support in tokio-quiche is enabled by default through QuicSettings::enable_dgram; applications can disable it by setting this field to false. The vulnerable HTTP/3 path is reachable only when DATAGRAM support is negotiated with the peer. Core quiche and HTTP/3 deployments without DATAGRAM support are not affected.
Mitigation
Disable DATAGRAMs in tokio-quiche’s QuicSettings::enable_dgram.
Remediation
Upgrade to tokio-quiche version 0.23.0 or later. The fixed code creates flow state only for valid DATAGRAM-capable request streams, which are bounded by QUIC’s stream limits. To tolerate packet reordering, servers retain early DATAGRAMs in a bounded, expiring buffer, while clients discard DATAGRAMs for unknown flows.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- web cve.org
- web github.com