Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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 contains a vulnerability in the skip_name() function that allows an out-of-bounds read of memory. This occurs because skip_name() processes DNS wire-format name labels without checking packet boundaries, and the caller loops based on an attacker-controlled field before validating the transaction ID. This can lead to reading memory beyond the UDP packet buffer, potentially disclosing sensitive information or causing a crash. The issue affects both mDNS-enabled builds and standard DNS builds under specific conditions.

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"]
Ecosystems
[]
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: 08/07/2026, 07:41:09 UTC

Views: 2

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