
CVE catalog
CVE-2017-13704
dnsmasq: CVE-2017-13704
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 65.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | dnsmasq | sid | 2.93-3 | fixed |
| Debian | dnsmasq | forky | 2.93-3 | fixed |
| Debian | dnsmasq | trixie | 2.91-1+deb13u2 | fixed |
| Debian | dnsmasq | trixie-security | 2.91-1+deb13u1 | fixed |
| Debian | dnsmasq | bookworm | 2.90-4~deb12u2 | fixed |
| Debian | dnsmasq | bookworm-security | 2.90-4~deb12u2 | fixed |
| Alpine | dnsmasq | 3.10 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.11 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.12 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.13 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.14 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.15 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.16 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.17 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.18 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.19 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.20 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.21 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.22 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.23 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.24 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.7 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.8 | 2.78-r0 | fixed |
| Alpine | dnsmasq | 3.9 | 2.78-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | dnsmasq | source | sid | 2.78-1 | not yet assigned | Not reported | [877102] |
| Debian | dnsmasq | source | forky | 2.78-1 | not yet assigned | Not reported | [877102] |
| Debian | dnsmasq | source | trixie | 2.78-1 | not yet assigned | Not reported | [877102] |
| Debian | dnsmasq | source | bookworm | 2.78-1 | not yet assigned | Not reported | [877102] |
| Alpine | dnsmasq | apk | 3.10 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.11 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.12 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.13 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.14 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.15 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.16 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.17 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.18 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.19 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.20 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.21 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.22 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.23 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.24 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.7 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.8 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
| Alpine | dnsmasq | apk | 3.9 | 2.78-r0 | Not reported | ALPINE-CVE-2017-13704 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [dnsmasq]Unknown
Details (4)
2.90-4~deb12u2· all · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· all · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· all · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· all · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
- [dnsmasq-base]Unknown
Source package: [dnsmasq]
Details (4)
2.90-4~deb12u2· amd64 · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· arm64 · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· amd64 · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· arm64 · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
- [dnsmasq-base-lua]Unknown
Source package: [dnsmasq]
Details (4)
2.90-4~deb12u2· amd64 · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· arm64 · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· amd64 · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· arm64 · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
- [dnsmasq-utils]Unknown
Source package: [dnsmasq]
Details (4)
2.90-4~deb12u2· amd64 · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· arm64 · bookwormFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· amd64 · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
2.90-4~deb12u2· arm64 · bookworm-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · bookworm; dsa · dnsmasq · debian · 12
[Debian 13 (Trixie)]
- [dnsmasq]Unknown
Details (4)
2.91-1+deb13u1· all · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· all · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· all · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· all · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
- [dnsmasq-base]Unknown
Source package: [dnsmasq]
Details (4)
2.91-1+deb13u1· amd64 · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· arm64 · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
- [dnsmasq-base-lua]Unknown
Source package: [dnsmasq]
Details (4)
2.91-1+deb13u1· amd64 · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· arm64 · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
- [dnsmasq-utils]Unknown
Source package: [dnsmasq]
Details (4)
2.91-1+deb13u1· amd64 · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· arm64 · trixieFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
2.91-1+deb13u1· arm64 · trixie-securityFixed · Fixed:
2.78-1dsa · dnsmasq · debian · 13
Observed:
References
- [https://cert-portal.siemens.com/productcert/html/ssa-689071.html]
- [https://osv.dev/vulnerability/ALPINE-CVE-2017-13704]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2017-13704]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2017-13704]
- [https://security-tracker.debian.org/tracker/CVE-2017-13704]
[CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]