CVE-2017-13704

NameCVE-2017-13704
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium (attack range: remote)
Debian Bugs877102

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
dnsmasq (PTS)wheezy2.62-3+deb7u3fixed
wheezy (security)2.62-3+deb7u4fixed
jessie2.72-3+deb8u1fixed
jessie (security)2.72-3+deb8u2fixed
stretch2.76-5fixed
stretch (security)2.76-5+deb9u1fixed
buster, sid2.78-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
dnsmasqsource(unstable)2.78-1medium877102
dnsmasqsourcejessie(not affected)
dnsmasqsourcestretch(not affected)
dnsmasqsourcewheezy(not affected)

Notes

[stretch] - dnsmasq <not-affected> (Vulnerable code not present; Upstream: Regression introduced in 2.77)
[jessie] - dnsmasq <not-affected> (Vulnerable code not present; Upstream: Regression introduced in 2.77)
[wheezy] - dnsmasq <not-affected> (Vulnerable code not present; Upstream: Regression introduced in 2.77)
https://bugzilla.redhat.com/show_bug.cgi?id=1495510
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2017q3/011729.html
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928

Search for package or bug name: Reporting problems