buglwIP - A Lightweight TCP/IP stack - Bugs: bug #46089, snmp: race condition on length...

 
 

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

bug #46089: snmp: race condition on length change between get_object_def() and get_value()

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Thu 01 Oct 2015 08:05:57 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Thu 01 Oct 2015 08:09:06 AM UTC, comment #1:

Fixed by moving length info from get_object_def() to get_value().

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 01 Oct 2015 08:05:57 AM UTC, original submission:

The snmp agent currently gets the length of an object from the get_object_def() function. However, the length could change (at least for external nodes) before calling get_value(), so the value and its length don't match.

The length returned from get_object_def() has historically been used to allocate memory via mem_malloc(). However, this is not required any more since the memory is being allocated from pools.

To fix this, the length shall be returned by the get_value() function. This is an incompatibility for private MIBs only.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Oct 2015 08:09:06 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1