Type conversion in scapy - #VU159455
Published: November 5, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service in a relay-mode Scapy DNS answering machine.
The vulnerability exists due to incorrect type conversion in dns_resolve() when building an internal cache key for a relayed DNS question. A remote attacker can send an unresolved question with a valid qtype between 256 and 65535 to trigger an unhandled exception because struct.pack("!B", qtype) accepts only an 8-bit value, closing the responder socket and preventing the affected instance from answering subsequent requests.
LLMNR and mDNS answering machines reuse the same responder, exposing the relay path on ports 5355 and 5353.