AdGuard Home DoQ Shared-Budget Starvation Enables Remote Unauthenticated DoS
Description
AdGuard Home v0.107.74 is affected by a denial-of-service issue in its DNS-over-QUIC handling. A remote unauthenticated client can use the DoQ listener to exhaust the shared request-processing budget before normal request handling completes, causing unrelated DNS traffic handled by the same server instance to stall or fail.
This issue was reproduced through the stock AdGuard Home server entrypoint. In the tested build, the DoQ listener is provided by dnsproxy v0.81.1.
Two practical exploitation variants were validated:
- idle DoQ connections that consume shared worker capacity before opening any DNS stream
- partial DoQ streams that hold shared workers until close or timeout
The second variant is stronger because it only needs a single QUIC connection and very little application-layer payload.
Affected Versions
- AdGuard Home
v0.107.74 - bundled DoQ implementation from
dnsproxy v0.81.1
Root Cause
AdGuard Home relies on a shared requestsSema budget created in dnsproxy/proxy/proxy.go and used across UDP, TCP, TLS, and QUIC request handling.
In the DoQ path:
- the QUIC accept loop acquires one shared token as soon as a connection is accepted and keeps it for the lifetime of that connection
- each accepted DoQ stream acquires one additional shared token
- stream handling waits for the rest of the peer data before completing request parsing
As a result, a remote peer can keep shared request-budget slots occupied with pre-request or incomplete-request DoQ state. Because the same budget is used across multiple DNS frontends, DoQ state can starve unrelated traffic handled by the same instance.
The built-in rate limiter does not mitigate this path because it is only applied to UDP requests.
Variant 1: Idle DoQ Connections
A client can complete QUIC handshakes, keep the connections idle, and consume shared worker capacity before opening any DNS stream.
In the reproduced run, 334 idle DoQ connections were enough to stall plain DNS traffic and prevent a fresh DoQ query from opening a stream under the default dns.max_goroutines: 300 setting.
This variant requires no DNS payload.
Variant 2: Partial DoQ Streams
A client can open a single QUIC connection, create many streams, send only a minimal stream prefix, and withhold the rest of the DNS payload and FIN. The corresponding shared worker slots remain occupied until the streams are closed or time out.
In the reproduced run, one QUIC connection plus 305 prefix-only streams consumed the default shared worker budget. Each stream sent only the two-byte prefix 0010, for a total attacker application payload of 610 bytes.
During that hold window, plain DNS queries timed out and fresh DoQ traffic was also delayed until the held streams were released.
Impact
This is a remote unauthenticated cross-protocol denial of service.
The issue is not limited to DoQ itself. Because the exhausted budget is shared across DNS frontends, a client interacting only with the DoQ listener can degrade or block unrelated DNS traffic handled by the same server instance.
The practical impact demonstrated in reproduction was:
- plain DNS requests delayed or timing out during the hold window
- fresh DoQ requests blocked or delayed during the same window
- successful processing resuming only after the held DoQ state was released
Reproduction Materials
Two separate reproduction packages were prepared:
finding-01-doq-idle-connection-semaphore-dos/finding-02-doq-partial-stream-semaphore-dos/
Each package contains:
- a short finding-specific report
- a self-contained lab configuration
- the helper probes used for reproduction
- exact reproduction commands
- selected evidence logs
Attachments finding-01-doq-idle-connection-semaphore-dos.zip finding-02-doq-partial-stream-semaphore-dos.zip