Description
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.
Published: 2026-08-06
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Contiki-NG’s DNS/mDNS resolver contains an out‑of‑bounds read in the skip_name() function of resolv.c. When the nquestions field in the DNS header is set higher than the number of legitimate questions, the function walks past the bounds of the UDP packet buffer. The return pointer is then interpreted as a dns_answer structure and subsequent reads can leak contents of the uip_buf or adjacent memory, or cause a crash of the resolver.

Affected Systems

All Contiki‑NG builds that include the DNS/mDNS resolver component are potentially affected, regardless of specific version, because the vulnerability exists in the core resolver logic. Mentioned configurations that can be exploited include builds with RESOLV_CONF_SUPPORTS_MDNS enabled, where any peer on the local segment can trigger the read via a multicast UDP packet on port 5353 without an outstanding query, as well as standard DNS builds that can be attacked by an unsolicited UDP response from port 53 during an outstanding query.

Risk and Exploitability

The CVSS score is 7.1, indicating a high level of severity. EPSS is not available and the vulnerability is not listed in KEV. Attackers only need to send a crafted UDP packet to the victim’s device on the network. The exploit does not require authentication and can be performed from any host that can reach the target port, making it practical for local or remote attackers with network access. Consequently, this represents a significant confidentiality and availability risk for systems running Contiki‑NG with the DNS/mDNS resolver enabled.

Generated by OpenCVE AI on August 7, 2026 at 00:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Contiki‑NG release that includes the fix (commit 04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe).
  • If the resolver is not required, remove or disable the DNS/mDNS functionality from the build configuration.
  • Configure network security controls to block unsolicited UDP traffic on ports 5353 (multicast DNS) and 53 (standard DNS) from untrusted sources, or restrict inbound packets to trusted hosts only.

Generated by OpenCVE AI on August 7, 2026 at 00:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:o:contiki-ng:contiki-ng:*:*:*:*:*:*:*:*

Fri, 07 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 07 Aug 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared Contiki-ng
Contiki-ng contiki-ng
Vendors & Products Contiki-ng
Contiki-ng contiki-ng

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Contiki-NG DNS/mDNS Resolver Out-of-Bounds Read via Unchecked skip_name Traversal Before Transaction-ID Validation
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

Contiki-ng Contiki-ng
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:50:26.963Z

Reserved: 2026-04-08T19:29:07.686Z

Link: CVE-2026-5856

cve-icon Vulnrichment

Updated: 2026-08-07T17:41:04.276Z

cve-icon NVD

Status : Received

Published: 2026-08-06T22:18:10.743

Modified: 2026-08-07T18:17:19.527

Link: CVE-2026-5856

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:15:04Z

Weaknesses