ZephyrのHTTP/2サーバーに脆弱性、細工した通信でサービス停止のおそれ
概要
Zephyrの HTTP/2 サーバーで、ヘッダーの続きを送るCONTINUATIONフレームの扱いに不備があり、NULLポインター参照が起きる脆弱性が見つかりました。認証なしで到達できる相手から攻撃されるおそれがあり、CVSSは7.5です。影響するのは4.1.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。該当する版を使っている場合は、修正版への更新を優先してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Zephyrの HTTP/2 サーバーで、ヘッダーの続きを送るCONTINUATIONフレームの扱いに不備があり、NULLポインター参照が起きる脆弱性が見つかりました。認証なしで到達できる相手から攻撃されるおそれがあり、CVSSは7.5です。影響するのは4.1.0以上4.3.2未満と4.4.0以上4.5.0未満で、修正版は4.3.2と4.5.0です。該当する版を使っている場合は、修正版への更新を優先してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| zephyrprojectzephyr |
4.1.0 以上 4.3.2 未満→ 4.3.2 4.4.0 以上 4.5.0 未満→ 4.5.0 |
4.3.2 4.5.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
The HTTP/2 server in subsys/net/lib/http/http_server_http2.c clears the connection's stream binding at the start of every frame. handle_http_frame_header() executed client->current_stream = NULL unconditionally, but a CONTINUATION frame does not open a new stream and enter_http_frame_continuation_state() never re-bound one, so the rest of the header block was processed with client->current_stream unset. Two paths then write through the NULL pointer. A request for an unregistered resource, or a method the matched resource does not support, is answered by send_http2_404() or send_http2_405(), and both call send_headers_frame(), which unconditionally sets client->current_stream->headers_sent = true. A POST, PUT or PATCH to a registered dynamic resource reaches handle_http2_dynamic_resource(), which unlike its siblings (handle_http2_static_resource(), dynamic_get_del_opts_req_v2(), dynamic_post_put_req_v2()) had no client->current_stream == NULL guard, and stores through the pointer with client->current_stream->current_detail = dynamic_detail.
Any peer that can reach the server can trigger this without authentication or prior state. A single stray CONTINUATION frame with END_HEADERS set, sent right after the client preface and requesting any unregistered path, is enough, because nothing rejected a CONTINUATION that no HEADERS frame had opened. A legitimate split header block (a HEADERS frame with END_HEADERS clear whose payload ends on a header-field boundary, then a CONTINUATIO…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com