Knot Resolver DNS-over-QUIC Heap Overflow Enables Unauthenticated RCE
Patch & Detection Intelligence · 3 sources · Updated 4mo ago · First seen Jun 8, 2026

A remotely triggerable heap buffer overflow in Knot Resolver 6.3.0 allows unauthenticated remote code execution through the kresd DNS-over-QUIC listener. The flaw stems from incorrect size tracking during inbound QUIC STREAM frame reassembly, causing a later memcpy() to write past an allocated heap buffer. Public reporting said a single QUIC connection carrying six crafted STREAM frames can produce a controlled out-of-bounds write and, with heap grooming, overwrite a libgnutls cleanup handler to seize control of a function pointer and argument. Researchers classified the issue as CWE-787 and demonstrated end-to-end RCE in a Debian 12 lab environment with ASLR disabled; failed attempts can also crash worker processes and cause denial of service.
CZ.NIC fixed the vulnerability in Knot Resolver 6.4.1, and full technical details plus working proof-of-concept exploit code were disclosed publicly shortly after the patch release. No in-the-wild exploitation has been confirmed, but the exposure is significant because Knot Resolver is deployed by major ISPs and handles untrusted network traffic, raising the risk of resolver compromise and forged DNS responses for downstream users. Organizations are being urged to upgrade to 6.4.1 immediately; if patching cannot be completed at once, defenders should disable DNS-over-QUIC, restrict access to the DoQ service, and monitor for repeated kresd worker crashes that could indicate exploitation attempts.


