Skip to content

CVE-2020-25682 A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the ne...

HighCVSS 8.1 EPSS 75.1%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

A flaw was found in dnsmasq before 2.83. A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker on the network, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-allocated memory, possibly executing code on the machine. The flaw is in the rfc1035.c:extract_name() function, which writes data to the memory pointed by name assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths, it is possible extract_name() gets passed an offset from the base buffer, thus reducing, in practice, the number of available bytes that can be written in the buffer. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Upgrade path

24 packages: 22 fixed.

PackageAffectedFixed inStatus
alpine/dnsmasq(Alpine v3.10) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.11) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.12) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.13) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.14) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.15) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.16) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.17) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.18) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.19) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.20) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.21) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.22) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.23) < 2.83-r0 2.83-r0 Fixed
alpine/dnsmasq(Alpine v3.24) < 2.83-r0 2.83-r0 Fixed
debian/dnsmasq(Debian 12) < 2.83-1 2.83-1 Fixed
debian/dnsmasq(Debian 13) < 2.83-1 2.83-1 Fixed
debian/dnsmasq(Debian 14) < 2.83-1 2.83-1 Fixed
thekelleys dnsmasq < 2.83 2.83 Fixed
ubuntu/dnsmasq(Ubuntu 16.04) < 2.75-1ubuntu0.16.04.7; = 2.75-1; = 2.75-1ubuntu0.16.04.1; = 2.75-1ubuntu0.16.04.2 +3 more 2.75-1ubuntu0.16.04.7 Fixed
ubuntu/dnsmasq(Ubuntu 18.04) < 2.79-1ubuntu0.2; = 2.78-1; = 2.78-3; = 2.79-1 2.79-1ubuntu0.2 Fixed
ubuntu/dnsmasq(Ubuntu 20.04) < 2.80-1.1ubuntu1.2; = 2.80-1.1ubuntu1; = 2.80-1ubuntu2; = 2.80-1ubuntu4 2.80-1.1ubuntu1.2 Fixed
debian linux = 9.0; = 10.0 No fix listed Versions listed
fedoraproject fedora = 32; = 33 No fix listed Versions listed

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
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
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: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
Show 13 more
ProductAffected versionsFixed in
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