Vulnerability · Published Jan 20, 2021 · Assigned by redhat
CVE-2020-25683
Medium 5.9
In plain English
A medium-severity heap buffer overflow in dnsmasq. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 88.8% (higher than 99.8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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. A remote attacker, who can create valid DNS replies, could use this flaw 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 get_rdata() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | dnsmasq | 2.83-r0 | ALPINE-CVE-2020-25683 |
| Alpine:v3.21 | dnsmasq | 2.83-r0 | ALPINE-CVE-2020-25683 |
| Alpine:v3.22 | dnsmasq | 2.83-r0 | ALPINE-CVE-2020-25683 |
| Alpine:v3.23 | dnsmasq | 2.83-r0 | ALPINE-CVE-2020-25683 |
| Alpine:v3.24 | dnsmasq | 2.83-r0 | ALPINE-CVE-2020-25683 |
| Debian:12 | dnsmasq | 2.83-1 | DEBIAN-CVE-2020-25683 |
| Debian:13 | dnsmasq | 2.83-1 | DEBIAN-CVE-2020-25683 |
| Debian:14 | dnsmasq | 2.83-1 | DEBIAN-CVE-2020-25683 |
Affected products (as reported)
Weakness: CWE-122
References
- https://www.jsof-tech.com/disclosures/dnspooq/ x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=1882018 x_refsource_MISC
- FEDORA-2021-84440e87ba vendor-advisory, x_refsource_FEDORA
- GLSA-202101-17 vendor-advisory, x_refsource_GENTOO
- DSA-4844 vendor-advisory, x_refsource_DEBIAN
- FEDORA-2021-2e4c3d5a9d vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20210322 [SECURITY] [DLA 2604-1] dnsmasq security update mailing-list, x_refsource_MLIST
- https://www.kb.cert.org/vuls/id/434904