{"id":"ALPINE-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":"2026-06-15T18:18:06.775402701Z","published":"2017-10-03T01:29:01.637Z","upstream":["CVE-2017-13704"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2017-13704"}],"affected":[{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.7","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}},{"package":{"name":"dnsmasq","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/dnsmasq?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.78-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2017-13704.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}