# CVE-2026-76787: NULL pointer dereference in the UpdateHub FOTA client when probe metadata omits sha256sum

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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; 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.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-10-19T20:39:20.425Z
- **Modified:** 2026-11-04T05:19:00.983Z

## Who should check

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

## Description

The UpdateHub firmware-over-the-air client parses the CoAP probe response with Zephyr's JSON library in z\_impl\_updatehub\_probe() (subsys/mgmt/updatehub/updatehub.c). The decoder treats every descriptor field as optional — json\_obj\_parse() returns a bitmask of the fields it actually decoded and never fails on a missing one — so a response that omits the "sha256sum" string leaves the corresponding const char \* in the zero-initialised struct resp\_probe\_any\_boards / struct resp\_probe\_some\_boards at NULL. Both metadata branches then computed sha256size = strlen(...objects.sha256sum) + 1 before any validation, dereferencing that NULL pointer; the SHA256\_HEX\_DIGEST\_SIZE test that follows operates on a value the bad read has already produced and cannot prevent it.

The metadata is supplied entirely by the network peer: probe\_cb() accepts the datagram, runs coap\_packet\_parse() and copies the payload with no token matching and no cryptographic check. With CONFIG\_UPDATEHUB\_DTLS unset — the default — start\_coap\_client() uses plain CoAP over UDP on port 5683 with no peer authentication and resolves the server via unauthenticated DNS, so an on-path attacker, a DNS spoofer, or an off-path attacker who wins the race with a forged source address can deliver the malformed metadata. A probe response as simple as "objects":\[\[{}\],\[{}\]\] suffices, and no user interaction is required because updatehub\_autohandler() polls on CONFIG\_UPDATEHUB\_POLL\_INTERVAL. When CONFIG\_UPDATEHUB\_DTLS=y the trigger narrows to a malicious or compromised update server.

The primitive is a read at address zero, not a write, so the impact is availability only. On targets where the low address range is unmapped or protected — MMU-based architectures, builds with CONFIG\_NULL\_POINTER\_EXCEPTION\_DETECTION\_DWT/\_MPU/\_PMP, TrustZone non-secure images, and SoCs such as nRF54L whose 0x0–0x400 window is unmapped — the load faults and Zephyr's default fatal handler halts the system, giving a remotely re-triggerable denial of service on every poll. On classic Cortex-M targets where the vector table is readable at address zero the walk usually terminates immediately and the request is rejected by the length check, so the outcome is configuration- and SoC-dependent. There is no memory write, and the copied bytes are only compared against the locally computed image hash, so there is no information-disclosure channel.

The fix adds an explicit sha256sum == NULL test that returns UPDATEHUB\_METADATA\_ERROR ahead of the strlen() in both metadata branches. Debug builds (CONFIG\_UPDATEHUB\_LOG\_LEVEL=4) still format the same pointers with %s in a LOG\_DBG() loop that runs before the new checks, so that variant remains in debug configurations only.

## Affected and fixed versions

- zephyrproject zephyr: \>= 2.4.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-76787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-76787.md
Affected: zephyrproject zephyr >= 2.4.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-76787 being exploited?

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

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

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

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

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

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-76787?

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-82gq-cmqw-xgx2>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/6fc4f27a74021b52c509e4f7912d68145dfa7728>

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

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