Skip to content
OpenAdvisories
Unscored Public exploit CVE-2020-25686 EUVD-2020-18348GHSA-9xp3-mp9c-47rf

A flaw was found in dnsmasq before version 2.83. When receiving a query, dnsmasq does not check for an existing pending request for the sam…

Published Jan 20, 2021 · Updated Nov 4, 2025 · Assigned by redhat

Description

A flaw was found in dnsmasq before version 2.83. When receiving a query, dnsmasq does not check for an existing pending request for the same name and forwards a new request. By default, a maximum of 150 pending queries can be sent to upstream servers, so there can be at most 150 queries for the same name. This flaw allows an off-path attacker on the network to substantially reduce the number of attempts that it would have to perform to forge a reply and have it accepted by dnsmasq. This issue is mentioned in the "Birthday Attacks" section of RFC5452. 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.

Affected products

VendorProductAffectedFixed
— dnsmasq dnsmasq 2.83 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dnsmasq 2.83-1 —
Debian 13 dnsmasq 2.83-1 —
Debian 12 dnsmasq 2.83-1 —
Debian 10 dnsmasq 2.80-1+deb10u1 DSA-4844-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS dnsmasq 2.80-1.1ubuntu1.2 USN-4698-1
Ubuntu 18.04 LTS dnsmasq 2.79-1ubuntu0.2 USN-4698-1
Ubuntu 16.04 LTS dnsmasq 2.75-1ubuntu0.16.04.7 USN-4698-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS dnsmasq No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 dnsmasq +1 2.79-13.el8_3.1 RHSA-2021:0150
RHEL 7 dnsmasq +1 2.76-16.el7_9.1 RHSA-2021:0153
RHEL 7 redhat-virtualization-host +1 4.3.13-20210127.0.el7_9 RHSA-2021:0395
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 redhat-virtualization-host +1 4.4.4-20210201.0.el8_3 RHSA-2021:0401
RHEL 8.2 EUS dnsmasq +1 2.79-11.el8_2.2 RHSA-2021:0151
RHEL 8.1 EUS dnsmasq +1 2.79-6.el8_1.1 RHSA-2021:0152
RHEL 7.7 EUS dnsmasq +1 2.76-10.el7_7.2 RHSA-2021:0154
RHEL 7.6 EUS dnsmasq +1 2.76-7.el7_6.2 RHSA-2021:0155
RHEL 7.4 TUS dnsmasq +1 2.76-2.el7_4.3 RHSA-2021:0156
RHEL 7.4 E4S dnsmasq +1 2.76-2.el7_4.3 RHSA-2021:0156
RHEL 7.4 AUS dnsmasq +1 2.76-2.el7_4.3 RHSA-2021:0156
RHEL 7.3 AUS dnsmasq +1 2.66-21.el7_3.3 RHSA-2021:0245
RHEL 7.2 AUS dnsmasq +1 2.66-14.el7_2.3 RHSA-2021:0240
ReleasePackageFixed inAdvisory
SLES 15 SP2 dnsmasq 2.78-7.6.1 SUSE-SU-2021:0163-1
SLES 15 SP1 dnsmasq 2.78-7.6.1 SUSE-SU-2021:0163-1
SLES 15 dnsmasq 2.78-3.11.1 SUSE-SU-2021:0162-1
SLES 12 SP5 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLES 12 SP4 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLES 12 SP2 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLES 11 SP4 dnsmasq 2.78-0.17.15.1 SUSE-SU-2021:14603-1
SLES for SAP 15 dnsmasq 2.78-3.11.1 SUSE-SU-2021:0162-1
SLES for SAP 12 SP5 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLES for SAP 12 SP4 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLES for SAP 12 SP3 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLES for SAP 12 SP2 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SLE HPC 15 dnsmasq 2.78-3.11.1 SUSE-SU-2021:0162-1
SUSE OpenStack Cloud Crowbar 9 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SUSE OpenStack Cloud Crowbar 8 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SUSE OpenStack Cloud 9 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SUSE OpenStack Cloud 8 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SUSE OpenStack Cloud 7 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SUSE Linux Enterprise Point of Sale 11 SP3 dnsmasq 2.78-0.16.14.1 SUSE-SU-2021:14604-1
SUSE HPE Helion OpenStack 8 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
SUSE Enterprise Storage 5 dnsmasq 2.78-18.15.1 SUSE-SU-2021:0166-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed dnsmasq 2.86-1.1 openSUSE-SU-2024:10721-1
openSUSE Leap 15.2 dnsmasq 2.78-lp152.7.3.1 openSUSE-SU-2021:0124-1
openSUSE Leap 15.1 dnsmasq 2.78-lp151.5.6.1 openSUSE-SU-2021:0129-1
ReleasePackageFixed inAdvisory
Alpine v3.24 dnsmasq 2.83-r0 —
Alpine v3.23 dnsmasq 2.83-r0 —
Alpine v3.22 dnsmasq 2.83-r0 —
Alpine v3.21 dnsmasq 2.83-r0 —
Alpine v3.20 dnsmasq 2.83-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 dnsmasq 2.83-r0 —
Alpine v3.18 dnsmasq 2.83-r0 —
Alpine v3.17 dnsmasq 2.83-r0 —
Alpine v3.16 dnsmasq 2.83-r0 —
Alpine v3.15 dnsmasq 2.83-r0 —
Alpine v3.14 dnsmasq 2.83-r0 —
Alpine v3.13 dnsmasq 2.83-r0 —
Alpine v3.12 dnsmasq 2.83-r0 —
Alpine v3.11 dnsmasq 2.83-r0 —
Alpine v3.10 dnsmasq 2.83-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 dnsmasq +1 2.76-16.amzn2.1.1 ALAS2-2021-1587

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 dnsmasq +1 2.79-13.el8_3.1 ELSA-2021-0150
Oracle Linux 7 dnsmasq +1 2.76-16.el7_9.1 ELSA-2021-0153

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • knqyf263/dnspooq ★ 101 · Jan 23, 2021

    DNSpooq - dnsmasq cache poisoning (CVE-2020-25686, CVE-2020-25684, CVE-2020-25685)

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 28

References