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 2160723 - Net-SNMP not responding when proxy requests times out
Summary: Net-SNMP not responding when proxy requests times out
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: net-snmp
Version: 8.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Josef Ridky
QA Contact: Evgeny Fedin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-13 13:42 UTC by Amey
Modified: 2023-05-16 11:05 UTC (History)
0 users

Fixed In Version: net-snmp-5.8-27.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 09:05:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-145051 0 None None None 2023-01-13 13:44:52 UTC
Red Hat Product Errata RHSA-2023:2969 0 None None None 2023-05-16 09:05:37 UTC

Description Amey 2023-01-13 13:42:44 UTC
Description of problem:

When Net-SNMP daemon is configured to proxy requests on another agent. If this agent is not running, or in case of internal failure or timeout in the sub agent, the proxy requests fail as expected. But if a snmpset query is executed afterwards, the set request is queued and never processed. This causes all other subsequent snmpget requests to be never processed as well. That leaves our Net-SNMP daemon not responsive for ever.


How reproducible: Always

Steps to Reproduce:

Our local snmp agent is running on default port 161

Then add configuration for a dummy proxy (here there is no agent running on 163) in snmpd.conf file

 proxy -v 2c -c public localhost:163 .1.3.6.1.6666

Execute a snmpget on Net-SNMP that will be sent to the target agent.

snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.6666.1.0
This request times out as we never get a response.

Execute a snmpget.

snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.11.30.0
This request is successful as we get the expected results.

Execute a snmpset.

snmpset -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.11.30.0 i 1
This request times out and is never processed.

Execute a snmpget

snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.2.1.11.30.0
This request times out. At this moment, Net-SNMP is not responding anymore to any requests.


Actual results:

snmp fails to respond to any query.

Expected results:

snmp should not stop responding.

Additional info:

This is discussed upstream and also a fix is available.

https://github.com/net-snmp/net-snmp/issues/147

Comment 1 Josef Ridky 2023-01-16 07:44:17 UTC
Fix available upstream.
We plan to fix this issue for RHEL-8.8.0 release.

Comment 8 errata-xmlrpc 2023-05-16 09:05:22 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 (Moderate: net-snmp security and bug fix update), 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://access.redhat.com/errata/RHSA-2023:2969


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