DNSpooq DNS Vulnerabilities
Seven vulnerabilities have been discovered in the dnsmasq open-source DNS forwarder, used in a wide range of network equipment and remote access tools. These vulnerabilities could be exploited to cause DoS conditions, execute code, or spoof DNS traffic.
Summary
Seven vulnerabilities have been discovered in the dnsmasq open-source DNS forwarder, used in a wide range of network equipment and remote access tools. These vulnerabilities could be exploited to cause DoS conditions, execute code, or spoof DNS traffic.
Affected platforms
The following platforms are known to be affected:
dnsmasq Versions: All prior to 2.83
Threat details
Introduction
Security researchers have discovered seven vulnerabilities, collectively referred to as DNSpooq, in the dnsmasq network infrastructure software. They claim that a remote attacker could exploit some or all of these vulnerabilities to execute arbitrary code or cause a denial-of-service condition on affected systems, or perform DNS cache poisoning attacks.
dnsmasq is a popular open-source DNS forwarder used in a wide variety of networking platforms. Most major networking vendors, as well as most popular Linux distributions, integrate dnsmasq in some way.
Vulnerability details
Four of the seven vulnerabilities appear to be the result of a fault in the DNSSEC implementation used in dnsmasq, which result in heap-based buffer overflows and potentially allow for code to be executed remotely. Two of the vulnerabilities are due to improper DNS resource name checks, which could allow a remote user to spoof DNS traffic and perform DNS cache poisoning.
Remediation advice
Affected organisations are encouraged to contact their relevant vendors and ensure any vulnerable systems are using dnsmasq 2.83 or later. A full list of affected vendors, along with their relevant updates, is available on the CERT/CC vulnerability note VU#434904.
Organisations unable to fully update should consider implementing the following partial mitigations:
- Temporarily disable DNSSEC validation until updates are applied.
- Configure dnsmasq to not listen to WAN interfaces if they are not required.
- Consider implementing DNS-over-TLS (DoT) or DNS-over-HTTPS (DoH).
- Limit maximum extension mechanisms for DNS (EDNS) message length. Please note that this disagrees with RFC5625 recommendations.
- Limit the maximum number of queries forwarded with the --dns-forward-max= option to 150 or lower.
Definitive source of threat updates
CVE Vulnerabilities
Last edited: 25 January 2021 10:24 am