CVE-2020-25687: Buffer Overflow

Published Oct 26, 2020
·
Updated

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:extractname(), which could be abused to make the code execute memcpy() with a negative size in sortrrset() and cause a crash in dnsmasq, resulting in a denial of service. The highest threat from this vulnerability is to system availability.

Other sources

An 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:extractname(), which could be abused to make the code execute memcpy() with negative size in sortrrset(), which is interpreted as huge numbers.

Red Hat

Affected Software

7 affected componentsFixes available
debian/dnsmasq
2.80-1+deb10u12.85-12.89-1
redhat/dnsmasq<2.83
2.83
thekelleys dnsmasq<2.83
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Debian Debian Linux=9.0
Debian Debian Linux=10.0

Event History

Jan 20, 2021
CVE Published
via MITRE·04:31 PM
Data Sourced
via MITRE·04:31 PM
DescriptionWeakness
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-25687?

CVE-2020-25687 is a vulnerability in dnsmasq before version 2.83 that allows a remote attacker to cause a heap-based buffer overflow.

2

How does CVE-2020-25687 affect dnsmasq?

CVE-2020-25687 affects dnsmasq when DNSSEC is enabled and before it validates the received DNS entries.

3

What is the severity of CVE-2020-25687?

The severity of CVE-2020-25687 is high, with a severity value of 5.9.

4

Which software versions are affected by CVE-2020-25687?

Dnsmasq versions before 2.83 are affected by CVE-2020-25687.

5

How can I mitigate CVE-2020-25687?

To mitigate CVE-2020-25687, it is recommended to update dnsmasq to version 2.83 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203