CVE-2026-87045

NULL pointer dereference in the Zephyr HTTP/2 server when a header block is completed by a CONTINUATION frame

Published Nov 6, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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 CONTINUATION with END_HEADERS set) reaches the same state. The in-tree test test_http2_post_headers_with_continuation() did not catch this because it splits the header block mid field, which takes the handle_incomplete_http_header() shortcut that keeps the stream bound.

The result is a write to a fixed low address (a small offset into struct http2_stream_ctx), which faults on mainstream targets (flash/vector-table region on Cortex-M, or a trap under MPU/MMU null-pointer detection), and the default fatal-error handler halts the system. Impact is an unauthenticated, remotely triggerable denial of service against any device running the HTTP/2 server: the 404 path needs no particular resource to be registered, and HTTP/2 is built into CONFIG_HTTP_SERVER with cleartext h2c accepted, so TLS does not prevent it. Neither the target address nor the written value is attacker-controlled, so there is no confidentiality or integrity impact. Applications built without CONFIG_HTTP_SERVER are not affected.

Analysis

AI-generated

Technical impact

CVE‑2026‑87045 describes a NULL pointer dereference that occurs when the Zephyr HTTP/2 server processes a CONTINUATION frame that does not accompany a preceding HEADERS frame. The server unconditionally clears the current stream binding before handling a frame, so a stray CONTINUATION frame leaves the stream pointer unset. Subsequent logic that writes headers or resource details dereferences this null pointer, causing the system to fault and halt. The result is a remote, unauthenticated denial of service; the attack requires only sending malformed HTTP/2 frames over an unencrypted connection and does not disclose or modify any data.

Affected Systems

The vulnerability affects devices running Zephyr with the CONFIG_HTTP_SERVER option enabled and accepting cleartext HTTP/2 (h2c). Any software build that includes the Zephyr HTTP/2 server component is susceptible. Applications or builds that omit CONFIG_HTTP_SERVER are not impacted. The fix is present in the commit referenced by the advisory and in subsequent Zephyr releases.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity denial of service. EPSS is unavailable, so the exact likelihood of exploitation is unclear, but the lack of authentication or state prerequisites makes the attack trivial for an attacker who can reach the server. The vulnerability is not listed in CISA’s KEV catalogue. A single malformed CONTINUATION frame suffices to trigger the crash, making exploitation straightforward via the network. The impact is loss of availability with no confidentiality or integrity compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Zephyr to a version that incorporates the patch for CVE‑2026‑87045 (refer to the GitHub commit e72a9d9 and the GHSA‑cw8r‑2jj2‑w8fw advisory).
  • If an upgrade is not immediately possible, disable HTTP/2 support by disabling CONFIG_HTTP_SERVER or configuring the system to reject cleartext h2c traffic.
  • Verify that the running firmware no longer handles unbound stream pointers by testing with malformed CONTINUATION frames during development.

Generated by OpenCVE AI on November 6, 2026 at 15:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Zephyrproject
Zephyrproject zephyr
Vendors & Products Zephyrproject
Zephyrproject zephyr
Type Values Removed Values Added
Description 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 CONTINUATION with END_HEADERS set) reaches the same state. The in-tree test test_http2_post_headers_with_continuation() did not catch this because it splits the header block mid field, which takes the handle_incomplete_http_header() shortcut that keeps the stream bound. The result is a write to a fixed low address (a small offset into struct http2_stream_ctx), which faults on mainstream targets (flash/vector-table region on Cortex-M, or a trap under MPU/MMU null-pointer detection), and the default fatal-error handler halts the system. Impact is an unauthenticated, remotely triggerable denial of service against any device running the HTTP/2 server: the 404 path needs no particular resource to be registered, and HTTP/2 is built into CONFIG_HTTP_SERVER with cleartext h2c accepted, so TLS does not prevent it. Neither the target address nor the written value is attacker-controlled, so there is no confidentiality or integrity impact. Applications built without CONFIG_HTTP_SERVER are not affected.
Title NULL pointer dereference in the Zephyr HTTP/2 server when a header block is completed by a CONTINUATION frame
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
zephyr
Published
Updated
Nov 10, 2026, 2:42 PM
Reserved
Sep 8, 2026, 6:40 PM
Status
Awaiting Analysis
Published
Nov 6, 2026, 3:17 PM
Modified
Nov 10, 2026, 3:17 PM