Zephyr HTTP/2サーバーにメモリ破壊の脆弱性、修正版あり
Summary
ZephyrのHTTPサーバーでHTTP/2の静的ファイル配信を使う機器は、認証なしの要求でメモリを破壊され、停止やコード実行に至るおそれがあります。自社のZephyrの版を確認し、4.3.2または4.5.0の修正版へ更新してください。
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.
ZephyrのHTTPサーバーでHTTP/2の静的ファイル配信を使う機器は、認証なしの要求でメモリを破壊され、停止やコード実行に至るおそれがあります。自社のZephyrの版を確認し、4.3.2または4.5.0の修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| zephyrprojectzephyr |
≥ 4.0.0, < 4.3.2→ 4.3.2 ≥ 4.4.0, < 4.5.0→ 4.5.0 |
4.3.2 4.5.0 |
Original description The description as published by the source.
The HTTP/2 front-end of the Zephyr HTTP server aliased connection receive state as a scratch output. In subsys/net/lib/http/http_server_http2.c, handle_http2_static_fs_resource() passed &client->data_len as the file_size out-parameter of http_server_find_file(). client->data_len is the count of unprocessed bytes remaining in the fixed-size per-connection receive buffer client->buffer[CONFIG_HTTP_SERVER_CLIENT_BUFFER_SIZE] (256 bytes by default), an invariant every frame handler and the socket receive path rely on. Serving any static file therefore replaced that bounded value with the file's on-disk size, and nothing resets it afterwards.
The defect is reached by an unauthenticated HTTP/2 GET for any file under the web root, in applications that register a static-filesystem resource (HTTP_RESOURCE_TYPE_STATIC_FS) with CONFIG_FILE_SYSTEM=y; CONFIG_HTTP_SERVER_VERSION_2 is enabled by default and no TLS or credentials are required on this path. Once client->data_len exceeds the buffer size, the frame dispatch loop in subsys/net/lib/http/http_server_core.c keeps parsing past the end of the received data, and the peer controls the bytes at client->cursor, so it can choose which fabricated frame the state machine consumes next by appending bytes after its request.
The inflated length defeats the only guards on the buffer. parse_http_frame_header() and the per-frame handlers read and skip up to a 24-bit frame length beyond the buffer (out-of-bounds read); the compaction memmove(cli…
Source: CVE.org (CVE Program・cvelistV5) NVD