Contiki-NG OS Vulnerability: Out-of-Bounds Read in SNMP Module
CVE-2024-41126
What is CVE-2024-41126?
An out-of-bounds read vulnerability affects the Contiki-NG operating system, which is used in various IoT devices. It can be triggered when sending a packet to a device where the SNMP module is enabled. The issue lies in the snmp_message_decode function located in the os/net/app-layer/snmp/snmp-message.c file, which incorrectly handles buffer boundaries while reading a single byte after decoding an object identifier (OID). Although the SNMP module is disabled by default in Contiki-NG configurations, users who require its functionality should be aware of this vulnerability and can apply the patch provided in pull request 2937 on GitHub to secure their installations. As an additional safeguard, users are encouraged to disable the SNMP module until the next release that includes this fix.
Affected Version(s)
contiki-ng <= 4.9