Impact
The flaw lives in Zephyr's LwM2M firmware pull component, where a memcpy copies a server-supplied Package URI into a fixed 128‑byte buffer without checking the length or inserting a NUL terminator. When the URI is between 128 and 254 characters, the copy overwrites the buffer boundary and leaves garbage after the 128th byte. Subsequent code interprets this buffer as a C string, causing an out‑of‑bounds read of adjacent static memory. This flaw enables an attacker to read unrelated device memory (information disclosure) and can also trigger a crash of the Zephyr runtime (denial of service). The weakness is classified as CWE‑125.
Affected Systems
The vulnerability impacts Zephyr RTOS in its LwM2M firmware pull component. It exists in the codebase from the refactor first released in version 3.0.0 through version 4.4.0, and the vulnerability is triggered by the default‑on CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT configuration.
Risk and Exploitability
The CVSS score of 8.2 indicates high severity, while the EPSS score is below 1% and the flaw is not included in the CISA KEV catalogue. Exploitation requires only a remote LwM2M management server or an on‑path attacker with a session that is not protected by strong DTLS to send a long URI; no special credentials are needed. Once the long URI is accepted, the out‑of‑bounds read can expose neighboring memory contents to the attacker or cause a crash of the device, resulting in both information disclosure and denial of service.
OpenCVE Enrichment