{"id":"UBUNTU-CVE-2017-13704","details":"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.","modified":"2025-07-16T07:36:01.313606Z","published":"2017-10-02T00:00:00Z","withdrawn":"2025-07-18T16:44:08Z","upstream":["CVE-2017-13704"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-13704"},{"type":"REPORT","url":"http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011729.html"},{"type":"REPORT","url":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-13704"}],"affected":[{"package":{"name":"dnsmasq","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/dnsmasq@2.68-1ubuntu0.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.68-1ubuntu0.1"}]}],"versions":["2.66-4ubuntu1","2.67-1","2.68-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dnsmasq","binary_version":"2.68-1ubuntu0.1"},{"binary_name":"dnsmasq-base","binary_version":"2.68-1ubuntu0.1"},{"binary_name":"dnsmasq-utils","binary_version":"2.68-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/dnsmasq@2.75-1ubuntu0.16.04.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.75-1ubuntu0.16.04.2"}]}],"versions":["2.75-1","2.75-1ubuntu0.16.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"dnsmasq","binary_version":"2.75-1ubuntu0.16.04.2"},{"binary_name":"dnsmasq-base","binary_version":"2.75-1ubuntu0.16.04.2"},{"binary_name":"dnsmasq-utils","binary_version":"2.75-1ubuntu0.16.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-13704.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"high"}]}