OctString

2021-03-05 Thread Fabio Santos
Hi Guys,

I’m trying to getup addresses from Cisco CDP neighbor
(1.3.6.1.4..1.9.9.23.1.2.1.1.4) via Python easy snmp module. This one uses
a net-SNMP. But I’m receiving a octstring with binary info. How can I
decode this info ? Seams that vlan trunk memberships have same behavior.

Best
Fábio
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Getting double free or corruption

2021-03-05 Thread Feroz
Do the patch mentioned for CVE-2019-20892 in the link below, will fix this
double free crash?
Is it safe to appy this patch?

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-20892

-Feroz


On Fri, 5 Mar, 2021, 2:01 am chandrasekharreddy c, <
chandrasekharre...@hotmail.com> wrote:

> Hi  Team,
>
>
> I'm upgraded to net-snmp 5.8 version recently.
> I'm getting snmpd core dump with double free while doing snmpv3 bulk get.
> I compared net-snmp 5.8 and 5.9.
> It looks like some changes happend.
> My bt is like this.
>
> #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
>
> #1 0xa3729f54 in __GI_abort () at abort.c:79
>
> #2 0xa3774274 <+913774274> in __libc_message 
> (action=action@entry=do_abort,
> fmt=fmt@entry=0xa382ca68 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
>
> #3 0xa377b52c in malloc_printerr (str=str@entry=0xa3828468
> <+913828468> "double free or corruption (fasttop)") at malloc.c:5332
>
> #4 0xa377cdec in _int_free (av=, p=0x4d56b0,
> have_lock=0) at malloc.c:4266
>
> #5 0xa38e98c8 in usm_free_usmStateReference (old=old@entry=0x56dc60)
> at snmpusm.c:313
>
> #6 0xa38ee194 in usm_generate_out_msg (msgProcModel= out>, globalData=, globalDataLen=27, maxMsgSize= out>, secModel=
> out>, secEngineID=, secEngineIDLen=,
> secName=, secNameLen=5, secLevel=3, scopedPdu=0xf9717bb0
> "0\202\004\321\004\033\200", scopedPduLen=1237, secStateRef=0x56dc60,
> secParams=0x5639fb ' ' ..., secParamsLen=0xf9717b00,
> wholeMsg=0xf9717b10, wholeMsgLen=0xf97182e8) at snmpusm.c:1201
>
> #7 0xa38eec0c in usm_secmod_generate_out_msg (parms= out>) at snmpusm.c:868
>
> #8 0xa38a9b20 in snmpv3_packet_build (session=session@entry=0x456bd0,
> pdu=pdu@entry=0x577340 <+91577340>, packet=0x5639e0 "0\202",
> out_length=out_length@entry=0xf97182e8,
>
> pdu_data=pdu_data@entry=0x0, pdu_data_len=pdu_data_len@entry=0) at
> snmp_api.c:3085
>
> #9 0xa38ab824 in snmpv3_build (pdu=0x577340 <+91577340>,
> session=0x456bd0, offset=0xf9718228 <+919718228>,
> pkt_len=0xf97182e8, pkt=0xf97182d0) at snmp_api.c:2561
>
> #10 _snmp_build (pdu=0x577340 <+91577340>, session=0x456bd0,
> offset=0xf9718228 <+919718228>, pkt_len=0xf97182e8,
> pkt=0xf97182d0) at snmp_api.c:3143
>
> #11 snmp_build (pkt=0xf97182d0, pkt_len=0xf97182e8, offset=0xf
> 9718228 <+919718228>, pss=0x456bd0, pdu=0x577340) <+91577340> at
> snmp_api.c:3482
>
> #12 0xa38abd20 in netsnmp_build_packet (isp=isp@entry=0x4bd9d0,
> sp=sp@entry=0x456bd0, pdu=pdu@entry=0x577340 <+91577340>,
> pktbuf_p=pktbuf_p@entry=0xf97182d0, 
> pktbuf_len_p=pktbuf_len_p@entry=0xf97182e0,
> pkt_p=pkt_p@entry=0xf97182d8, len_p=len_p@entry=0xf97182e8) at
> snmp_api.c:5294
>
> #13 0xa38abec4 in _build_initial_pdu_packet (slp=,
> pdu=0x577340 <+91577340>, bulk=1) at snmp_api.c:5471
>
> #14 0xa49ac874 in netsnmp_wrap_up_request (asp=asp@entry=0x4c9c30,
> status=status@entry=0) at snmp_agent.c:2011
>
> #15 0xa49afc0c in check_delayed_request (asp=asp@entry=0x4c9c30)
> at snmp_agent.c:3470
>
> #16 0xa49afca8 in netsnmp_check_delegated_requests () at
> snmp_agent.c:3282
>
> #17 0xa49b08c4 in netsnmp_check_outstanding_agent_requests () at
> snmp_agent.c:3314
>
> #18 0x00403 <+910403>da0 in ?? ()
>
> #19 0x0040361c in ?? ()
>
> #20 0xa372a3ac in __libc_start_main (main=0x4025a0, argc=7,
> argv=0xf9718858 <+919718858>, init=, fini= out>, rtld_fini=, stack_end=) at
> ../csu/libc-start.c:308
>
> #21 0x004039 <+9104039>bc in ?? ()
>
>
> How to get patch details .can you please help me
>
>
>
> Thanks,
> Chandra
>
> Get Outlook for Android 
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users