# CVE-2017-13704

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 65% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-10-02 · Modified: 2024-08-05
- Aliases: ALPINE-CVE-2017-13704, UBUNTU-CVE-2017-13704, DEBIAN-CVE-2017-13704
- Record: https://cvemate.com/vulnerability/CVE-2017-13704 · JSON: https://cvemate.com/vulnerability/CVE-2017-13704/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 65.41%, percentile 99.276%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine dnsmasq (Alpine Linux): \< 2.78-r0
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 17.04
- debian dnsmasq (Debian): \< 2.78-1
- ubuntu dnsmasq (Ubuntu): \< 2.68-1ubuntu0.1 \| \< 2.75-1ubuntu0.16.04.2
- debian debian\_linux: 7.0 \| 7.1 \| 9.0
- fedoraproject fedora: 27
- novell leap: 42.2 \| 42.3
- redhat enterprise\_linux\_desktop: 7.0
- redhat enterprise\_linux\_server: 7.0
- redhat enterprise\_linux\_workstation: 7.0
- thekelleys dnsmasq: ≤ 2.77

## 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>
- <https://security.alpinelinux.org/vuln/CVE-2017-13704>
- <https://ubuntu.com/security/CVE-2017-13704>
- <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011729.html>
- <http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928>
- <https://www.cve.org/CVERecord?id=CVE-2017-13704>
- <https://security-tracker.debian.org/tracker/CVE-2017-13704>

---

Data as of 2026-12-05T03:34:29.901Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
