Skip to content

CVE-2020-25684 A flaw was found in dnsmasq before version 2.83. When getting a reply from a forwarded query, dnsmasq checks in the forward.c:reply_query() if the reply destination address/port is used by the pending...

LowCVSS 3.7 EPSS 4.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 the forward.c:reply_query() if the reply destination address/port is used by the pending forwarded queries. However, it does not use the address/port to retrieve the exact forwarded query, substantially reducing the number of attempts an attacker on the network would have to perform to forge a reply and get it accepted by dnsmasq. This issue contrasts with RFC5452, which specifies a query's attributes that all must be used to match a reply. This flaw allows an attacker to perform a DNS Cache Poisoning attack. If chained with CVE-2020-25685 or CVE-2020-25686, 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 = 9.0 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
Show 29 more
ProductAffected versionsFixed in
alpine/dnsmasq(Alpine:v3.22) < 2.83-r0 2.83-r0
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