CVE-2026-93007: Dnsmasq: dnsmasq: tcp/53 child-slot exhaustion starves dnssec validation
A flaw was found in dnsmasq. The TCP DNS service uses a small fixed pool of child processes and does not set a receive timeout on client connections. A remote attacker can open idle TCP connections to port 53 and occupy the entire pool, preventing new TCP DNS connections and DNSSEC validation that requires TCP fallback. UDP DNS resolution continues, and occupied slots are released after a fixed lifetime.
Other sources
A resource-exhaustion issue was found in dnsmasq's TCP DNS handler. Incoming TCP connections on port 53 cause fork() of a child process tracked in fixed-size tcppids/tcppipes arrays bounded by MAXPROCS (default 30, configurable via --max-tcp-connections). Children block on readwrite() of the client socket with no SORCVTIMEO. The only timeout is CHILDLIFETIME (150 seconds via SIGALRM).
An unauthenticated remote attacker can open MAXPROCS idle TCP connections and hold all slots for up to 150 seconds. During exhaustion, setdnslisteners() stops polling TCP listen sockets, and DNSSEC swaptotcp() (which shares the same slot pool) returns STATABANDONED. UDP DNS continues to function.
This is a slowloris-style exhaustion of the fork-per-connection TCP architecture. SORCVTIMEO is already applied to upstream server sockets (forward.c) but not to accepted client sockets.
Affected versions: all current versions (fundamental TCP architecture). Fix: Not yet available (reporter coordinating with upstream). Reporter: Shubham Raj (Causal Security) PSIRT Ticket: PSIRTSUPT-23743
— Red Hat
Dnsmasq: dnsmasq: tcp/53 child-slot exhaustion starves dnssec validation
— Microsoft