CVE-2026-10672

HIGH

Unterminated URI buffer causes out-of-bounds read in LwM2M firmware pull (Package URI)

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-10672. PoCs published by Hunt-Benito.

AI-analyzed exploit summary This repository contains a functional proof-of-concept for CVE-2026-10672, an out-of-bounds read vulnerability in Zephyr RTOS's LwM2M firmware update client. The exploit demonstrates how a malicious Package URI (≥128 bytes) triggers an OOB read, leaking adjacent memory (function pointers, DTLS PSK material) in the CoAP PROXY_URI option.

Description

subsys/net/lib/lwm2m/lwm2m_pull_context.c copied the firmware-update Package URI into a fixed static buffer (context.uri, size CONFIG_LWM2M_SWMGMT_PACKAGE_URI_LEN, default 128) with memcpy(context.uri, uri, LWM2M_PACKAGE_URI_LEN), copying exactly the destination size with no length validation. The Firmware-Update object stores the server-supplied Package URI (/5/0/1) in a 255-byte buffer, so a LwM2M management server (or an on-path attacker on a session lacking strong DTLS) can WRITE a URI of 128-254 characters; only the first 128 bytes are then copied into context.uri with no NUL terminator. That buffer is subsequently consumed as a C string by http_parser_parse_url(context.uri, strlen(context.uri), ...), strlen-based CoAP URI-path/PROXY-URI option appends, and lwm2m_parse_peerinfo(), causing an out-of-bounds read of adjacent static memory. The over-read bytes are appended to outbound CoAP requests (information disclosure of adjacent device memory to the server/proxy) and can crash the device (denial of service). The vulnerable copy was introduced by the pull-context refactor (first released in v3.0.0) and is present through v4.4.0; the default-on CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT path is affected. The fix adds a strlen(uri) >= sizeof(context.uri) check returning -ENOMEM and switches to strcpy(), guaranteeing a bounded, NUL-terminated buffer.

Exploits (1)

github WORKING POC
by Hunt-Benito · cpoc
https://github.com/Hunt-Benito/zephyr-lwm2m-firmware-update-oob-read-cve-2026-10672-truncated-package-uri

This repository contains a functional proof-of-concept for CVE-2026-10672, an out-of-bounds read vulnerability in Zephyr RTOS's LwM2M firmware update client. The exploit demonstrates how a malicious Package URI (≥128 bytes) triggers an OOB read, leaking adjacent memory (function pointers, DTLS PSK material) in the CoAP PROXY_URI option.

Classification
Working Poc 100%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Zephyr RTOS v3.0.0 through v4.4.0 (LwM2M firmware update client)
No auth needed
Prerequisites: Network access to the LwM2M client (UDP/5683 for NoSec or compromised DTLS server) · Ability to deliver a crafted Package URI via CoAP PUT to /5/0/1
mistral-large-3 · analyzed Jul 18, 2026 Full analysis →

Scores

CVSS v3 8.2
EPSS 0.0035
EPSS Percentile 27.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-125
Status published
Products (1)
zephyrproject/zephyr 3.0.0 - 4.5.0
Published Jul 14, 2026
Tracked Since Jul 14, 2026