{
  "id": "CVE-2026-5856",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-5856",
  "published_at": "2026-08-06T18:47:38.653Z",
  "title": "Contiki-NG DNS/mDNS Resolver Out-of-Bounds Read via Unchecked skip_name Traversal Before Transaction-ID Validation",
  "vendor": "Contiki-NG",
  "product": "Contiki-NG",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-125",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Contiki-NG",
        "product": "Contiki-NG",
        "ranges": [
          "\u003c 04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe"
        ],
        "fixed_in": [
          "04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Contiki-NG to 04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/contiki-ng/contiki-ng/pull/3169"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/contiki-ng/contiki-ng/commit/04a3f0a0067d2ee87d1f297b6d0f4392d8c98ffe"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
