CVE-2020-25687
A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow was discovered in dnsmasq when DNSSEC is enabled and before it validates the received DNS entries. This flaw allows a remote attacker, who can create valid DNS replies, to cause an overflow in a heap-allocated memory. This flaw is caused by the lack of length checks in rfc1035.c:extract_name(), which could be abused to make the code execute memcpy() with a negative size in sort_rrset() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.
What to do
Likely to be exploited: EPSS gives a 94% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | dnsmasq | Fixed | 2.80-1.1ubuntu1.2 | UBUNTU-CVE-2020-25687 |
| Ubuntu 18.04 | dnsmasq | Fixed | 2.79-1ubuntu0.2 | UBUNTU-CVE-2020-25687 |
| Ubuntu 16.04 | dnsmasq | Fixed | 2.75-1ubuntu0.16.04.7 | UBUNTU-CVE-2020-25687 |
| Debian 14 | dnsmasq | Fixed | 2.83-1 | DEBIAN-CVE-2020-25687 |
| Debian 13 | dnsmasq | Fixed | 2.83-1 | DEBIAN-CVE-2020-25687 |
| Debian 12 | dnsmasq | Fixed | 2.83-1 | DEBIAN-CVE-2020-25687 |
| Red Hat Enterprise Linux 9 | dnsmasq | Not affected | ||
| Red Hat Enterprise Linux 9 | dnsmasq-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | dnsmasq | Fixed | 0:2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux 8 | dnsmasq-utils | Fixed | 0:2.79-13.el8_3.1 | RHSA-2021:0150 |
| Red Hat Enterprise Linux 7 | dnsmasq | Not affected | ||
| Red Hat Enterprise Linux 7 | dnsmasq-utils | Not affected | ||
| Red Hat Enterprise Linux 6 | dnsmasq | Not affected | ||
| Red Hat Enterprise Linux 6 | dnsmasq-utils | Not affected | ||
| Red Hat Enterprise Linux 5 | dnsmasq | Not affected | ||
| Alpine Linux 3.24 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.23 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.22 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.21 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.20 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.19 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.18 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.17 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.16 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.15 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.14 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.13 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.12 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.11 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
| Alpine Linux 3.10 | dnsmasq | Fixed | 2.83-r0 | ALPINE-CVE-2020-25687 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- dnsmasq: affected: dnsmasq 2.83
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202101-17 (vendor-advisory)
- https://www.debian.org/security/2021/dsa-4844 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://www.jsof-tech.com/disclosures/dnspooq/
- https://bugzilla.redhat.com/show_bug.cgi?id=1891568
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYW3IR6APUSKOYKL5FT3ACTIHWHGQY32/
- https://security.gentoo.org/glsa/202101-17
- https://www.debian.org/security/2021/dsa-4844
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGB7HL3OWHTLEPSMLDGOMXQKG3KM2QME/
- https://lists.debian.org/debian-lts-announce/2021/03/msg00027.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.