Zephyr RTOS
CVE-2026-1678
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPosition as DNS responder (spoof/MITM/rogue resolver)
-
DeliveryDevice issues DNS query
-
ExploitReturn crafted malicious DNS response
-
ExecutionStale tailroom overflows label buffer
-
PersistOut-of-bounds null write corrupts memory
-
ImpactCrash or potential code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires CONFIG_DNS_RESOLVER to be enabled on the target (the DNS resolver subsystem must be in use) and relies on the default build setting of assertions disabled - if assertions are enabled, the fault is caught rather than becoming an out-of-bounds write. Exploitation is reactive and positional: the device must initiate a DNS name resolution and the attacker must be able to deliver a crafted malicious DNS response (operating a hostile/MITM resolver or spoofing responses), so an attacker who cannot influence the device's DNS traffic cannot trigger it. No authentication is required (PR:N) and no user interaction is needed beyond the device's automatic DNS lookups. |
| Impact | The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H, score 9.8) describes a maximally severe remote unauthenticated memory-corruption flaw, and publicly available exploit code exists per the Zephyr GHSA advisory. However, the signals conflict on real-world urgency: EPSS is only 0.05% (17th percentile), indicating very low predicted exploitation probability, and the vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation. No SSVC decision data was provided in the input. The CVSS C:H rating also appears generous for the described bug: the flaw is a single out-of-bounds write of a null terminator past the DNS label buffer (CWE-787), which maps cleanly to integrity/availability (memory corruption, crash, potential code execution on constrained RTOS targets) but gives no direct confidentiality disclosure path - verify the C:H claim with the vendor. Exploitation is also reactive: it requires the target device to initiate a DNS resolution AND the attacker to deliver a crafted malicious DNS response (spoofing or a hostile/MITM resolver), which is a real positioning requirement not reflected in the AC:L rating. Net: a genuinely serious code-level defect in affected products where CONFIG_DNS_RESOLVER is enabled, but low EPSS and absence from KEV suggest this is a patch-on-normal-cycle priority for most defenders rather than an emergency, exploit-code availability notwithstanding. |
| Exploit ScenarioDerived | An attacker who can answer DNS queries for a Zephyr-based device - via a rogue/MITM DNS server or by spoofing UDP responses on the local network - returns a malicious DNS response with crafted compressed name labels. As the device's dns_unpack_name() appends labels using a stale cached tailroom value, the final null terminator is written past the buffer, corrupting adjacent memory and causing a crash or potential code execution. Public exploit code is referenced in the Zephyr security advisory (GHSA-536f-h63g-hj42). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 15, 2026
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on any device built with CONFIG_DNS_RESOLVER enabled, because the function caches the buffer's remaining tailroom once and reuses that stale value while appending decompressed DNS labels, allowing the terminating null byte to land past the end of the buffer. Exploitation is remote and unauthenticated (CVSS:3.1/AV:N/AC:L/PR:N/UI:N) but reactive: the target must itself initiate a name lookup and the attacker must be positioned to answer it - by operating a hostile or man-in-the-middle resolver or spoofing responses - so an adversary who cannot influence the device's DNS traffic cannot trigger the fault. Publicly available exploit code exists per the Zephyr GHSA advisory, though the vulnerability is not confirmed actively exploited (no CISA KEV listing) and the EPSS score is low at 0.05% (17th percentile). Our independent assessment agrees on the network/unauthenticated/High-integrity/High-availability profile but rates confidentiality impact Low rather than High.
Earlier versions of this analysis (1)
DNS buffer overflow in Zephyr RTOS.
RemediationAI
Patch status is not independently confirmed from the available data: no exact fixed release version is provided here, and the only reference is the Zephyr security advisory GHSA-536f-h63g-hj42, which should be consulted for the upstream fix commit and the Zephyr release branches that carry it - treating that advisory as the primary remediation source rather than assuming a specific version. If upgrading Zephyr is not immediately possible, the most effective compensating control is to enable assertions (CONFIG_ASSERT) in the build: this converts the latent out-of-bounds write into a caught assertion failure, trading memory corruption for a controlled fault/abort at the resolver, which is acceptable for debug or safety-focused builds but not for production systems that must stay available, since it can panic the device. Second, disable CONFIG_DNS_RESOLVER on devices that do not require hostname resolution or use a statically configured DNS server address, eliminating the vulnerable code path entirely with the only side effect being loss of DNS-based name resolution. Third, reduce the attack surface for reactive exploitation by pinning lookups to a trusted, non-attacker-controllable resolver, enforcing encrypted or authenticated DNS where supported, and blocking spoofed/foreign DNS responses at the network boundary (for example via network segmentation or resolver response validation), recognizing that these reduce - but do not eliminate - the ability of an on-path or MITM adversary to deliver the malicious response that triggers the write.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Zephyr's DNS resolver is an optional networking subsystem (CONFIG_DNS_RESOLVER) that parses compressed DNS wire-format names, where a single name can be encoded as a chain of labels interleaved with compression pointers that reference earlier offsets in the packet. dns_unpack_name() reconstructs the fully qualified name by appending each label into a caller-supplied buffer; the defect is that the amount of free tailroom is computed once at entry and then reused for every append instead of being recalculated as the write cursor advances. Because the effective free space shrinks with each label while the cached figure does not, the length check passes when it should not, and the final null terminator is written one byte past the allocation - a CWE-787 out-of-bounds write. The bug is latent on default builds because assertions are disabled; where CONFIG_ASSERT is enabled, the failing invariant is trapped instead of corrupting adjacent memory. The affected component is the Zephyr OS itself (CPE cpe:2.3:o:zephyrproject:zephyr, wildcard versions), meaning any product or board running an affected Zephyr release with the DNS resolver compiled in inherits the exposure; the upstream disclosure is Zephyr security advisory GHSA-536f-h63g-hj42.
Know when Zephyr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Remote unauthenticated via crafted DNS response (AV:N/PR:N/UI:N); a single null-byte OOB write yields high integrity/availability impact but no direct data disclosure, so C:L rather than C:H.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
dns_unpack_name() caches the buffer tailroom once and reuses it while appending DNS labels. As the buffer grows, the cached size becomes incorrect, and the final null terminator can be written past the buffer. With assertions disabled (default), a malicious DNS response can trigger an out-of-bounds write when CONFIG_DNS_RESOLVER is enabled.
Executive ViewAI
A critical memory corruption vulnerability in the Zephyr RTOS DNS resolver affects any device built with CONFIG_DNS_RESOLVER enabled, potentially allowing remote unauthenticated attackers to crash or compromise those devices; publicly available exploit code exists, though active exploitation has not been confirmed. Organizations deploying Zephyr-based IoT or embedded systems face operational disruption and security risks if exploited. Leadership should prioritize mitigation given the absence of a vendor patch.
Disable CONFIG_DNS_RESOLVER if not needed; restrict DNS traffic to trusted resolvers and protect against DNS spoofing (e.g., DNSSEC, encrypted DNS); implement network segmentation; monitor for crashes or anomalous behavior.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Affected Products (CPE)NVD
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
Two potential signed to unsigned conversion errors and buffer overflow vulnerabilities at the following locations in the
NVD
CVE.org
EPSS
GitHub
Exploit-DB