Skip to content
OpenAdvisories
Unscored CVE-2017-13704 EUVD-2017-5221GHSA-mprq-hpvv-8wcc

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.…

Published Oct 2, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dnsmasq 2.78-1 —
Debian 13 dnsmasq 2.78-1 —
Debian 12 dnsmasq 2.78-1 —
ReleasePackageFixed inAdvisory
Alpine v3.24 dnsmasq 2.78-r0 —
Alpine v3.23 dnsmasq 2.78-r0 —
Alpine v3.22 dnsmasq 2.78-r0 —
Alpine v3.21 dnsmasq 2.78-r0 —
Alpine v3.20 dnsmasq 2.78-r0 —
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 dnsmasq 2.78-r0 —
Alpine v3.18 dnsmasq 2.78-r0 —
Alpine v3.17 dnsmasq 2.78-r0 —
Alpine v3.16 dnsmasq 2.78-r0 —
Alpine v3.15 dnsmasq 2.78-r0 —
Alpine v3.14 dnsmasq 2.78-r0 —
Alpine v3.13 dnsmasq 2.78-r0 —
Alpine v3.12 dnsmasq 2.78-r0 —
Alpine v3.11 dnsmasq 2.78-r0 —
Alpine v3.10 dnsmasq 2.78-r0 —
Alpine v3.9 dnsmasq 2.78-r0 —
Alpine v3.8 dnsmasq 2.78-r0 —
Alpine v3.7 dnsmasq 2.78-r0 —

Advisories 1

References