REDHAT-BUG-2535050: Low severity nlnetlabs Unbound vulnerability
In NLnetLabs Unbound 1.20.0 up to and including 1.26.0, a vulnerability on the 'serve-expired' code path can cause a double decrement on the 'wait-limit' counter per client IP essentially bypassing one of the counter measures that was introduced for DNSBomb (CVE-2024-33655). A malicious actor can exploit this by controlling an authoritative zone with short TTL, so cached entries expire quickly. Each 'slow' query, one the attacker's authoritative never answers, is followed by one query for an expired cached name, which is answered immediately via the 'serve-expired' path and decrements the counter twice. This second query was named 'pump'. By alternating slow queries and pumps, the attacker keeps the per-client counter at or below the configured 'wait-limit' indefinitely, and can hold an arbitrary number of pending queries from a single source IP, up to the global mesh quota (num-queries-per-thread); eventually bypassing one of the counter measures introduced for DNSBomb (CVE-2024-33655). This vulnerability is present on the 'serve-expired' code path.
Affected Software
Event History
Frequently Asked Questions
What conditions must an attacker control to exploit this issue?
The attacker must control an authoritative DNS zone with short TTL values so cached records expire quickly. Their authoritative server must also leave selected “slow” queries unanswered while they alternate those queries with requests for expired cached names.
Which deployments are realistically exposed?
Unbound deployments running versions 1.20.0 through 1.26.0 are affected when the serve-expired path is in use. The issue enables a single source IP to retain pending queries beyond the intended per-client wait-limit, up to the global num-queries-per-thread mesh quota.
How does the bypass affect query limits?
A query answered through serve-expired decrements the per-client wait-limit counter twice. By alternating unanswered slow queries with expired-cache “pump” queries, an attacker can keep the counter at or below wait-limit indefinitely while accumulating pending queries.