CVE-2008-4309: Input Validation

Published Oct 31, 2008
·
Updated

Integer overflow in the netsnmpcreatesubtreecache function in agent/snmpagent.c in net-snmp 5.4 before 5.4.2.1, 5.3 before 5.3.2.3, and 5.2 before 5.2.5.1 allows remote attackers to cause a denial of service (crash) via a crafted SNMP GETBULK request, which triggers a heap-based buffer overflow, related to the number of responses or repeats.

Other sources

Oscar Mira-Sanchez reported (via TippingPoint/ZDI) to Net-SNMP upstream an integer overflow in the numresponses calculation in snmpagent.c. Size of memory requirement for bulkcache array is calculated based on the values form an SNMP request without properly checking for integer overflows, resulting in an insufficient memory allocation and heap-based buffer overflow.

agent/snmpagent.c:

numresponses = asp->pdu->errindex r;

[ ... ]

asp->bulkcache = (netsnmpvariablelist ) malloc(numresponses sizeof(struct varbindlist ));

Issue can be triggered by an SNMP get request.

Affected Software

5 affected componentsFixes available
redhat/net-snmp<0:5.1.2-13.el4_7.2
0:5.1.2-13.el4_7.2
redhat/net-snmp<1:5.3.1-24.el5_2.2
1:5.3.1-24.el5_2.2
Net-SNMP Net-SNMP=5.4
Net-SNMP Net-SNMP=5.3.2.2
Net-SNMP Net-SNMP=5.2.5

Event History

Oct 31, 2008
CVE Published
12:00 AM
Data Sourced
01:28 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:29 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2008-4309?

CVE-2008-4309 is a high severity vulnerability that can lead to denial of service through a crafted SNMP GETBULK request.

2

How do I fix CVE-2008-4309?

To fix CVE-2008-4309, upgrade to net-snmp version 5.4.2.1 or later for affected systems.

3

Which versions of net-snmp are vulnerable to CVE-2008-4309?

Versions of net-snmp before 5.4.2.1, 5.3.2.3, and 5.2.5.1 are vulnerable to CVE-2008-4309.

4

What kind of attack is possible with CVE-2008-4309?

CVE-2008-4309 allows remote attackers to conduct a denial of service attack by triggering a heap-based buffer overflow.

5

Is there a specific software source affected by CVE-2008-4309?

Yes, the vulnerability affects the net-snmp package provided by Red Hat for specific versions.

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