Bug 506903 (CVE-2009-1887)

Summary: CVE-2009-1887 net-snmp: DoS (division by zero) via SNMP GetBulk requests
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jsafrane, security-response-team, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-25 14:42:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 506444    
Bug Blocks:    

Description Tomas Hoger 2009-06-19 08:26:00 UTC
It was discovered that remote attacker can cause net-snmp's snmpd to crash via specially crafted SNMP GetBulk requests, that triggers division by zero in the following code:

    if (maxbulk <= 0 || maxbulk > maxresponses / r)
        maxbulk = maxresponses / r;

This code has been added as part of the fix for CVE-2008-4309 (bug #469349).  This problem never affected upstream net-snmp versions, thanks to following upstream commit from 2004:

http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/agent/snmp_agent.c?r1=9583&r2=9695

This upstream change is part of net-snmp packages shipped in Red Hat Enterprise Linux 4 and later.  Therefore this division by zero DoS only affects net-snmp in Red Hat Enterprise Linux 3.

Comment 2 errata-xmlrpc 2009-06-25 14:34:43 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3

Via RHSA-2009:1124 https://rhn.redhat.com/errata/RHSA-2009-1124.html