Ran the reproducer in a loop, and on the first iteration it crashed the server already, as expected:
Aug 09 12:51:25 f-snmp systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..
Aug 09 12:52:08 f-snmp snmpd[3341]: Unknown operation 6 in agentx_got_response
Aug 09 12:52:09 f-snmp snmpd[3341]: Unknown operation 6 in agentx_got_response
Aug 09 12:52:09 f-snmp snmpd[3341]: Unknown operation 6 in agentx_got_response
Aug 09 12:52:10 f-snmp snmpd[3341]: malloc(): smallbin double linked list corrupted
Aug 09 12:52:10 f-snmp systemd[1]: snmpd.service: Main process exited, code=dumped, status=6/ABRT
Aug 09 12:52:10 f-snmp systemd[1]: snmpd.service: Failed with result 'core-dump'.
Upgrading to the packages in proposed:
ubuntu@f-snmp:~$ apt-cache policy snmpd
snmpd:
Installed: 5.8+dfsg-2ubuntu2.9
Candidate: 5.8+dfsg-2ubuntu2.9
Version table:
*** 5.8+dfsg-2ubuntu2.9 500
500 http://br.archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
100 /var/lib/dpkg/status
Let the reproducer run for more than 20 times and no crash:
Wed Aug 9 12:56:19 UTC 2023
i=20
iso.3.6.1.4.1.8072.9999.9999.3.0 = STRING: "String for NET-SNMP-EXAMPLES-MIB"
Wed Aug 9 12:56:20 UTC 2023
i=21
iso.3.6.1.4.1.8072.9999.9999.3.0 = STRING: "String for NET-SNMP-EXAMPLES-MIB"
Wed Aug 9 12:56:22 UTC 2023
i=22
Focal verification
Reproducing the bug with: br.archive. ubuntu. com/ubuntu focal-updates/main amd64 Packages dpkg/status
ubuntu@f-snmp:~$ apt-cache policy snmpd
snmpd:
Installed: 5.8+dfsg-2ubuntu2.7
Candidate: 5.8+dfsg-2ubuntu2.7
Version table:
*** 5.8+dfsg-2ubuntu2.7 500
500 http://
100 /var/lib/
Ran the reproducer in a loop, and on the first iteration it crashed the server already, as expected:
Aug 09 12:51:25 f-snmp systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..
Aug 09 12:52:08 f-snmp snmpd[3341]: Unknown operation 6 in agentx_got_response
Aug 09 12:52:09 f-snmp snmpd[3341]: Unknown operation 6 in agentx_got_response
Aug 09 12:52:09 f-snmp snmpd[3341]: Unknown operation 6 in agentx_got_response
Aug 09 12:52:10 f-snmp snmpd[3341]: malloc(): smallbin double linked list corrupted
Aug 09 12:52:10 f-snmp systemd[1]: snmpd.service: Main process exited, code=dumped, status=6/ABRT
Aug 09 12:52:10 f-snmp systemd[1]: snmpd.service: Failed with result 'core-dump'.
Upgrading to the packages in proposed: br.archive. ubuntu. com/ubuntu focal-proposed/main amd64 Packages dpkg/status
ubuntu@f-snmp:~$ apt-cache policy snmpd
snmpd:
Installed: 5.8+dfsg-2ubuntu2.9
Candidate: 5.8+dfsg-2ubuntu2.9
Version table:
*** 5.8+dfsg-2ubuntu2.9 500
500 http://
100 /var/lib/
Let the reproducer run for more than 20 times and no crash: 1.4.1.8072. 9999.9999. 3.0 = STRING: "String for NET-SNMP- EXAMPLES- MIB" 1.4.1.8072. 9999.9999. 3.0 = STRING: "String for NET-SNMP- EXAMPLES- MIB"
Wed Aug 9 12:56:19 UTC 2023
i=20
iso.3.6.
Wed Aug 9 12:56:20 UTC 2023
i=21
iso.3.6.
Wed Aug 9 12:56:22 UTC 2023
i=22
Focal verification succeeded.