CVE-2016-1285: Input Validation
named in ISC BIND 9.x before 9.9.8-P4 and 9.10.x before 9.10.3-P4 does not properly handle DNAME records when parsing fetch reply messages, which allows remote attackers to cause a denial of service (assertion failure and daemon exit) via a malformed packet to the rndc (aka control channel) interface, related to alist.c and sexpr.c.
Other sources
The following flaw, reported by ISC, was found in BIND:
Testing by ISC has uncovered a defect in control channel input handling which can cause named to exit due to an assertion failure in sexpr.c or alist.c when a malformed packet is sent to named's control channel (the interface which allows named to be controlled using the 'rndc" server control utility).
This assertion occurs before authentication but after network-address-based access controls have been applied. Or in other words: an attacker does not need to have a key or other authentication, but does need to be within the address list specified in the "controls" statement in named.conf which enables the control channel. If no "controls" statement is present in named.conf, named still defaults to listening for control channel information on loopback addresses (127.0.0.1 and ::1) if the file rndc.key is present in the configuration directory and contains a valid key.
A search for similar problems revealed an associated defect in the rndc server control utility whereby a malformed response from the server could cause the rndc program to crash. For completeness, it is being fixed at the same time even though this defect in the rndc utility is not in itself exploitable.
All servers are vulnerable if they accept remote commands on the control channel. Servers which are vulnerable can be stopped by an attacker sending the offending packet if the attacker is sending from a system listed within the address list specified in the "controls" statement (or from localhost if the control channel is using the default address list) resulting in denial of service to clients.
Mitigation:
Restrict access to the control channel (by using the "controls" configuration statement in named.conf) to allow connection only from trusted systems.
Note that if no "controls" statement is present, named defaults to allowing control channel connections only from localhost (127.0.0.1 and ::1) if and only if the file rndc.key exists in the configuration directory and contains valid key syntax. If rndc.key is not present and no "controls" statement is present in named.conf, named will not accept commands on the control channel.
External References:
https://kb.isc.org/article/AA-01352
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/bindto a version that resolves this vulnerability.Fixed in 9.9.8 - Upgrade
Upgrade
redhat/bindto a version that resolves this vulnerability.Fixed in 9.10.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.9.8-P4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.10.3-P4 - Configuration
Use the controls configuration statement to restrict control-channel connections to trusted systems.
BIND named.conf controls = Allow connections only from trusted systems
Event History
Frequently Asked Questions
What is the severity of CVE-2016-1285?
CVE-2016-1285 has a CVSS score of 7.5, indicating it is considered a high severity vulnerability.
How do I fix CVE-2016-1285?
To fix CVE-2016-1285, upgrade to ISC BIND version 9.9.8-P4, 9.10.3-P4 or later.
What is the impact of CVE-2016-1285?
CVE-2016-1285 allows an attacker to cause a denial of service by sending a malformed packet to the affected BIND 9.x server.
Which versions of BIND are affected by CVE-2016-1285?
CVE-2016-1285 affects ISC BIND 9.x versions prior to 9.9.8-P4 and 9.10.x before 9.10.3-P4.
Is CVE-2016-1285 exploitable remotely?
Yes, CVE-2016-1285 is remotely exploitable by sending malformed packets to the control channel of the affected BIND servers.