Bug 469349 (CVE-2008-4309) - CVE-2008-4309 net-snmp: numresponses calculation integer overflow in snmp_agent.c
Summary: CVE-2008-4309 net-snmp: numresponses calculation integer overflow in snmp_age...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-4309
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 469369 469370 469371 469373 469374 469406
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-31 13:28 UTC by Tomas Hoger
Modified: 2019-09-29 12:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-13 15:42:41 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2008:0971 normal SHIPPED_LIVE Important: net-snmp security update 2008-11-03 15:23:07 UTC

Description Tomas Hoger 2008-10-31 13:28:14 UTC
Oscar Mira-Sanchez reported (via TippingPoint/ZDI) to Net-SNMP upstream an integer overflow in the numresponses calculation in snmp_agent.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/snmp_agent.c:

    numresponses = asp->pdu->errindex * r;

    [ ... ]

    asp->bulkcache =
        (netsnmp_variable_list **) malloc(numresponses *
                                          sizeof(struct
                                                 varbind_list *));

Issue can be triggered by an SNMP get request.

Comment 6 Tomas Hoger 2008-10-31 15:33:43 UTC
Upstream SVN commit:
http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=17272

Comment 7 Josh Bressers 2008-10-31 15:35:57 UTC
This is going to be RHSA-2008:0971

Comment 10 Josh Bressers 2008-10-31 19:04:31 UTC
This is public:
http://sourceforge.net/forum/forum.php?forum_id=882903

Comment 11 Fedora Update System 2008-11-03 09:33:11 UTC
net-snmp-5.4.1-8.fc8 has been submitted as an update for Fedora 8.
http://admin.fedoraproject.org/updates/net-snmp-5.4.1-8.fc8

Comment 12 Fedora Update System 2008-11-03 09:34:47 UTC
net-snmp-5.4.1-19.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/net-snmp-5.4.1-19.fc9

Comment 13 Fedora Update System 2008-11-06 04:04:54 UTC
net-snmp-5.4.1-8.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2008-11-06 04:05:37 UTC
net-snmp-5.4.1-19.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Tomas Hoger 2008-11-26 09:09:23 UTC
net-snmp-5.4.2.1-1.fc10 did not make it to F10 before release and will need to be submitted as an update via bodhi.

Comment 18 Fedora Update System 2008-11-26 13:21:48 UTC
net-snmp-5.4.2.1-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/net-snmp-5.4.2.1-1.fc10

Comment 19 Fedora Update System 2008-11-27 02:10:20 UTC
net-snmp-5.4.2.1-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.