CVE-2026-5856 Details
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.
A vulnerability in Contiki-NG's DNS/mDNS resolver allows for an out-of-bounds read of memory. The issue arises in the 'skip_name()' function within 'os/services/resolv/resolv.c', where DNS wire-format name labels are processed without proper packet-boundary checks. This flaw can be exploited by manipulating the 'nquestions' field in the DNS header, causing the function to read past the end of the UDP packet buffer. The vulnerability is present in Contiki-NG builds with 'RESOLV_CONF_SUPPORTS_MDNS' enabled, where any peer on the local network can trigger the issue via an unauthenticated multicast UDP packet. In standard DNS builds, an attacker can exploit the vulnerability by injecting a UDP response from port 53 during an active query.
Users can update to the latest version of Contiki-NG, where this vulnerability has been addressed, to mitigate this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 6, 2026CISA-ADP
Assessed Aug 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/contiki-ng/contiki-ng | [email protected] | Vendor |
| https://github.com/contiki-ng/contiki-ng/commit/04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe | [email protected] | Source CodeVendor |
| https://github.com/contiki-ng/contiki-ng/pull/3169 | [email protected] | Issue TrackingSource CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Contiki-NG | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 7, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2026 | New CVE Received | [email protected] |
Volerion