RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1315481 - snmp response: Too long
Summary: snmp response: Too long
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp
Version: 6.7
Hardware: Unspecified
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Josef Ridky
QA Contact: Dalibor Pospíšil
Mirek Jahoda
URL:
Whiteboard:
Depends On:
Blocks: 1269194 1324306 1356044 1363606
TreeView+ depends on / blocked
 
Reported: 2016-03-07 21:08 UTC by Bryan Totty
Modified: 2019-12-16 05:29 UTC (History)
10 users (show)

Fixed In Version: net-snmp-5.5-58.el6
Doc Type: Bug Fix
Doc Text:
Previously, all the SNMPv1 and SNMPv2c responses that followed an SNMPv3 message were checked against the last recorded SNMPv3 "max message size" property. As a consequence, an SNMPv3 request with a small "max message size" could lead to SNMPv1 and SNMPv2c bulk requests timing out. With this update, the session maximum message size is checked only for SNMPv3 requests, and the SNMPv1 and SNMPv2c response is no longer timed out.
Clone Of:
: 1324306 1363606 (view as bug list)
Environment:
Last Closed: 2017-03-21 09:24:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0597 0 normal SHIPPED_LIVE net-snmp bug fix update 2017-03-21 12:25:54 UTC

Description Bryan Totty 2016-03-07 21:08:25 UTC
The following upstream bug appears to affect net-snmp-5.5-54.el6_7.1.

https://sourceforge.net/p/net-snmp/bugs/2482/

"An SNMPv3 request with a small max message size can lead to SNMPv1/2c bulk requests timing out. This is because when sending a response the length of the data is checked against a max message property of the session and if it is too big then a "snmp response: Too large" log message is generated. Now the max message size session property is a SNMPv3 thing. For SNMPv1/2c this is normally set to zero which disables this check. So as long as we talk to the agent using SNMPv1/2c everything is fine.

Now things get broken when a SNMPv3 request arrives (you do not need valid credentials for this!). This request provides a max message size property which is recorded in the session. So all the following SNMPv1/2c responses are checked against the last SNMPv3 max message size property. If the response is large enough (e.g. snmpbulkget -Cr100 ...) it will not be sent out. To recover from this either restart the agent or send a SNMPv3 request with a large max message size property.

The fix would be to enable the test against the session max message size in _sess_async_send() which is in snmplib/snmp_api.c for SNMPv3 only.

I attached a script that triggers this. It requires Net::SNMP perl module installed and is called with the target host as parameter. The read community is assumed to be "public"."

Comment 3 Robert Story 2016-03-07 21:45:48 UTC
Upstream fix is in the V5-5-patches branch:

commit a93991eaf53b199b19c582b630da25158300a9d1
Author: Robert Story <rstory@localhost>
Date:   Fri Aug 1 10:07:45 2014 -0400

    fix #2482 snmp response: Too long

Comment 21 errata-xmlrpc 2017-03-21 09:24:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0597.html


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