CVEfocus › CVE database › CVE-2017-13704

CVE-2017-13704

CVSS 7.5 HighEPSS 65.4% (in the top 1% of all CVEs)Published 2017-10-02Updated 2024-08-05Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 65% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

21Fixed
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04dnsmasqNot affected
vulnerable_code_not_present
Debian 14dnsmasqFixed2.78-1DEBIAN-CVE-2017-13704
Debian 13dnsmasqFixed2.78-1DEBIAN-CVE-2017-13704
Debian 12dnsmasqFixed2.78-1DEBIAN-CVE-2017-13704
Red Hat Enterprise Linux 7dnsmasqNot affected
Red Hat Enterprise Linux 7dnsmasq-utilsNot affected
Red Hat Enterprise Linux 6dnsmasqNot affected
Red Hat Enterprise Linux 6dnsmasq-utilsNot affected
Red Hat Enterprise Linux 5dnsmasqNot affected
Alpine Linux 3.24dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.23dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.22dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.21dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.20dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.19dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.18dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.17dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.16dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.15dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.14dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.13dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.12dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.11dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.10dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.9dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.8dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704
Alpine Linux 3.7dnsmasqFixed2.78-r0ALPINE-CVE-2017-13704

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.