https://sourceware.org/bugzilla/show_bug.cgi?id=29201

            Bug ID: 29201
           Summary: Stack Overflow Infinite Recursion in nm-new
           Product: binutils
           Version: 2.36.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: abhishah212 at gmail dot com
  Target Milestone: ---

Created attachment 14123
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14123&action=edit
poc for stack overflow

We found a stack overflow resulting from a unbounded recursion in `nm-ew`. We
discuss our understanding of the vulnerability below. We attach the relevant
files as well. 

*Location* 
https://github.com/bminor/binutils-gdb/blob/binutils-2_36-branch/libiberty/rust-demangle.c#L696

*Description*
Recursive call to demangle_path never hits base case.

*Fix*
Attach a recursion depth for recursive function.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to