PT-2026-83953 · Unknown · Lwm2M Json Content Formatter
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
The product name cannot be determined (affected versions not specified)
Description
A one-byte out-of-bounds write occurs in the LwM2M JSON content formatter when copying a parsed JSON string into a buffer. The issue exists in the
get string() function within subsys/net/lib/lwm2m/lwm2m rw json.c because the length guard allows strings with a length exactly equal to the buffer size. When such a string is processed, the subsequent NUL-termination writes a 0x00 byte immediately past the end of the buffer, potentially corrupting adjacent memory, such as resource values, length fields, or structure fields, which may lead to data corruption or a system crash.This can be triggered during a LwM2M WRITE operation where
do write op json() parses a CoAP payload and get string() is called via lwm2m write handler() (specifically engine get string() in subsys/net/lib/lwm2m/lwm2m message handling.c) for a LWM2M RES TYPE STRING resource. The overflow affects either the resource instance's fixed data buffer res inst->data ptr or the engine validation buffer msg->ctx->validate buf.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Lwm2M Json Content Formatter