Vulnerabilities > CVE-2017-16820 - Double Free vulnerability in Collectd

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
collectd
CWE-415
critical
nessus

Summary

The csnmp_read_table function in snmp.c in the SNMP plugin in collectd before 5.6.3 is susceptible to a double free in a certain error case, which could lead to a crash (or potentially have other impact).

Vulnerable Configurations

Part Description Count
Application
Collectd
130

Common Weakness Enumeration (CWE)

Nessus

  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2018-0560.NASL
    descriptionAn update for collectd is now available for RHEV 4.X RHEV-H and Agents for RHEL-7 and RHEV Engine version 4.1. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. collectd is a small C-language daemon, which reads various system metrics periodically and updates RRD files (creating them if necessary). Because the daemon does not start up each time it updates files, it has a low system footprint. The following packages have been upgraded to a later upstream version: collectd (5.8.0). (BZ#1544653) Security Fix(es) : * collectd: double free in csnmp_read_table function in snmp.c (CVE-2017-16820) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
    last seen2020-06-01
    modified2020-06-02
    plugin id108683
    published2018-03-28
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/108683
    titleRHEL 7 : collectd (RHSA-2018:0560)
  • NASL familyAmazon Linux Local Security Checks
    NASL idALA_ALAS-2018-940.NASL
    descriptionDouble free in csnmp_read_table function in snmp.c : The csnmp_read_table function in snmp.c in the SNMP plugin in collectd before 5.6.3 is susceptible to a double free in a certain error case, which could lead to a crash (or potentially have other impact). (CVE-2017-16820)
    last seen2020-06-01
    modified2020-06-02
    plugin id105620
    published2018-01-08
    reporterThis script is Copyright (C) 2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/105620
    titleAmazon Linux AMI : collectd (ALAS-2018-940)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2018-2615.NASL
    descriptionAn update for collectd is now available for Red Hat Gluster Storage 3.4 for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. collectd is a host-based system statistics collection daemon that gathers metrics from various sources periodically, such as the operating system, applications, log files and devices, and storage clusters. As the daemon does not start up each time it updates files, it has a low system footprint. For Red Hat Gluster Storage Web Administration 3.4, collectd service is responsible for gathering metrics from Red Hat Gluster Storage clusters. The updated collectd package includes the following security bug fixes. Security Fix(es) : * collectd: Infinite loop due to incorrect interaction of parse_packet() and parse_part_sign_sha256() functions (CVE-2017-7401) * collectd: double free in csnmp_read_table function in snmp.c (CVE-2017-16820) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. This updated package contains a number of bug fixes and enhancements, which are documented in detail in the Release Notes, linked in the References. All users of collectd are advised to upgrade to these updated packages, which resolve these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id117321
    published2018-09-06
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/117321
    titleRHEL 7 : Storage Server (RHSA-2018:2615)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2017-F9CFCEF9D6.NASL
    descriptionUpstream released new version. See https://collectd.org/news.shtml#news106 for the list of changes. Fixes CVE-2017-16820 (double free in snmp plugin) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2017-12-11
    plugin id105139
    published2017-12-11
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/105139
    titleFedora 26 : collectd (2017-f9cfcef9d6)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2017-D7AB32CC23.NASL
    descriptionUpstream released new version. See https://collectd.org/news.shtml#news106 for the list of changes. Fixes CVE-2017-16820 (double free in snmp plugin) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2017-12-11
    plugin id105137
    published2017-12-11
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/105137
    titleFedora 25 : collectd (2017-d7ab32cc23)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2017-F47206EAE4.NASL
    descriptionUpstream released new version. See https://collectd.org/news.shtml#news106 for the list of changes. Fixes CVE-2017-16820 (double free in snmp plugin) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2018-01-15
    plugin id106005
    published2018-01-15
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/106005
    titleFedora 27 : collectd (2017-f47206eae4)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201803-10.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201803-10 (collectd: Multiple vulnerabilities) Multiple vulnerabilities have been found in Gentoo’s collectd package. Please review the referenced CVE identifiers and bug entries for details. Impact : A local attacker, who either is already collectd’s system user or belongs to collectd’s group, could potentially gain root privileges and cause a Denial of Service condition. Remote attackers could cause a Denial of Service condition via specially crafted SNMP responses. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id108525
    published2018-03-22
    reporterThis script is Copyright (C) 2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/108525
    titleGLSA-201803-10 : collectd: Multiple vulnerabilities

Redhat

advisories
  • rhsa
    idRHSA-2018:0252
  • rhsa
    idRHSA-2018:0299
  • rhsa
    idRHSA-2018:0560
  • rhsa
    idRHSA-2018:1605
  • rhsa
    idRHSA-2018:2615
rpms
  • collectd-0:5.7.2-3.el7ost
  • collectd-apache-0:5.7.2-3.el7ost
  • collectd-ascent-0:5.7.2-3.el7ost
  • collectd-bind-0:5.7.2-3.el7ost
  • collectd-ceph-0:5.7.2-3.el7ost
  • collectd-curl-0:5.7.2-3.el7ost
  • collectd-curl_json-0:5.7.2-3.el7ost
  • collectd-curl_xml-0:5.7.2-3.el7ost
  • collectd-dbi-0:5.7.2-3.el7ost
  • collectd-debuginfo-0:5.7.2-3.el7ost
  • collectd-disk-0:5.7.2-3.el7ost
  • collectd-dns-0:5.7.2-3.el7ost
  • collectd-drbd-0:5.7.2-3.el7ost
  • collectd-email-0:5.7.2-3.el7ost
  • collectd-generic-jmx-0:5.7.2-3.el7ost
  • collectd-hugepages-0:5.7.2-3.el7ost
  • collectd-ipmi-0:5.7.2-3.el7ost
  • collectd-iptables-0:5.7.2-3.el7ost
  • collectd-ipvs-0:5.7.2-3.el7ost
  • collectd-java-0:5.7.2-3.el7ost
  • collectd-log_logstash-0:5.7.2-3.el7ost
  • collectd-lvm-0:5.7.2-3.el7ost
  • collectd-mysql-0:5.7.2-3.el7ost
  • collectd-netlink-0:5.7.2-3.el7ost
  • collectd-nginx-0:5.7.2-3.el7ost
  • collectd-notify_desktop-0:5.7.2-3.el7ost
  • collectd-notify_email-0:5.7.2-3.el7ost
  • collectd-openldap-0:5.7.2-3.el7ost
  • collectd-ping-0:5.7.2-3.el7ost
  • collectd-postgresql-0:5.7.2-3.el7ost
  • collectd-rrdcached-0:5.7.2-3.el7ost
  • collectd-rrdtool-0:5.7.2-3.el7ost
  • collectd-sensors-0:5.7.2-3.el7ost
  • collectd-smart-0:5.7.2-3.el7ost
  • collectd-snmp-0:5.7.2-3.el7ost
  • collectd-turbostat-0:5.7.2-3.el7ost
  • collectd-utils-0:5.7.2-3.el7ost
  • collectd-virt-0:5.7.2-3.el7ost
  • collectd-web-0:5.7.2-3.el7ost
  • collectd-write_http-0:5.7.2-3.el7ost
  • collectd-write_sensu-0:5.7.2-3.el7ost
  • collectd-write_tsdb-0:5.7.2-3.el7ost
  • collectd-zookeeper-0:5.7.2-3.el7ost
  • libcollectdclient-0:5.7.2-3.el7ost
  • perl-Collectd-0:5.7.2-3.el7ost
  • collectd-0:5.7.2-3.el7ost
  • collectd-apache-0:5.7.2-3.el7ost
  • collectd-ascent-0:5.7.2-3.el7ost
  • collectd-bind-0:5.7.2-3.el7ost
  • collectd-ceph-0:5.7.2-3.el7ost
  • collectd-curl-0:5.7.2-3.el7ost
  • collectd-curl_json-0:5.7.2-3.el7ost
  • collectd-curl_xml-0:5.7.2-3.el7ost
  • collectd-dbi-0:5.7.2-3.el7ost
  • collectd-debuginfo-0:5.7.2-3.el7ost
  • collectd-disk-0:5.7.2-3.el7ost
  • collectd-dns-0:5.7.2-3.el7ost
  • collectd-drbd-0:5.7.2-3.el7ost
  • collectd-email-0:5.7.2-3.el7ost
  • collectd-generic-jmx-0:5.7.2-3.el7ost
  • collectd-ipmi-0:5.7.2-3.el7ost
  • collectd-iptables-0:5.7.2-3.el7ost
  • collectd-ipvs-0:5.7.2-3.el7ost
  • collectd-java-0:5.7.2-3.el7ost
  • collectd-log_logstash-0:5.7.2-3.el7ost
  • collectd-lvm-0:5.7.2-3.el7ost
  • collectd-mysql-0:5.7.2-3.el7ost
  • collectd-netlink-0:5.7.2-3.el7ost
  • collectd-nginx-0:5.7.2-3.el7ost
  • collectd-notify_desktop-0:5.7.2-3.el7ost
  • collectd-notify_email-0:5.7.2-3.el7ost
  • collectd-openldap-0:5.7.2-3.el7ost
  • collectd-ping-0:5.7.2-3.el7ost
  • collectd-postgresql-0:5.7.2-3.el7ost
  • collectd-rrdcached-0:5.7.2-3.el7ost
  • collectd-rrdtool-0:5.7.2-3.el7ost
  • collectd-sensors-0:5.7.2-3.el7ost
  • collectd-smart-0:5.7.2-3.el7ost
  • collectd-snmp-0:5.7.2-3.el7ost
  • collectd-turbostat-0:5.7.2-3.el7ost
  • collectd-utils-0:5.7.2-3.el7ost
  • collectd-virt-0:5.7.2-3.el7ost
  • collectd-web-0:5.7.2-3.el7ost
  • collectd-write_http-0:5.7.2-3.el7ost
  • collectd-write_sensu-0:5.7.2-3.el7ost
  • collectd-write_tsdb-0:5.7.2-3.el7ost
  • collectd-zookeeper-0:5.7.2-3.el7ost
  • libcollectdclient-0:5.7.2-3.el7ost
  • perl-Collectd-0:5.7.2-3.el7ost
  • collectd-0:5.8.0-3.el7
  • collectd-apache-0:5.8.0-3.el7
  • collectd-ascent-0:5.8.0-3.el7
  • collectd-bind-0:5.8.0-3.el7
  • collectd-ceph-0:5.8.0-3.el7
  • collectd-chrony-0:5.8.0-3.el7
  • collectd-curl-0:5.8.0-3.el7
  • collectd-curl_json-0:5.8.0-3.el7
  • collectd-curl_xml-0:5.8.0-3.el7
  • collectd-dbi-0:5.8.0-3.el7
  • collectd-debuginfo-0:5.8.0-3.el7
  • collectd-disk-0:5.8.0-3.el7
  • collectd-dns-0:5.8.0-3.el7
  • collectd-drbd-0:5.8.0-3.el7
  • collectd-email-0:5.8.0-3.el7
  • collectd-generic-jmx-0:5.8.0-3.el7
  • collectd-hugepages-0:5.8.0-3.el7
  • collectd-ipmi-0:5.8.0-3.el7
  • collectd-iptables-0:5.8.0-3.el7
  • collectd-ipvs-0:5.8.0-3.el7
  • collectd-java-0:5.8.0-3.el7
  • collectd-log_logstash-0:5.8.0-3.el7
  • collectd-lvm-0:5.8.0-3.el7
  • collectd-mysql-0:5.8.0-3.el7
  • collectd-netlink-0:5.8.0-3.el7
  • collectd-nginx-0:5.8.0-3.el7
  • collectd-notify_email-0:5.8.0-3.el7
  • collectd-openldap-0:5.8.0-3.el7
  • collectd-ping-0:5.8.0-3.el7
  • collectd-postgresql-0:5.8.0-3.el7
  • collectd-rrdcached-0:5.8.0-3.el7
  • collectd-rrdtool-0:5.8.0-3.el7
  • collectd-sensors-0:5.8.0-3.el7
  • collectd-smart-0:5.8.0-3.el7
  • collectd-snmp-0:5.8.0-3.el7
  • collectd-turbostat-0:5.8.0-3.el7
  • collectd-utils-0:5.8.0-3.el7
  • collectd-virt-0:5.8.0-3.el7
  • collectd-write_http-0:5.8.0-3.el7
  • collectd-write_riemann-0:5.8.0-3.el7
  • collectd-write_sensu-0:5.8.0-3.el7
  • collectd-write_tsdb-0:5.8.0-3.el7
  • collectd-zookeeper-0:5.8.0-3.el7
  • libcollectdclient-0:5.8.0-3.el7
  • libcollectdclient-devel-0:5.8.0-3.el7
  • collectd-0:5.8.0-10.el7ost
  • collectd-apache-0:5.8.0-10.el7ost
  • collectd-ascent-0:5.8.0-10.el7ost
  • collectd-bind-0:5.8.0-10.el7ost
  • collectd-ceph-0:5.8.0-10.el7ost
  • collectd-curl-0:5.8.0-10.el7ost
  • collectd-curl_json-0:5.8.0-10.el7ost
  • collectd-curl_xml-0:5.8.0-10.el7ost
  • collectd-dbi-0:5.8.0-10.el7ost
  • collectd-debuginfo-0:5.8.0-10.el7ost
  • collectd-disk-0:5.8.0-10.el7ost
  • collectd-dns-0:5.8.0-10.el7ost
  • collectd-drbd-0:5.8.0-10.el7ost
  • collectd-email-0:5.8.0-10.el7ost
  • collectd-generic-jmx-0:5.8.0-10.el7ost
  • collectd-ipmi-0:5.8.0-10.el7ost
  • collectd-iptables-0:5.8.0-10.el7ost
  • collectd-ipvs-0:5.8.0-10.el7ost
  • collectd-java-0:5.8.0-10.el7ost
  • collectd-log_logstash-0:5.8.0-10.el7ost
  • collectd-mcelog-0:5.8.0-10.el7ost
  • collectd-memcachec-0:5.8.0-10.el7ost
  • collectd-mysql-0:5.8.0-10.el7ost
  • collectd-netlink-0:5.8.0-10.el7ost
  • collectd-nginx-0:5.8.0-10.el7ost
  • collectd-notify_email-0:5.8.0-10.el7ost
  • collectd-openldap-0:5.8.0-10.el7ost
  • collectd-ovs-events-0:5.8.0-10.el7ost
  • collectd-ovs-stats-0:5.8.0-10.el7ost
  • collectd-ping-0:5.8.0-10.el7ost
  • collectd-postgresql-0:5.8.0-10.el7ost
  • collectd-python-0:5.8.0-10.el7ost
  • collectd-rdt-0:5.8.0-10.el7ost
  • collectd-rrdcached-0:5.8.0-10.el7ost
  • collectd-rrdtool-0:5.8.0-10.el7ost
  • collectd-sensors-0:5.8.0-10.el7ost
  • collectd-smart-0:5.8.0-10.el7ost
  • collectd-snmp-0:5.8.0-10.el7ost
  • collectd-snmp-agent-0:5.8.0-10.el7ost
  • collectd-turbostat-0:5.8.0-10.el7ost
  • collectd-utils-0:5.8.0-10.el7ost
  • collectd-virt-0:5.8.0-10.el7ost
  • collectd-write_http-0:5.8.0-10.el7ost
  • collectd-write_sensu-0:5.8.0-10.el7ost
  • collectd-write_tsdb-0:5.8.0-10.el7ost
  • collectd-zookeeper-0:5.8.0-10.el7ost
  • intel-cmt-cat-0:1.0.1-1.el7ost
  • libcollectdclient-0:5.8.0-10.el7ost
  • perl-Collectd-0:5.8.0-10.el7ost
  • collectd-0:5.7.2-3.1.el7rhgs
  • collectd-debuginfo-0:5.7.2-3.1.el7rhgs
  • collectd-ping-0:5.7.2-3.1.el7rhgs
  • libcollectdclient-0:5.7.2-3.1.el7rhgs