bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/29201] New: Stack Overflow Infinite Recursion in nm-new


From: abhishah212 at gmail dot com
Subject: [Bug binutils/29201] New: Stack Overflow Infinite Recursion in nm-new
Date: Mon, 30 May 2022 20:45:00 +0000

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

[Prev in Thread] Current Thread [Next in Thread]