buglwIP - A Lightweight TCP/IP stack - Bugs: bug #64847, Error in sendtrap v2c

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64847: Error in sendtrap v2c

Submitter:  Andrew <andi>
Submitted:  Fri 03 Nov 2023 08:11:53 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  2.2.0

Fri 03 Nov 2023 08:11:53 AM UTC, original submission:  

There are bug in snmp_traps.c
Line 394-395

Now:
  if (trap_msg->snmp_version == SNMP_VERSION_2c) {
      struct snmp_obj_id snmp_trap_oid =  { 0 };  /* used for...
Need:
  struct snmp_obj_id snmp_trap_oid =  { 0 };  /* used for ...
  if (trap_msg->snmp_version == SNMP_VERSION_2c) {

An OID is created, a pointer is written to it in varbind[1].value.
The memory will be cleared when we leave the curly braces, and the snmp_varbind_len structure will be located in the same place. When calculating the length of varbind[1].value is corrupted.
(In         snmp_trap_varbind_sum
and snmp_asn1_enc_length_cnt)

Andrew <andi>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by andi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code