diff options
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/files/net-snmp-5.7.2-fix-CVE-2014-2285.patch | 26 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/files/net-snmp-5.7.2-fix-CVE-2014-2285.patch b/meta-networking/recipes-protocols/net-snmp/files/net-snmp-5.7.2-fix-CVE-2014-2285.patch new file mode 100644 index 0000000000..8267eeb75d --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/files/net-snmp-5.7.2-fix-CVE-2014-2285.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | --- a/perl/TrapReceiver/TrapReceiver.xs | ||
2 | +++ b/perl/TrapReceiver/TrapReceiver.xs | ||
3 | @@ -81,18 +81,18 @@ int perl_trapd_handler( netsnmp_pdu | ||
4 | STOREPDUi("securitymodel", pdu->securityModel); | ||
5 | STOREPDUi("securitylevel", pdu->securityLevel); | ||
6 | STOREPDU("contextName", | ||
7 | - newSVpv(pdu->contextName, pdu->contextNameLen)); | ||
8 | + newSVpv(pdu->contextName ? pdu->contextName : "", pdu->contextNameLen)); | ||
9 | STOREPDU("contextEngineID", | ||
10 | - newSVpv((char *) pdu->contextEngineID, | ||
11 | + newSVpv(pdu->contextEngineID ? (char *) pdu->contextEngineID : "", | ||
12 | pdu->contextEngineIDLen)); | ||
13 | STOREPDU("securityEngineID", | ||
14 | - newSVpv((char *) pdu->securityEngineID, | ||
15 | + newSVpv(pdu->securityEngineID ? (char *) pdu->securityEngineID : "", | ||
16 | pdu->securityEngineIDLen)); | ||
17 | STOREPDU("securityName", | ||
18 | - newSVpv((char *) pdu->securityName, pdu->securityNameLen)); | ||
19 | + newSVpv(pdu->securityName ? (char *) pdu->securityName : "", pdu->securityNameLen)); | ||
20 | } else { | ||
21 | STOREPDU("community", | ||
22 | - newSVpv((char *) pdu->community, pdu->community_len)); | ||
23 | + newSVpv(pdu->community ? (char *) pdu->community : "", pdu->community_len)); | ||
24 | } | ||
25 | |||
26 | if (transport && transport->f_fmtaddr) { | ||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb index 8f20ce9a39..eb50d0fd44 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb | |||
@@ -17,6 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ | |||
17 | file://snmptrapd.service \ | 17 | file://snmptrapd.service \ |
18 | file://ifmib.patch \ | 18 | file://ifmib.patch \ |
19 | file://net-snmp-5.7.2-fix-CVE-2014-2284.patch \ | 19 | file://net-snmp-5.7.2-fix-CVE-2014-2284.patch \ |
20 | file://net-snmp-5.7.2-fix-CVE-2014-2285.patch \ | ||
20 | " | 21 | " |
21 | 22 | ||
22 | SRC_URI[md5sum] = "5bddd02e2f82b62daa79f82717737a14" | 23 | SRC_URI[md5sum] = "5bddd02e2f82b62daa79f82717737a14" |