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 1912242 - snmptrapd failed to parse snmptrap header
Summary: snmptrapd failed to parse snmptrap header
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: net-snmp
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Josef Ridky
QA Contact: Evgeny Fedin
URL:
Whiteboard:
Depends On:
Blocks: 1912725
TreeView+ depends on / blocked
 
Reported: 2021-01-04 08:50 UTC by Josef Kubin
Modified: 2024-06-13 23:49 UTC (History)
3 users (show)

Fixed In Version: net-snmp-5.8-20.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1912725 (view as bug list)
Environment:
Last Closed: 2021-05-18 14:57:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
test source (1.41 KB, text/x-csrc)
2021-01-04 08:50 UTC, Josef Kubin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github net-snmp net-snmp issues 253 0 None open snmptrapd is unable to parse long trap header 2021-02-04 00:53:52 UTC

Description Josef Kubin 2021-01-04 08:50:18 UTC
Created attachment 1744258 [details]
test source

Created attachment 1744258 [details]
test source

Description of problem:

snmptrap which is send from specific equipment isn't logged.
According to the snmptrapd debug log, snmptrapd failed to parse snmptrap header.

    error while parsing VarBindList: (parse header length 3 too short: need 0)

Version-Release number of selected component (if applicable):
net-snmp-5.8-17.el8.x86_64

How reproducible:
Always.

Steps to Reproduce:

  1) Modify snmptrapd.conf as follows.

     # cat /etc/snmp/snmptrapd.conf
     disableAuthorization yes

  2) Compile a test program source.

     # gcc -o snmptrap snmptrap.c

  3) Execute a test program.

     # ./snmptrap

Actual results:
snmptrap is not logged by parse error.

Expected results:
snmptrap is logged

Comment 2 Josef Ridky 2021-01-04 11:46:09 UTC
Reported to upstream. Let's wait for their answer.

Comment 16 errata-xmlrpc 2021-05-18 14:57:19 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 (net-snmp bug fix and enhancement 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/RHBA-2021:1637


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