Skip to content

CVE-2020-25685 A flaw was found in dnsmasq before version 2.83. When getting a reply from a forwarded query, dnsmasq checks in forward.c:reply_query(), which is the forwarded query that matches the reply, by only us...

LowCVSS 3.7 EPSS 2.2%
Published
Updated
Exploit status
No public exploit known

Description

A flaw was found in dnsmasq before version 2.83. When getting a reply from a forwarded query, dnsmasq checks in forward.c:reply_query(), which is the forwarded query that matches the reply, by only using a weak hash of the query name. Due to the weak hash (CRC32 when dnsmasq is compiled without DNSSEC, SHA-1 when it is) this flaw allows an off-path attacker to find several different domains all having the same hash, substantially reducing the number of attempts they would have to perform to forge a reply and get it accepted by dnsmasq. This is in contrast with RFC5452, which specifies that the query name is one of the attributes of a query that must be used to match a reply. This flaw could be abused to perform a DNS Cache Poisoning attack. If chained with CVE-2020-25684 the attack complexity of a successful attack is reduced. The highest threat from this vulnerability is to data integrity.

Affected products

ProductAffected versionsFixed in
debian/dnsmasq(Debian:12) < 2.83-1 2.83-1
debian/dnsmasq(Debian:13) < 2.83-1 2.83-1
debian/dnsmasq(Debian:14) < 2.83-1 2.83-1
thekelleys dnsmasq < 2.83 2.83
fedoraproject fedora = 32 No fix listed
fedoraproject fedora = 33 No fix listed
debian linux = 10.0 No fix listed
arista eos >= 4.21, < 4.21.14m 4.21.14m
arista eos >= 4.22, < 4.22.9m 4.22.9m
arista eos >= 4.23, < 4.23.7m 4.23.7m
arista eos >= 4.24, < 4.24.5m 4.24.5m
arista eos >= 4.25, < 4.25.2f 4.25.2f
alpine/dnsmasq(Alpine:v3.10) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.11) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.12) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.13) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.14) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.15) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.16) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.17) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.18) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.19) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.20) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.21) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.22) < 2.83-r0 2.83-r0
Show 28 more
ProductAffected versionsFixed in
alpine/dnsmasq(Alpine:v3.23) < 2.83-r0 2.83-r0
alpine/dnsmasq(Alpine:v3.24) < 2.83-r0 2.83-r0
ubuntu/dnsmasq(Ubuntu:Pro:14.04) All versions No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.66-4ubuntu1 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.67-1 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.1 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.2 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.2+esm1 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.2+esm2 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.2+esm3 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.2+esm5 No fix listed
ubuntu/dnsmasq(Ubuntu:Pro:14.04) = 2.68-1ubuntu0.2+esm6 No fix listed
ubuntu/dnsmasq(Ubuntu:16.04) < 2.75-1ubuntu0.16.04.7 2.75-1ubuntu0.16.04.7
ubuntu/dnsmasq(Ubuntu:16.04) = 2.75-1 No fix listed
ubuntu/dnsmasq(Ubuntu:16.04) = 2.75-1ubuntu0.16.04.1 No fix listed
ubuntu/dnsmasq(Ubuntu:16.04) = 2.75-1ubuntu0.16.04.2 No fix listed
ubuntu/dnsmasq(Ubuntu:16.04) = 2.75-1ubuntu0.16.04.3 No fix listed
ubuntu/dnsmasq(Ubuntu:16.04) = 2.75-1ubuntu0.16.04.4 No fix listed
ubuntu/dnsmasq(Ubuntu:16.04) = 2.75-1ubuntu0.16.04.5 No fix listed
ubuntu/dnsmasq(Ubuntu:18.04) < 2.79-1ubuntu0.2 2.79-1ubuntu0.2
ubuntu/dnsmasq(Ubuntu:18.04) = 2.78-1 No fix listed
ubuntu/dnsmasq(Ubuntu:18.04) = 2.78-3 No fix listed
ubuntu/dnsmasq(Ubuntu:18.04) = 2.79-1 No fix listed
ubuntu/dnsmasq(Ubuntu:20.04) < 2.80-1.1ubuntu1.2 2.80-1.1ubuntu1.2
ubuntu/dnsmasq(Ubuntu:20.04) = 2.80-1ubuntu2 No fix listed
ubuntu/dnsmasq(Ubuntu:20.04) = 2.80-1ubuntu4 No fix listed
ubuntu/dnsmasq(Ubuntu:20.04) = 2.80-1.1ubuntu1 No fix listed

References