Buffer Overflow Vulnerability in Contiki-NG's LwM2M TLV Parser
CVE-2026-5855
What is CVE-2026-5855?
The LwM2M TLV parser in Contiki-NG is susceptible to an out-of-bounds read vulnerability due to improper handling of the buffer length argument. The function lwm2m_tlv_read() can read up to six bytes from the input buffer without appropriate bounds checking. This flaw allows an attacker to craft a CoAP WRITE request to exploit these bounds, resulting in multiple unauthorized reads from adjacent heap memory. As a consequence, sensitive data, including key materials and peer addresses, can be disclosed through the parsed fields of the TLV structure. Additionally, corrupted lengths can lead to further inconsistencies in data parsing and handling. This vulnerability is particularly severe in NoSec mode, which is the default for many constrained devices, as it does not enforce any authentication measures.
Affected Version(s)
Contiki-NG 0
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
