CVE-2026-5855: Contiki-NG LwM2M TLV Parser Out-of-Bounds Read via Unchecked Buffer Length in lwm2m_tlv_read

Published Aug 6, 2026
·
Updated

Contiki-NG's LwM2M TLV parser lwm2mtlvread() in os/services/lwm2m/lwm2m-tlv.c ignores its caller-supplied buffer length argument and reads up to six bytes from the input buffer with no bounds check. The caller in lwm2m-engine.c iterates while there is at least one byte remaining, so a crafted CoAP WRITE to any LwM2M endpoint whose final TLV supplies exactly one byte triggers up to five out-of-bounds reads of heap memory adjacent to the CoAP input buffer, disclosing memory contents (including key material and peer addresses) through the parsed tlv->id, tlv->length, and tlv->value fields. Corrupted tlvlen derived from the out-of-bounds memory further corrupts the caller's parse offset. In LwM2M NoSec mode, the default for constrained devices, no authentication is required.

Affected Software

1 affected component
Contiki-NG LwM2M TLV parser (lwm2m_tlv_read)

Event History

Aug 6, 2026
CVE Published
via MITRE·06:39 PM
Data Sourced
via MITRE·06:39 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:18 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-5855?

CVE-2026-5855 has a severity score of 7.5, indicating a high level of risk.

2

What type of vulnerability is CVE-2026-5855?

CVE-2026-5855 is an out-of-bounds read vulnerability in Contiki-NG's LwM2M TLV parser.

3

How do I fix CVE-2026-5855?

To fix CVE-2026-5855, ensure that the LwM2M TLV parser implements proper bounds checks on the input buffer length.

4

What software is affected by CVE-2026-5855?

CVE-2026-5855 affects the Contiki-NG LwM2M TLV parser, specifically the lwm2m_tlv_read function.

5

When was CVE-2026-5855 published?

CVE-2026-5855 was published on August 6, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203