CVEfocus › CVE database › CVE-2020-25685

CVE-2020-25685

CVSS 3.7 LowEPSS 2.2% (higher than 83% of CVEs)Published 2021-01-20Updated 2025-11-04Assigner: redhat

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.

CWE-326

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

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

27Fixed
1Fix pending
3Will not fix
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04dnsmasqFixed2.80-1.1ubuntu1.2UBUNTU-CVE-2020-25685
Ubuntu 18.04dnsmasqFixed2.79-1ubuntu0.2UBUNTU-CVE-2020-25685
Ubuntu 16.04dnsmasqFixed2.75-1ubuntu0.16.04.7UBUNTU-CVE-2020-25685
Ubuntu 14.04dnsmasqFix pendingUBUNTU-CVE-2020-25685
Debian 14dnsmasqFixed2.83-1DEBIAN-CVE-2020-25685
Debian 13dnsmasqFixed2.83-1DEBIAN-CVE-2020-25685
Debian 12dnsmasqFixed2.83-1DEBIAN-CVE-2020-25685
Red Hat Enterprise Linux 9dnsmasqNot affected
Red Hat Enterprise Linux 9dnsmasq-utilsNot affected
Red Hat Enterprise Linux 8dnsmasqFixed0:2.79-13.el8_3.1RHSA-2021:0150
Red Hat Enterprise Linux 8dnsmasq-utilsFixed0:2.79-13.el8_3.1RHSA-2021:0150
Red Hat Enterprise Linux 7dnsmasqFixed0:2.76-16.el7_9.1RHSA-2021:0153
Red Hat Enterprise Linux 7dnsmasq-utilsFixed0:2.76-16.el7_9.1RHSA-2021:0153
Red Hat Enterprise Linux 7redhat-virtualization-hostFixed0:4.3.13-20210127.0.el7_9RHSA-2021:0395
Red Hat Enterprise Linux 7redhat-virtualization-host-image-updateFixed0:4.3.13-20210127.0.el7_9RHSA-2021:0395
Red Hat Enterprise Linux 6dnsmasqWill not fix
Out of support scope
Red Hat Enterprise Linux 6dnsmasq-utilsWill not fix
Out of support scope
Red Hat Enterprise Linux 5dnsmasqWill not fix
Out of support scope
Alpine Linux 3.24dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.23dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.22dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.21dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.20dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.19dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.18dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.17dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.16dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.15dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.14dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.13dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.12dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.11dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685
Alpine Linux 3.10dnsmasqFixed2.83-r0ALPINE-CVE-2020-25685

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.

Vendor advisories:

References

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.