Critical Flaw in Zephyr RTOS Exposes IoT Devices
A critical memory-safety vulnerability (CVE-2026-1678) with a 9.4 CVSS score has been disclosed in the Zephyr RTOS. The flaw allows for remote code execution on millions of IoT devices powered by the OS, from smartwatches to industrial gateways, prompting urgent calls for firmware updates.
The Zephyr Project, a collaborative effort hosted by the Linux Foundation, has garnered significant industry backing. Major tech firms including Intel, NXP, and Nordic Semiconductor are top contributors to the open-source RTOS, which has seen its adoption in the industrial IoT sector grow to rival that of the popular FreeRTOS. The vulnerability, identified as CVE-2026-1678, is a specific out-of-bounds write flaw within the DNS resolver component of the RTOS. The issue lies in the `dns_unpack_name()` function, which incorrectly caches the size of a buffer when processing DNS labels. A crafted malicious DNS response can cause the final null terminator to be written past the buffer's boundary, corrupting memory. This flaw can be triggered remotely over a network without any user interaction or authentication. Any Zephyr-based device with the `CONFIG_DNS_RESOLVER` setting enabled is affected, a common configuration for internet-connected products that need to resolve domain names. The attack surface is extensive, covering a wide range of resource-constrained devices where Zephyr is often deployed. This includes smart home gadgets, wearables like fitness trackers, medical patient monitoring systems, and even controllers within in-vehicle infotainment (IVI) and driver assistance systems (ADAS). Before a widespread firmware patch is available, developers can mitigate the risk by disabling the `CONFIG_DNS_RESOLVER` module if DNS resolution is not essential for the device's function. Other recommendations include restricting network access to only trusted DNS servers and implementing network segmentation to limit exposure. This single vulnerability highlights a systemic risk in the rapidly expanding IoT ecosystem, which reached over 21 billion devices in 2025. With IoT malware attacks surging 124% year-over-year and daily attacks numbering in the hundreds of thousands, a flaw in a foundational OS like Zephyr provides a scalable target for threat actors.