8.3
CWE
122 787 119
Advisory Published
CVE Published
Updated

CVE-2020-25682: Buffer Overflow

First published: Wed Sep 23 2020(Updated: )

A buffer overflow vulnerability was discovered in the way dnsmasq extract names from DNS packets before validating them with DNSSEC data. An attacker, who can create valid DNS replies, could use this flaw to cause an overflow with arbitrary data in a heap-allocated memory, possibly executing code on the machine. The flaw is in rfc1035.c:extract_name() function, which writes data to the memory pointed by `name` assuming MAXDNAME*2 bytes are available in the buffer. However, in some code execution paths it is possible extract_name() gets passed an offset from the base buffer, thus reducing in practice the number of available bytes that can be written in the buffer.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
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
debian/dnsmasq
2.80-1+deb10u1
2.85-1
2.89-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2020-25682?

    CVE-2020-25682 is a buffer overflow vulnerability in dnsmasq before version 2.83.

  • How does CVE-2020-25682 affect dnsmasq?

    CVE-2020-25682 allows an attacker on the network to cause a buffer overflow in dnsmasq by creating valid DNS replies with arbitrary data.

  • What is the severity of CVE-2020-25682?

    CVE-2020-25682 has a severity score of 8.1 (high).

  • Which software versions are affected by CVE-2020-25682?

    CVE-2020-25682 affects dnsmasq versions before 2.83.

  • How can I fix CVE-2020-25682?

    To fix CVE-2020-25682, update dnsmasq to version 2.83 or higher.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203