CVE-2017-16820
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).
What to do
Fixed builds are available from Alpine, Debian, Red Hat: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | collectd | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | collectd | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | collectd | Fix pending | 5.5.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2017-16820 |
| Ubuntu 14.04 | collectd | Fix pending | 5.4.0-3ubuntu2.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2017-16820 |
| Debian 13 | collectd | Fixed | 5.8.0-1 | DEBIAN-CVE-2017-16820 |
| Debian 12 | collectd | Fixed | 5.8.0-1 | DEBIAN-CVE-2017-16820 |
| Red Hat Enterprise Linux 7 | collectd | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-apache | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-ascent | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-bind | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-ceph | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-chrony | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-curl | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-curl_json | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-curl_xml | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-dbi | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-disk | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-dns | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-drbd | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-email | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-generic-jmx | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-hugepages | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-ipmi | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-iptables | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-ipvs | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-java | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-log_logstash | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-lvm | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-mysql | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-netlink | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-nginx | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-notify_email | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-openldap | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-ping | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-postgresql | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-rrdcached | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-rrdtool | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-sensors | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-smart | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-snmp | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-turbostat | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-utils | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-virt | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-write_http | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-write_riemann | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-write_sensu | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-write_tsdb | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | collectd-zookeeper | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | libcollectdclient | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Red Hat Enterprise Linux 7 | libcollectdclient-devel | Fixed | 0:5.8.0-3.el7 | RHSA-2018:0560 |
| Alpine Linux 3.6 | collectd | Fixed | 5.6.2-r1 | ALPINE-CVE-2017-16820 |
| Alpine Linux 3.5 | collectd | Fixed | 5.6.2-r1 | ALPINE-CVE-2017-16820 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:0252 (vendor-advisory)
- https://security.gentoo.org/glsa/201803-10 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0560 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1605 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2615 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0299 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:0252
- https://security.gentoo.org/glsa/201803-10
- https://bugs.debian.org/881757
- https://github.com/collectd/collectd/issues/2291
- https://access.redhat.com/errata/RHSA-2018:0560
- https://access.redhat.com/errata/RHSA-2018:1605
- https://access.redhat.com/errata/RHSA-2018:2615
- https://access.redhat.com/errata/RHSA-2018:0299
- https://github.com/collectd/collectd/releases/tag/collectd-5.6.3
- https://github.com/collectd/collectd/commit/d16c24542b2f96a194d43a73c2e5778822b9cb47
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.