Vulnerability Name:

CVE-2017-13704

Assigned:2017-08-25
Published:2017-10-02
Updated:2017-10-13
Summary: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.
CVSS v3 Severity:7.5 High (CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.3 Medium (CCN CVSS v3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Low
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
Vulnerability Type:CWE-20
References:Source: CONFIRM
Type: VENDOR_ADVISORY
http://thekelleys.org.uk/dnsmasq/CHANGELOG

Source: CONFIRM
Type: VENDOR_ADVISORY
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=63437ffbb58837b214b4b92cb1c54bc5f3279928

Source: BID
Type: VENDOR_ADVISORY
101085

Source: SECTRACK
Type: VENDOR_ADVISORY
1039474

Source: CONFIRM
Type: VENDOR_ADVISORY
https://access.redhat.com/security/vulnerabilities/3199382

Source: FEDORA
Type: VENDOR_ADVISORY
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TK6DWC53WSU6633EVZL7H4PCWBYHMHK/

Source: MISC
Type: VENDOR_ADVISORY
https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html

Source: MLIST
Type: VENDOR_ADVISORY
https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/msg11664.html

Source: MLIST
Type: VENDOR_ADVISORY
https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/msg11665.html

Vulnerable Configuration:Configuration 1:
  • cpe:/o:canonical:ubuntu_linux:14.04::~~lts~~~:*:*:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:16.04::~~lts~~~:*:*:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:17.04:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:7.0:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:7.1:*:*:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:27:*:*:*:*:*:*:*
  • OR cpe:/o:novell:leap:42.2:*:*:*:*:*:*:*
  • OR cpe:/o:novell:leap:42.3:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*

  • Configuration 2:
  • cpe:/a:thekelleys:dnsmasq:2.77:*:*:*:*:*:*:*

  • Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.trusty:def:201713704000
    V
    CVE-2017-13704 on Ubuntu 14.04 LTS (trusty) - high.
    2017-10-02
    oval:com.ubuntu.xenial:def:201713704000
    V
    CVE-2017-13704 on Ubuntu 16.04 LTS (xenial) - high.
    2017-10-02
    BACK
    canonical ubuntu_linux 14.04
    canonical ubuntu_linux 16.04
    canonical ubuntu_linux 17.04
    debian debian_linux 7.0
    debian debian_linux 7.1
    debian debian_linux 9.0
    fedoraproject fedora 27
    novell leap 42.2
    novell leap 42.3
    redhat enterprise_linux_desktop 7.0
    redhat enterprise_linux_server 7.0
    redhat enterprise_linux_workstation 7.0
    thekelleys dnsmasq 2.77