Skip to main content
EPSS 0.3%top 83%

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… (CVE-2026-5856)

0
High
Published: 08/07/2026 (08/07/2026, 00:31:19 UTC)
Source: GCVE Database

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.

CVSS v3.1

Score 7.1high

Attack Vector
Adjacent Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
Low
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/07/2026, 07:11:18 UTC

Technical Analysis

The vulnerability in Contiki-NG's DNS/mDNS resolver arises from the skip_name() function in os/services/resolv/resolv.c, which walks DNS wire-format name labels without verifying packet boundaries. The caller function newdata() invokes skip_name() in a loop iterating nquestions times, where nquestions is attacker-controlled and processed before validating the transaction ID. If nquestions exceeds the actual number of complete questions, skip_name() reads beyond the UDP packet buffer. The returned pointer is cast to a dns_answer struct, leading to out-of-bounds memory reads. On builds with RESOLV_CONF_SUPPORTS_MDNS enabled, any local network peer can trigger this via multicast UDP packets on port 5353 without requiring an outstanding query. On standard DNS builds, an attacker capable of injecting UDP responses from port 53 during an active query can trigger the same memory disclosure or crash. The vulnerability is classified as CWE-125 (Out-of-bounds Read) and has a CVSS 3.1 score of 7.1 (High).

Potential Impact

Successful exploitation results in an out-of-bounds read of the uip_buf and adjacent memory, which can disclose sensitive memory contents or cause the DNS resolver to crash. The vulnerability does not allow modification of memory or code execution but can lead to information leakage and denial of service.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, limit exposure by restricting access to multicast UDP port 5353 on local networks for mDNS-enabled builds and ensure that DNS responses from port 53 are authenticated or filtered to prevent injection during active queries. Monitor vendor channels for official patches or updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-8m55-g479-xj8c
Osv Schema Version
1.4.0
Aliases
["CVE-2026-5856"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a75739fbf8831d539d91f58

Added to database: 08/07/2026, 05:56:47 UTC

Last enriched: 08/07/2026, 07:11:18 UTC

Last updated: 09/22/2026, 14:51:29 UTC

Views: 48

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses