Bug 1912242

Summary: snmptrapd failed to parse snmptrap header
Product: Red Hat Enterprise Linux 8 Reporter: Josef Kubin <jkubin>
Component: net-snmpAssignee: Josef Ridky <jridky>
Status: CLOSED ERRATA QA Contact: Evgeny Fedin <efedin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: efedin, ovasik, yoguma
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: net-snmp-5.8-20.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1912725 (view as bug list) Environment:
Last Closed: 2021-05-18 14:57:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1912725    
Attachments:
Description Flags
test source none

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