Remote denial of service in ISC BIND 9 via a DNAME record in a recursive query response

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

Overview

Original source data

named in ISC BIND 9.x before 9.9.9-P4, 9.10.x before 9.10.4-P4, and 9.11.x before 9.11.0-P1 allows remote attackers to cause a denial of service (assertion failure and daemon exit) via a DNAME record in the answer section of a response to a recursive query, related to db.c and resolver.c.

Affected products and scope

ISC BIND 9 in the 9.9, 9.10 and 9.11 branches, in releases older than the fixed maintenance releases ISC published for each of those branches. The record also lists Red Hat Enterprise Linux (including its extended, advanced and terminal support channels), Debian, and several NetApp products as affected, which reflects BIND being bundled into operating system images, appliances and storage platforms. Anyone running BIND from a distribution package should treat the distribution's own update as the thing to track.

Technical details

The weakness is in how BIND's resolver handles a DNAME record, a DNS record type that redirects an entire subtree of names to a different part of the namespace. When a response to a recursive query carries a DNAME record in its answer section, the affected code paths, identified in the record as db.c and resolver.c, reach a state they do not expect and trip an assertion. The daemon exits as a result. The crafted data arrives as a DNS response over the network, so it is the answer content rather than a local action that triggers the fault. The record does not describe the specific record contents or the exact assertion involved, and public detail at that level is limited.

Exploitability

The attack is remote, needs no authentication and no user interaction: the attacker only has to get a response containing the offending DNAME record to a resolver that is processing a recursive query. That places the exposure on resolvers that accept answers from the network rather than on servers that only answer queries. The record reports no known exploitation in the wild and no public exploit.

Technical impact

An attacker gains the ability to terminate the named process on the target server, and with it DNS resolution for every client that relies on that instance. Recovery is a restart. The record describes no path to code execution, no ability to read or alter records, and no effect outside availability, which is consistent with a daemon that catches its own invariant violation and exits.

Business impact

If the affected server is a resolver that clients depend on, every lookup that depends on it fails while it is down. That can surface as broken internal applications, failed VPN or single sign-on lookups, delayed mail delivery, and service discovery that stops working, all of which arrive as a burst of unrelated tickets rather than as one obvious DNS incident. The attacker cannot read or modify data through this flaw, so the cost is downtime and the staff time to diagnose and restart, not a breach or a regulatory notification. Restarting the daemon restores service, but nothing in the record suggests the same response cannot be delivered again, so a resolver left unpatched on a network where an attacker can reach it is repeatably interruptible. Teams running BIND as a recursive resolver should care, and so should teams running operating system images or appliances that bundle it, especially where that resolver is a single point of failure.

Remediation

Apply the fixed BIND release for your branch, or the updated BIND package from your operating system or appliance vendor if you run the bundled copy. A fix exists, so patching is the action; the record describes no configuration workaround that removes the fault. Where the resolver sits in front of a network you control, prioritise it, because a crash there takes resolution down for everyone behind it.

Detection

Watch the named process for unexpected exits and restarts, since the observable symptom is the daemon dying rather than returning an error to a client: process supervision alerts, core dumps and named log entries around assertion failures are the places to look. DNS query logging, where it is enabled, can show answers containing DNAME records arriving from outside sources. A sudden wave of resolution failures across many clients at once, followed by recovery after a restart, is the pattern that should prompt a check of the installed BIND build.

Sources (23)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.