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...
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2020-25682 vendor-advisory
- bugzilla.redhat.com issue-tracking patch third-party-advisory
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update mailing-list third-party-advisory
- FEDORA-2021-2e4c3d5a9d vendor-advisory
- FEDORA-2021-84440e87ba vendor-advisory
- GLSA-202101-17 third-party-advisory vendor-advisory
- DSA-4844 third-party-advisory vendor-advisory
- www.jsof-tech.com issue-tracking third-party-advisory
- www.kb.cert.org
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- lists.thekelleys.org.uk issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking