CVE-2017-13704: Input Validation

Published Oct 2, 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.

Affected Software

13 affected components
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.04
Debian Debian Linux=7.0
Debian Debian Linux=7.1
Debian Debian Linux=9.0
Fedoraproject Fedora=27
Novell Leap=42.2
Novell Leap=42.3
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Workstation=7.0
thekelleys dnsmasq<=2.77

Event History

Oct 2, 2017
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
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 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.

2

How do I fix CVE-2017-13704?

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

3

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.

4

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.

5

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