{"id":"CVE-2026-5856","aliases":["CVE-2026-5856"],"related":[],"kind":"vulnerability","state":"published","title":"Contiki-NG DNS/mDNS Resolver Out-of-Bounds Read via Unchecked skip_name Traversal Before Transaction-ID Validation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-06T18:47:38.653Z","modified":"2026-11-08T14:07:09.250Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe","status":"affected"}],"vendor":"Contiki-NG","product":"Contiki-NG","source":"cvelist"}],"references":[{"url":"https://github.com/contiki-ng/contiki-ng","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/contiki-ng/contiki-ng/pull/3169","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/contiki-ng/contiki-ng/commit/04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Kazuma Matsumoto, a security researcher at GMO Cybersecurity by IERAE, Inc."],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-07T17:40:56.628Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5856","url":"https://www.cve.org/CVERecord?id=CVE-2026-5856","licence":"CVE Terms of Use","modified":"2026-11-08T14:07:09.250Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5856","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5856","licence":"Public domain","modified":"2026-09-16T20:21:01.047Z"}],"updatedAt":"2026-11-25T22:59:31.387Z","epss":{"score":0.00253,"percentile":0.17956,"date":"2026-12-01T12:00:22.000Z"}}