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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs877102

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
dnsmasq (PTS)jessie, jessie (lts)2.72-3+deb8u7fixed
stretch (security)2.76-5+deb9u3fixed
stretch (lts), stretch2.76-5+deb9u4fixed
buster, buster (lts)2.80-1+deb10u3fixed
buster (security)2.80-1+deb10u1fixed
bullseye2.85-1fixed
bullseye (security)2.85-1+deb11u1fixed
bookworm2.89-1fixed
sid, trixie2.90-7fixed

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

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

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