buglwIP - A Lightweight TCP/IP stack - Bugs: bug #60455, Crash in ip6_output with debugging...

 
 

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

bug #60455: Crash in ip6_output with debugging enabled.

Submitter:  Eric Koldeweij <eric_koldeweij>
Submitted:  Mon 26 Apr 2021 08:28:36 AM UTC
   
 
Category:  IPv6 Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Thu 13 May 2021 11:42:08 AM UTC, comment #1: 

Thanks, applied. Fixed ip6_output_hinted as well.

Erik Ekman <yarrick>
Group Member
Mon 26 Apr 2021 08:28:36 AM UTC, original submission:  

When attempting to debug an lwip setup a crash was seen in ip6_output.

It turns out the crash only occurs if LWIP_DEBUG is enabled. If the parameter dest is NULL the function tries to find a route using the destination address of the packet instead. If this fails as well a debug message is printed but it is still using dest causing a NULL pointer dereference and crash at src/core/ipv6/ip6.c line 1312.

If dest is NULL and finding a proper interface still fails, the debug print should use dest_addr instead of dest for its debug print.

A simple oneliner can fix this. Please see attached patch.

Eric Koldeweij <eric_koldeweij>

 

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

Attached Files
file #51321:  patch.txt added by eric_koldeweij (449B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yarrick (Posted a comment)
  • -email is unavailable- added by eric_koldeweij (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-13 yarrick StatusNone Fixed
        Open/ClosedOpen Closed
    2021-04-26 eric_koldeweij Attached File- Added patch.txt, #51321

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code