CVE Catalog

CVE-2026-107469

HighCVSS 7.2
Published: Updated: Translated: NVD NIST

Summary

The LwM2M client in subsys/net/lib/lwm2m enforces authorization in handle_request() only against the path in the CoAP request URI, while the JSON, SenML JSON and SenML CBOR write handlers take each record's target path from the payload (bn/n fields) and overwrite msg->path without re-checking access. A registered device-management server can therefore send a write addressing /0/... or any object denied by the access control list, and the only remaining gate checks static resource permissions. This lets the server overwrite bootstrap and server credentials and URIs in the Security object, persistently redirecting the device to an attacker-chosen server or breaking connectivity, and bypass access control lists protecting another server's objects in multi-server deployments.

Risk Assessment

A malicious device-management server can take over the device's security configuration, redirect it to an attacker-controlled server or cut it off from the network, and in multi-server environments bypass isolation between servers. No memory corruption is involved, but the impact can be persistent and hard to detect.

Recommendation

Update Zephyr to a version containing the fix that re-validates permissions for payload-derived paths in the JSON/SenML write handlers. Until then, consider disabling JSON/SenML writes or limiting trust in management servers.

Related vulnerabilities

Original NVD description (English source)

The LwM2M client in subsys/net/lib/lwm2m enforces authorization in handle_request() only against the path in the CoAP request URI: the per-server access control list (CONFIG_LWM2M_ACCESS_CONTROL_ENABLE) and the LwM2M rule that a non-bootstrap server must not operate on the Security object (Object 0). The JSON, SenML JSON and SenML CBOR write handlers (do_write_op_json(), do_write_op_senml_json() and do_write_op_item()), however, take each record's target path from the payload (bn/n fields), overwrite msg->path with it, and create or write that path without re-checking access. A registered device-management server can therefore send a write (for example PUT to an object it may access, or a composite iPATCH whose request path is empty) carrying records that address /0/... or any object denied to it by the access control list. The only remaining gate, lwm2m_engine_validate_write_access(), checks static resource permissions, and Security object resources such as Server URI, Security Mode, keys and the Bootstrap-Server flag are writable, so the write succeeds. This lets a device-management server overwrite the bootstrap and server credentials and URIs held in the Security object, persistently redirecting the device to an attacker-chosen server or breaking its connectivity, and lets one server bypass access control lists protecting objects belonging to another server in multi-server deployments. No memory corruption is involved.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS