{"id":"CVE-2017-13704","state":"PUBLISHED","title":"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 ","description":"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.","publishedAt":"2017-10-02T21:00:00.000Z","updatedAt":"2024-08-05T19:05:20.078Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://www.securitytracker.com/id/1039474","https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq","https://access.redhat.com/security/vulnerabilities/3199382","http://www.securityfocus.com/bid/101085","http://www.securityfocus.com/bid/101977","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/","https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html","http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928","http://thekelleys.org.uk/dnsmasq/CHANGELOG","https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html","https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html","https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf"],"weaknesses":[],"ingestedAt":"2026-10-29T19:43:17.560Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2017/13xxx/CVE-2017-13704.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2017-13704","state":"PUBLISHED","datePublished":"2017-10-02T21:00:00.000Z","dateUpdated":"2024-08-05T19:05:20.078Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2017-08-25T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://www.securitytracker.com/id/1039474","name":"1039474","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/vulnerabilities/3199382","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/101085","name":"101085","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securityfocus.com/bid/101977","name":"101977","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/","name":"FEDORA-2017-274d763ed8","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html","name":"[dnsmasq-discuss] 20171002 Announce: dnsmasq-2.78.","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928","tags":["x_refsource_CONFIRM"]},{"url":"http://thekelleys.org.uk/dnsmasq/CHANGELOG","tags":["x_refsource_CONFIRM"]},{"url":"https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html","tags":["x_refsource_MISC"]},{"url":"https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html","name":"[dnsmasq-discuss] 20171002 IMPORTANT SECURITY INFORMATION.","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf","tags":["x_refsource_CONFIRM"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-05-10T09:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2017-09-06T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2017-13704","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"1039474","refsource":"SECTRACK","url":"http://www.securitytracker.com/id/1039474"},{"name":"https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq","refsource":"CONFIRM","url":"https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq"},{"name":"https://access.redhat.com/security/vulnerabilities/3199382","refsource":"CONFIRM","url":"https://access.redhat.com/security/vulnerabilities/3199382"},{"name":"101085","refsource":"BID","url":"http://www.securityfocus.com/bid/101085"},{"name":"101977","refsource":"BID","url":"http://www.securityfocus.com/bid/101977"},{"name":"FEDORA-2017-274d763ed8","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/"},{"name":"[dnsmasq-discuss] 20171002 Announce: dnsmasq-2.78.","refsource":"MLIST","url":"https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/msg11665.html"},{"name":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928","refsource":"CONFIRM","url":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928"},{"name":"http://thekelleys.org.uk/dnsmasq/CHANGELOG","refsource":"CONFIRM","url":"http://thekelleys.org.uk/dnsmasq/CHANGELOG"},{"name":"https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html","refsource":"MISC","url":"https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html"},{"name":"[dnsmasq-discuss] 20171002 IMPORTANT SECURITY INFORMATION.","refsource":"MLIST","url":"https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/msg11664.html"},{"name":"https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf","refsource":"CONFIRM","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.securitytracker.com/id/1039474","name":"1039474","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"https://www.synology.com/support/security/Synology_SA_17_59_Dnsmasq","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://access.redhat.com/security/vulnerabilities/3199382","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/101085","name":"101085","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.securityfocus.com/bid/101977","name":"101977","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/","name":"FEDORA-2017-274d763ed8","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11665.html","name":"[dnsmasq-discuss] 20171002 Announce: dnsmasq-2.78.","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://thekelleys.org.uk/gitweb/?p=dnsmasq.git%3Ba=commit%3Bh=63437ffbb58837b214b4b92cb1c54bc5f3279928","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://thekelleys.org.uk/dnsmasq/CHANGELOG","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg11664.html","name":"[dnsmasq-discuss] 20171002 IMPORTANT SECURITY INFORMATION.","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-689071.pdf","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T19:05:20.078Z"}}]}}}