CVE-2017-13704: 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.
CVE-2017-13704 affects 86 listed versions of Thekelleys dnsmasq in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Thekelleys dnsmasq
86 of 103 listed versions are affected. No fixed release is named. The newest release, 2.93, is not affected.
2.77 2.76 2.75 2.74 2.73 2.72 2.71 2.70 2.65 2.62 2.49 2.48 2.47 2.46 2.45 2.44 2.43 2.42 2.41 2.40 2.39 2.38 2.37 2.36 2.35 2.34 2.33 2.31 2.30 2.29 2.28 2.27 2.26 2.25 2.24 2.23 2.22 2.21 2.20 2.19 2.18 2.17 2.16 2.15 2.14 2.13 2.12 2.11 2.10 2.9 2.8 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.18 and 26 more
What it is
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.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD)
Published by MITRE on 3 October 2017. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2017-13704 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.