Skip to main content

Contiki-NG CVE-2026-5856

| EUVDEUVD-2026-54225 HIGH
Out-of-bounds Read (CWE-125)
2026-08-06 disclosure@vulncheck.com GHSA-8m55-g479-xj8c
7.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local-segment network adjacency
  2. Delivery
    Craft DNS packet with inflated nquestions and empty question section
  3. Exploit
    Send multicast UDP to port 5353 targeting mDNS-enabled device
  4. Execution
    newdata() loops skip_name() past uip_buf boundary
  5. Persist
    Read heap/stack memory adjacent to packet buffer
  6. Impact
    Recover 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 uip_buf and adjacent allocations at exploitation time, which varies by firmware build and device state.

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 uip_buf and adjacent memory on constrained devices may hold private keys, session credentials, or sensor data with no memory isolation. Availability impact is rated Low (resolver crash), but on IoT devices where the resolver is central to connectivity, a crash carries operational weight beyond what CVSS captures. No EPSS data was available and no CISA KEV listing exists, so widespread active exploitation is not confirmed. The absence of a tagged release version in available data means organizations must cherry-pick the fix commit, introducing deployment friction. There is no conflict between signals: CVSS, the commit diff, and the description all consistently point to an adjacent-network, unauthenticated, read-only memory disclosure with no integrity impact.

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 nquestions set to 200 but no actual question records in the payload. The resolver's newdata() function enters its question-parsing loop and calls skip_name() 200 times on a pointer that has already exhausted the packet buffer after the first iteration, reading up to several hundred bytes of memory adjacent to uip_buf on each call and casting the out-of-bounds pointer to struct dns_answer * for further dereferences. The attacker can recover the leaked memory contents from observable side-channels or a crafted response capture, or force a null-pointer dereference crash when skip_name() returns a pointer that triggers a fault on subsequent access. No public exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

contiki-ng 0 <04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe

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

Vendor (vulncheck) PRIMARY 7.1 HIGH
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
vuln.today AI 7.1 HIGH

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.

3.1 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
4.0 AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 06, 2026 - 23:03 EUVD
CVE Published
Aug 06, 2026 - 22:18 cve.org
HIGH 7.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche open-source IoT RTOS used in research and specialized embedded deployments
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy