7.5
CWE
20
Advisory Published
Updated

CVE-2017-13704: Input Validation

First published: Mon Oct 02 2017(Updated: )

In dnsmasq before 2.78, if the DNS packet size does not match the expected size, the size parameter in a memset call gets a negative value. As it is an unsigned value, memset ends up writing up to 0xffffffff zero's (0xffffffffffffffff in 64 bit platforms), making dnsmasq crash.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Ubuntu=14.04
Ubuntu=16.04
Ubuntu=17.04
Debian=7.0
Debian=7.1
Debian=9.0
Fedora=27
openSUSE=42.2
openSUSE=42.3
Red Hat Enterprise Linux Desktop=7.0
Red Hat Enterprise Linux Server=7.0
Red Hat Enterprise Linux Workstation=7.0
Dnsmasq<=2.77

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 the severity of CVE-2017-13704?

    CVE-2017-13704 has been classified as a high severity vulnerability due to its ability to cause a crash in dnsmasq.

  • How do I fix CVE-2017-13704?

    To fix CVE-2017-13704, update dnsmasq to version 2.78 or later.

  • What systems are affected by CVE-2017-13704?

    CVE-2017-13704 affects various versions of dnsmasq prior to 2.78 on systems like Ubuntu, Debian, Fedora, and Red Hat.

  • What does CVE-2017-13704 exploit in dnsmasq?

    CVE-2017-13704 exploits improper handling of DNS packet sizes, leading to a crash due to an erroneous memset call.

  • Is there a workaround for CVE-2017-13704 until I can update?

    As a temporary workaround for CVE-2017-13704, consider restricting external DNS queries or disabling the dnsmasq service until an update can be applied.

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