{"id":"CVE-2026-87045","summary":"NULL pointer dereference in the Zephyr HTTP/2 server when a header block is completed by a CONTINUATION frame","details":"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-\u003ecurrent_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-\u003ecurrent_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-\u003ecurrent_stream-\u003eheaders_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-\u003ecurrent_stream == NULL guard, and stores through the pointer with client-\u003ecurrent_stream-\u003ecurrent_detail = dynamic_detail.\n\nAny 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.\n\nThe 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.","aliases":["GHSA-cw8r-2jj2-w8fw"],"modified":"2026-11-12T07:04:21.805513826Z","published":"2026-11-06T14:38:25.629Z","database_specific":{"cwe_ids":["CWE-476"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87045.json","cna_assigner":"zephyr"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87045.json"},{"type":"ADVISORY","url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cw8r-2jj2-w8fw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87045"},{"type":"FIX","url":"https://github.com/zephyrproject-rtos/zephyr/commit/e72a9d9498092bfbb7feed4b479bf21bc3218c3d"},{"type":"PACKAGE","url":"https://github.com/zephyrproject-rtos/zephyr"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zephyrproject-rtos/zephyr","events":[{"introduced":"7823374e872145b5bd018bfe447839eb36042611"},{"fixed":"28af05ca658cbacf745fd5b099566311c58ccb1d"},{"introduced":"684c9e8f32e4373a21098559f748f06915f950c9"},{"fixed":"41d10b59730406bbab4ca9f1fbbe9e96aafb4966"},{"fixed":"e72a9d9498092bfbb7feed4b479bf21bc3218c3d"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"4.1.0"},{"fixed":"4.3.2"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"4.4.0"},{"fixed":"4.5.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"e72a9d9498092bfbb7feed4b479bf21bc3218c3d"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v4.3.1","v4.3.1-rc1","v4.4.0","v4.3.0","v4.3.0-rc3","v4.3.0-rc2","v4.3.0-rc1","v4.2.0","v4.2.0-rc3","v4.2.0-rc2","v4.2.0-rc1","v4.1.0"],"database_specific":{"vanir_signatures_modified":"2026-11-12T07:04:21Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-87045.json","vanir_signatures":[{"target":{"function":"handle_http2_dynamic_resource","file":"subsys/net/lib/http/http_server_http2.c"},"deprecated":false,"digest":{"function_hash":"330163525662421539066143654587200551228","length":1148},"id":"CVE-2026-87045-21c8789b","signature_type":"Function","signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/e72a9d9498092bfbb7feed4b479bf21bc3218c3d"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/e72a9d9498092bfbb7feed4b479bf21bc3218c3d","target":{"function":"handle_http_frame_header","file":"subsys/net/lib/http/http_server_http2.c"},"deprecated":false,"digest":{"length":1044,"function_hash":"67773266778150290404434036659354113298"},"id":"CVE-2026-87045-3c4c20d7"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/e72a9d9498092bfbb7feed4b479bf21bc3218c3d","target":{"file":"subsys/net/lib/http/http_server_http2.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["167143659688301155350335839809712996646","182959797558063688770971732943868969048","160109501533929980141577867641208967118","25679223705007554070892334368475808918","280440157156640109124679461989401714802","318254741600573631468310095431951355202","160818625370081573822061568001357564279","9623583866833527453547734368829318233","221416478358738557312768898880730201643","255301911347282216574970906403859257865"]},"id":"CVE-2026-87045-80a5c0f6"},{"signature_version":"v1","source":"https://github.com/zephyrproject-rtos/zephyr/commit/e72a9d9498092bfbb7feed4b479bf21bc3218c3d","target":{"file":"subsys/net/lib/http/http_server_http2.c","function":"enter_http_frame_continuation_state"},"deprecated":false,"digest":{"function_hash":"224063620318721618783087861103828523036","length":308},"id":"CVE-2026-87045-834bc9d6","signature_type":"Function"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}