snmpd segfaults when queried for hrSWinstalled
Issue
When snmpd daemon receives a query for OID tree .1.3.6.1.2.1.25.6 (HOST-RESOURCES-MIB::hrSWInstalled) it does not reply and crashes on segmentation fault.
On Red Hat Enterprise Linux 7 systems there can be seen similar log entries in /var/log/messages:
Oct 4 08:10:47 hostname kernel: snmpd[23775]: segfault at 0 ip 00007f896659c551 sp 00007ffe69fe4060 error 4
Oct 4 08:10:47 hostname kernel: in libc-2.17.so[7f89664fd000+1b6000]
Oct 4 08:10:47 hostname systemd: snmpd.service: main process exited, code=killed, status=11/SEGV
Oct 4 08:10:47 hostname systemd: Unit snmpd.service entered failed state.
Oct 4 08:10:47 hostname systemd: snmpd.service failed.
Consequent checking of service status using systemctl status snmpd returns similar output:
● snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmpd.service; disabled; vendor preset: disabled)
Active: failed (Result: signal) since Sat 2017-10-04 08:10:47 CET; 0h 11min ago
Process: 23775 ExecStart=/usr/sbin/snmpd $OPTIONS -f (code=killed, signal=SEGV)
Main PID: 23775 (code=killed, signal=SEGV)
Oct 04 08:10:07 hostname.example.com systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
Oct 04 08:10:07 hostname.example.com snmpd[23775]: NET-SNMP version 5.7.2
Oct 04 08:10:07 hostname.example.com systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..
Oct 04 08:10:47 hostname.example.com systemd[1]: snmpd.service: main process exited, code=killed, status=11/SEGV
Oct 04 08:10:47 hostname.example.com systemd[1]: Unit snmpd.service entered failed state.
Oct 04 08:10:47 hostname.example.com systemd[1]: snmpd.service failed.
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
net-snmp<net-snmp-5.7.2-28.el7_4.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
