cve.bz

CVE-2020-25687 Heap-based Buffer Overflow

5.9 mediumEPSS 94%Fix available

Medium (5.9). EPSS 94% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
94% (unchanged from 94% a week ago; 89% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-25687 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-25687?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-25687?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-25687 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
thekelleys:dnsmasqbefore 2.83
fedoraproject:fedora32
fedoraproject:fedora33
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9dnsmasq2.76-5+deb9u3DLA-2604-1
Debian10dnsmasq2.80-1+deb10u1DSA-4844-1
Debian12, 13, 14dnsmasq2.83-1DEBIAN-CVE-2020-25687
Ubuntu16.04:LTSdnsmasq2.75-1ubuntu0.16.04.7UBUNTU-CVE-2020-25687 USN-4698-1
Ubuntu18.04:LTSdnsmasq2.79-1ubuntu0.2UBUNTU-CVE-2020-25687 USN-4698-1
Ubuntu20.04:LTSdnsmasq2.80-1.1ubuntu1.2UBUNTU-CVE-2020-25687 USN-4698-1
Red Hatenterprise_linux:8::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-13.el8_3.1RHSA-2021:0150
Red Hatrhel_eus:8.1::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-6.el8_1.1RHSA-2021:0152
Red Hatrhel_eus:8.2::appstreamdnsmasq, dnsmasq-utils, dnsmasq-debuginfo and 2 more0:2.79-11.el8_2.2RHSA-2021:0151
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 14 morednsmasq2.78-18.15.1SUSE-SU-2021:0166-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morednsmasq2.78-3.11.1SUSE-SU-2021:0162-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Basesystem 15 SP2dnsmasq2.78-7.6.1SUSE-SU-2021:0163-1
SUSELinux Enterprise Point of Sale 11 SP3dnsmasq2.78-0.16.14.1SUSE-SU-2021:14604-1
SUSELinux Enterprise Server 11 SP4-LTSSdnsmasq2.78-0.17.15.1SUSE-SU-2021:14603-1
openSUSELeap 15.1dnsmasq2.78-lp151.5.6.1openSUSE-SU-2021:0129-1
openSUSELeap 15.2dnsmasq2.78-lp152.7.3.1openSUSE-SU-2021:0124-1
Alpinev3.10, v3.11, v3.12 and 12 morednsmasq2.83-r0ALPINE-CVE-2020-25687

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue does not affect the versions of dnsmasq as shipped with Red Hat Enterprise Linux 5, 6, and 7 as they are not compiled with DNSSEC support.

Red Hat's mitigation

The only known way to mitigate this flaw is to disable DNSSEC altogether, by removing the `--dnssec` command line option or the `dnssec` option from dnsmasq configuration file.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8dnsmasq-0:2.79-13.el8_3.1Fixed 2021-01-19RHSA-2021:0150
Red Hat Enterprise Linux 8.1 Extended Update Supportdnsmasq-0:2.79-6.el8_1.1Fixed 2021-01-19RHSA-2021:0152
Red Hat Enterprise Linux 8.2 Extended Update Supportdnsmasq-0:2.79-11.el8_2.2Fixed 2021-01-19RHSA-2021:0151
Red Hat Enterprise Linux 5dnsmasqNot affected
Red Hat Enterprise Linux 6dnsmasqNot affected
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux 9dnsmasqNot affected
Red Hat OpenStack Platform 10 (Newton)dnsmasqNot affected
Red Hat OpenStack Platform 13 (Queens)dnsmasqNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-25687.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON