CVE-2020-25687 — Heap-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
Affected products
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
Also affects: Debian Linux 10.0, 9.0, Fedora 32, 33
Patches
🔴Vulnerability Details
5📋Vendor Advisories
5Cisco
▶
Red Hat▶
dnsmasq: heap-based buffer overflow with large memcpy in sort_rrset() when DNSSEC is enabled↗2021-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 remo↗2021-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
1Bugzilla▶
CVE-2020-25687 dnsmasq: heap-based buffer overflow with large memcpy in sort_rrset() when DNSSEC is enabled↗2020-10-26