pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/collectd Backport fix for CVE-2017-7401. Bump...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e6e584805bbd
branches: trunk
changeset: 360748:e6e584805bbd
user: fhajny <fhajny%pkgsrc.org@localhost>
date: Thu Apr 06 09:12:02 2017 +0000
description:
Backport fix for CVE-2017-7401. Bump PKGREVISION.
diffstat:
sysutils/collectd/Makefile | 3 +-
sysutils/collectd/distinfo | 3 +-
sysutils/collectd/patches/patch-src_network.c | 41 +++++++++++++++++++++++++++
3 files changed, 45 insertions(+), 2 deletions(-)
diffs (75 lines):
diff -r 9205c05f5723 -r e6e584805bbd sysutils/collectd/Makefile
--- a/sysutils/collectd/Makefile Thu Apr 06 08:59:06 2017 +0000
+++ b/sysutils/collectd/Makefile Thu Apr 06 09:12:02 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2017/01/25 14:10:18 fhajny Exp $
+# $NetBSD: Makefile,v 1.21 2017/04/06 09:12:02 fhajny Exp $
.include "../../sysutils/collectd/Makefile.common"
+PKGREVISION= 1
COMMENT= Statistics collection daemon base
RCD_SCRIPTS= collectd
diff -r 9205c05f5723 -r e6e584805bbd sysutils/collectd/distinfo
--- a/sysutils/collectd/distinfo Thu Apr 06 08:59:06 2017 +0000
+++ b/sysutils/collectd/distinfo Thu Apr 06 09:12:02 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.34 2017/02/14 21:23:13 joerg Exp $
+$NetBSD: distinfo,v 1.35 2017/04/06 09:12:02 fhajny Exp $
SHA1 (collectd-5.7.1.tar.bz2) = bc77d2493b26e5c38e167a8a44fedfe287742c09
RMD160 (collectd-5.7.1.tar.bz2) = f743ebb21313ac0bae6a3ba78456e5c16f0d15cc
@@ -17,6 +17,7 @@
SHA1 (patch-src_libcollectclient_network__buffer.c) = 62924943831e6d0585b103e567888f9af5c46f9e
SHA1 (patch-src_memory.c) = 2934cd50e454fc14d0ec952854c88b0a830fa9a7
SHA1 (patch-src_netstat__udp.c) = 30cb12d25f56c60959658dbd181783212e00cc61
+SHA1 (patch-src_network.c) = 38a537d4b5deef2162bb06c672f936a8aa443daf
SHA1 (patch-src_processes.c) = 1a75fdaa42f37eef1a968d299c3549e640fb68b2
SHA1 (patch-src_statsd.c) = 35f4349d2d2c9bddc0f4770344f969157cd012f6
SHA1 (patch-src_swap.c) = 24da6e04e3006639311e8111f26f72e4fab4054a
diff -r 9205c05f5723 -r e6e584805bbd sysutils/collectd/patches/patch-src_network.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/collectd/patches/patch-src_network.c Thu Apr 06 09:12:02 2017 +0000
@@ -0,0 +1,41 @@
+$NetBSD: patch-src_network.c,v 1.5 2017/04/06 09:12:02 fhajny Exp $
+
+Backport fix for CVE-2017-7401.
+https://github.com/collectd/collectd/commit/f6be4f9b49b949b379326c3d7002476e6ce4f211
+
+--- src/network.c.orig 2017-01-23 07:53:57.716449156 +0000
++++ src/network.c
+@@ -1003,14 +1003,6 @@ static int parse_part_sign_sha256(socken
+ buffer_len = *ret_buffer_len;
+ buffer_offset = 0;
+
+- if (se->data.server.userdb == NULL) {
+- c_complain(
+- LOG_NOTICE, &complain_no_users,
+- "network plugin: Received signed network packet but can't verify it "
+- "because no user DB has been configured. Will accept it.");
+- return (0);
+- }
+-
+ /* Check if the buffer has enough data for this structure. */
+ if (buffer_len <= PART_SIGNATURE_SHA256_SIZE)
+ return (-ENOMEM);
+@@ -1027,6 +1019,18 @@ static int parse_part_sign_sha256(socken
+ return (-1);
+ }
+
++ if (se->data.server.userdb == NULL) {
++ c_complain(
++ LOG_NOTICE, &complain_no_users,
++ "network plugin: Received signed network packet but can't verify it "
++ "because no user DB has been configured. Will accept it.");
++
++ *ret_buffer = buffer + pss_head_length;
++ *ret_buffer_len -= pss_head_length;
++
++ return (0);
++ }
++
+ /* Copy the hash. */
+ BUFFER_READ(pss.hash, sizeof(pss.hash));
+
Home |
Main Index |
Thread Index |
Old Index