Memory corruption in Dnsmasq - CVE-2017-14496

 

Memory corruption in Dnsmasq - CVE-2017-14496

Published: October 3, 2017


Vulnerability identifier: #VU8665
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-14496
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to boundary error in  add_pseudoheader() function when processing DNS queries. A remote unauthenticated attacker can send a specially crafted DNS request to the affected service, cause dnsmasq to call memcpy with negative size and crash.

Successful exploitation of this vulnerability may allow an attacker to perform a denial of service (DoS) attack, but requires that dnsmasq is compiled with --add-mac, --add-cpe-id or --add-subnet option.


Affected software

Dnsmasq
Debian Linux
Arch Linux
Amazon Linux AMI
Gentoo Linux
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
SUSE Linux
Ubuntu
Slackware Linux
Fedora
SCALANCE S615
SCALANCE M800
SCALANCE W1750D
dnsmasq (Alpine package)
dnsmasq
Edgeline EL300 Converged Edge System

How to mitigate CVE-2017-14496

Update to version 2.78.

dnsmasq (Alpine package) - addressed in versions 2.76-r1, 2.76-r2
Edgeline EL300 Converged Edge System - update to 1.50
dnsmasq - addressed in versions 2.76-4.fc25, 2.76-5.fc26, 2.77-9.fc27

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins