Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local-segment network adjacency
-
DeliveryCraft DNS packet with inflated nquestions and empty question section
-
ExploitSend multicast UDP to port 5353 targeting mDNS-enabled device
-
Executionnewdata() loops skip_name() past uip_buf boundary
-
PersistRead heap/stack memory adjacent to packet buffer
-
ImpactRecover disclosed memory contents or crash resolver via null pointer dereference
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | On builds compiled with RESOLV_CONF_SUPPORTS_MDNS=1 (the mDNS-enabled configuration), no special conditions are required beyond local-segment adjacency: any network peer on the same Layer-2 domain can send an unsolicited crafted multicast UDP packet to port 5353 with no outstanding query on the target device. On standard DNS-only builds without mDNS support, exploitation requires the attacker to inject a spoofed UDP response from source port 53 during the window in which the target device has an active outstanding DNS query, which demands either man-in-the-middle positioning or DNS response race capability on the same network path. In both cases, exploitation is hard-limited to adjacent-network attackers - internet-routed attacks are not applicable due to the AV:A vector. No authentication is required. The degree of sensitive data disclosed depends on the runtime memory layout of |
| Impact | The CVSS 4.0 vector (AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L) scores 7.1 and accurately captures the key risk profile. The adjacent-network attack vector is the most significant constraint: exploitation requires the attacker to be on the same Layer-2 segment or multicast domain, which eliminates internet-scale mass exploitation. On mDNS-enabled builds, however, this constraint is easy to satisfy in practice - any device on a shared LAN, VLAN, or Wi-Fi segment qualifies, and no outstanding query is needed, making it a low-friction attack on that deployment class. The confidentiality impact is rated High because |
| Exploit ScenarioDerived | An attacker on the same Wi-Fi or Ethernet segment as a Contiki-NG device with mDNS enabled sends a crafted multicast UDP packet to 224.0.0.251:5353 containing a valid DNS header with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Out-of-bounds memory read in Contiki-NG's DNS/mDNS resolver exposes adjacent device memory and can crash the resolver on constrained IoT hardware. The root defect is in skip_name() within os/services/resolv/resolv.c, which traverses DNS wire-format name labels with no packet-boundary guard; the caller newdata() drives iteration using an attacker-controlled nquestions field from the DNS header before the transaction ID is validated, enabling an attacker to force the function past the end of uip_buf. On mDNS-enabled builds, any local-segment peer can trigger this unauthenticated with a single multicast UDP packet to port 5353 and no outstanding query required; on standard DNS builds, an attacker able to inject a spoofed DNS response during an active query achieves the same effect. No public exploit has been identified at time of analysis.
RemediationAI
Apply the upstream fix from commit 04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe available at https://github.com/contiki-ng/contiki-ng/commit/04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe, or track PR #3169 at https://github.com/contiki-ng/contiki-ng/pull/3169 for merge status. A specific tagged release version incorporating this fix has not been independently confirmed - verify with Contiki-NG maintainers before assuming a release contains the patch. As the highest-value compensating control, disable mDNS at compile time by setting RESOLV_CONF_SUPPORTS_MDNS=0, which eliminates the unauthenticated unsolicited-packet attack path and reduces exposure to the harder DNS response injection scenario only; this trade-off is the loss of mDNS-based local service discovery. Where network architecture permits, apply Layer-2 or firewall rules blocking UDP port 5353 multicast traffic from untrusted segment peers and restricting DNS response ingress (UDP port 53) to known resolver addresses to reduce the injection window. On devices where the resolver is non-essential, disabling the resolver entirely removes all exposure.
Affected VersionsENISA
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
Contiki-NG is an open-source RTOS for constrained IoT devices that includes a lightweight DNS/mDNS resolver in os/services/resolv/resolv.c. DNS wire-format names consist of length-prefixed label sequences optionally terminated by compression pointers - two-byte references into the packet body. The vulnerable skip_name() function traversed these labels using only a raw pointer increment with no awareness of the enclosing packet boundary, meaning it could walk arbitrarily far into memory adjacent to the UDP receive buffer uip_buf. CWE-125 (Out-of-Bounds Read) describes this root cause precisely. The compounding flaw in newdata() is that the nquestions loop counter was cast from the DNS header's 16-bit field to a uint8_t without any validation and consumed before the transaction ID check, handing the attacker direct control over loop iteration count. The commit diff confirms that the fix adds packet and packet_len parameters to skip_name(), decode_name(), and dns_name_isequal(), introduces explicit query >= end boundary guards at every pointer advance, validates the DNS header minimum length before reading any fields, and changes callers to treat a NULL return from skip_name() as a fatal parse error.
Know when the next one hits your stack
- 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
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
AV:A because exploitation is bounded to local-segment peers; PR:N since mDNS path is unauthenticated; C:H for arbitrary memory disclosure; A:L for resolver crash only; no integrity impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
Contiki-NG's DNS/mDNS resolver skip_name() in os/services/resolv/resolv.c walks DNS wire-format name labels with no packet-boundary check, and the caller in newdata() invokes it in a loop iterating nquestions times from the attacker-controlled DNS header before validating the transaction ID. An attacker who sets nquestions higher than the number of complete questions present causes skip_name() to walk past the UDP packet buffer, and the returned pointer is cast to struct dns_answer * for further memory reads. On builds with RESOLV_CONF_SUPPORTS_MDNS enabled, any peer on the local segment can trigger the read unauthenticated via a multicast UDP 5353 packet with no outstanding query required; on standard DNS builds an attacker who can inject a UDP response from port 53 during an outstanding query can trigger the same read. Impact is out-of-bounds read of uip_buf and adjacent memory, disclosing memory contents or crashing the resolver.
Executive ViewAI
Contiki-NG's DNS/mDNS resolver contains an out-of-bounds memory read vulnerability (CVE-2026-5856, CVSS 7.1) affecting constrained IoT devices; no public exploit identified at time of analysis. Unauthenticated attackers on the local network segment can crash the resolver or access sensitive device memory using a single multicast packet (on mDNS builds) or spoofed DNS response (on standard DNS builds). No patch is available, leaving IoT deployments reliant on network controls to mitigate exposure.
Network segmentation isolating affected Contiki-NG devices to trusted segments, disabling mDNS where not required, firewall rules blocking DNS/mDNS traffic from untrusted sources, and continuous monitoring of DNS query patterns for exploitation indicators.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-54225
GHSA-8m55-g479-xj8c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB