Skip to contentSkip to conversation

netsnmp: security bump to version 5.7.2.1

PATCH New Gustavo Zacarias 2 participants 2 messages Mar 10, 2014 – Mar 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netsnmp: security bump to version 5.7.2.1

Fixes CVE-2014-2284 but not CVE-2014-2285 so add a patch for that one.

---
 package/netsnmp/netsnmp-001-CVE-2014-2285.patch | 31 +++++++++++++++++++++++++
 package/netsnmp/netsnmp.mk                      |  2 +-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 package/netsnmp/netsnmp-001-CVE-2014-2285.patch
package/netsnmp/netsnmp-001-CVE-2014-2285.patch new file +31 -0
new file mode 100644
index 0000000..d7a3057
@@ -0,0 +1,31 @@
+Fix for CVE-2014-2285 from upstream:
+http://sourceforge.net/p/net-snmp/patches/1275/
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+
+--- net-snmp-5.7.3.pre3/perl/TrapReceiver/TrapReceiver.xs.null	2014-02-25 21:50:16.000000000 +0100
++++ net-snmp-5.7.3.pre3/perl/TrapReceiver/TrapReceiver.xs	2014-03-03 18:59:20.261766270 +0100
+@@ -81,18 +81,18 @@ int   perl_trapd_handler( netsnmp_pdu
+         STOREPDUi("securitymodel", pdu->securityModel);
+         STOREPDUi("securitylevel", pdu->securityLevel);
+         STOREPDU("contextName",
+-                 newSVpv(pdu->contextName, pdu->contextNameLen));
++                 newSVpv(pdu->contextName ? pdu->contextName : "", pdu->contextNameLen));
+         STOREPDU("contextEngineID",
+-                 newSVpv((char *) pdu->contextEngineID,
++                 newSVpv(pdu->contextEngineID ? (char *) pdu->contextEngineID : "",
+                                     pdu->contextEngineIDLen));
+         STOREPDU("securityEngineID",
+-                 newSVpv((char *) pdu->securityEngineID,
++                 newSVpv(pdu->securityEngineID ? (char *) pdu->securityEngineID : "",
+                                     pdu->securityEngineIDLen));
+         STOREPDU("securityName",
+-                 newSVpv((char *) pdu->securityName, pdu->securityNameLen));
++                 newSVpv(pdu->securityName ? (char *) pdu->securityName : "", pdu->securityNameLen));
+     } else {
+         STOREPDU("community",
+-                 newSVpv((char *) pdu->community, pdu->community_len));
++                 newSVpv(pdu->community ? (char *) pdu->community : "", pdu->community_len));
+     }
+ 
+     if (transport && transport->f_fmtaddr) {
package/netsnmp/netsnmp.mk +1 -1
index 4830c00..63ec97a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-NETSNMP_VERSION = 5.7.2
+NETSNMP_VERSION = 5.7.2.1
 NETSNMP_SITE = http://downloads.sourceforge.net/project/net-snmp/net-snmp/$(NETSNMP_VERSION)
 NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
 NETSNMP_LICENSE = Various BSD-like
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 netsnmp: security bump to version 5.7.2.1

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Fixes CVE-2014-2284 but not CVE-2014-2285 so add a patch for that one.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard