# CVE-2026-87045: NULL pointer dereference in the Zephyr HTTP/2 server when a header block is completed by a CONTINUATION frame

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-11-06T14:38:25.629Z
- **Modified:** 2026-11-10T15:17:30.327Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.1.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## 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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.1.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-87045. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-87045.md
Affected: zephyrproject zephyr >= 4.1.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-87045 being exploited?

There is no confirmed exploitation: CVE-2026-87045 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-87045?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-87045?

zephyrproject zephyr \>= 4.1.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-87045?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-87045?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-cw8r-2jj2-w8fw>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/e72a9d9498092bfbb7feed4b479bf21bc3218c3d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-87045>

HTML: <https://flawdb.com/CVE-2026-87045> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-87045>
