CVE-2020-25687Heap-based Buffer Overflow in Dnsmasq

Severity
5.9MEDIUMNVD
OSV3.7
EPSS
22.0%
top 4.22%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJan 20
Latest updateMay 24

Description

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, res

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 2.2 | Impact: 3.6

Affected Packages4 packages

NVDthekelleys/dnsmasq< 2.83
Debianthekelleys/dnsmasq< 2.83-1+3
Ubuntuthekelleys/dnsmasq< 2.75-1ubuntu0.16.04.7+2
CVEListV5thekelleys/dnsmasqdnsmasq 2.83

Also affects: Debian Linux 10.0, 9.0, Fedora 32, 33

Patches

🔴Vulnerability Details

5
GHSA
GHSA-rv27-69cw-6j7x: A flaw was found in dnsmasq before version 22022-05-24
OSV
dnsmasq regression2021-02-24
OSV
CVE-2020-25687: A flaw was found in dnsmasq before version 22021-01-20
CVEList
CVE-2020-25687: A flaw was found in dnsmasq before version 22021-01-20
OSV
dnsmasq vulnerabilities2021-01-19

📋Vendor Advisories

5
Cisco
Multiple Vulnerabilities in dnsmasq DNS Forwarder Affecting Cisco Products: January 20212021-01-19
Red Hat
dnsmasq: heap-based buffer overflow with large memcpy in sort_rrset() when DNSSEC is enabled2021-01-19
Ubuntu
Dnsmasq vulnerabilities2021-01-19
Microsoft
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 remo2021-01-12
Debian
CVE-2020-25687: dnsmasq - A flaw was found in dnsmasq before version 2.83. A heap-based buffer overflow wa...2020

💬Community

1
Bugzilla
CVE-2020-25687 dnsmasq: heap-based buffer overflow with large memcpy in sort_rrset() when DNSSEC is enabled2020-10-26
CVE-2020-25687 — Heap-based Buffer Overflow in Dnsmasq | cvebase