CVE-2015-5621: Integer Overflow

Published Apr 16, 2015
·
Updated

It was discovered that the snmppduparse() function could leave incompletely parsed varBind variables in the list of variables in case the parsing of the SNMP PDU failed. If later processing tries to operate on the stale and incompletely processed varBind (e.g. when printing the variables), this can lead to e.g. crashes or, possibly, execution of arbitrary code (although I've only seen NULL pointer dereferences during my testing, I currently can't rule out code execution completely).

The snmppduparse() function stores varBind variables in a list of netsnmpvariablelist structures. Each time the function parses a new varBind, a new netsnmpvariablelist item is allocated on the heap and linked to the list of variables. The problem is that this item is not removed from the list, even if snmppduparse() fails to complete the parsing.

The "type" member of the stale netsnmpvariablelist is not properly initialized in case snmppduparse() returns early from the parsing. However, the "type" member is used to determine later code paths, which is why we see crashes in a variety of functions, although the root cause for all of these is the same.

References:

Upstream patch: https://sourceforge.net/p/net-snmp/code/ci/f23bcd3ac6ddee5d0a48f9703007ccc738914791/

Upstream bug: https://sourceforge.net/p/net-snmp/bugs/2615/ (possibly restricted)

Reporter's mail to oss-security: http://www.openwall.com/lists/oss-security/2015/04/13/1

Other sources

The snmppduparse function in snmpapi.c in net-snmp 5.7.2 and earlier does not remove the varBind variable in a netsnmpvariablelist item when parsing of the SNMP PDU fails, which allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted packet.

Affected Software

3 affected componentsFixes available
debian/net-snmp<=5.4.3~dfsg-1, <=5.7.3+dfsg-1
5.7.3+dfsg-1.15.7.2.1+dfsg-1+deb8u1
debian/net-snmp
5.7.3+dfsg-5+deb10u25.7.3+dfsg-5+deb10u45.9+dfsg-4+deb11u15.9.3+dfsg-25.9.4+dfsg-1
Net-SNMP Net-SNMP<=5.7.2

Event History

Apr 16, 2015
Data Sourced
via Red Hat·11:01 AM
DescriptionSeverityAffected Software
Aug 19, 2015
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via NVD·03:59 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2015-5621?

CVE-2015-5621 has a medium severity rating due to potential issues in processing SNMP PDUs.

2

How do I fix CVE-2015-5621?

To fix CVE-2015-5621, update your net-snmp package to version 5.7.3+dfsg-1.1 or later.

3

What systems are affected by CVE-2015-5621?

CVE-2015-5621 affects net-snmp versions up to 5.7.3+dfsg-1 and specific Debian package versions.

4

What are the potential impacts of CVE-2015-5621?

The impact of CVE-2015-5621 may include incomplete variable processing leading to application instability.

5

Is there a workaround for CVE-2015-5621 until I can apply a fix?

A temporary workaround for CVE-2015-5621 involves avoiding the use of affected net-snmp versions until they can be updated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203