[Nasm-bugs] [Bug 3392512] New: Malformed input file results in segmentation fault of NASM

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Thu Aug 30 10:34:10 PDT 2018


https://bugzilla.nasm.us/show_bug.cgi?id=3392512

            Bug ID: 3392512
           Summary: Malformed input file results in segmentation fault of
                    NASM
           Product: NASM
           Version: 2.14 (development)
          Hardware: All
                OS: Linux
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: j.zebor at f5.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Build from source archive using configure

Created attachment 411664
  --> https://bugzilla.nasm.us/attachment.cgi?id=411664&action=edit
Malformed input file

Input of a malformed file to nasm results in a segmentation fault (SIGSEGV). I
confirmed this issue on NASM version 2.13.03 and NASM version 2.14rc15 with the
command "nasm -f elf nasm-crash"

Valgrind report indicates an issue due to "Stack overflow in thread #1: can't
grow stack to ... ". Quick review of the backtrace in the generated core file
looks like an infinite recursion problem but I'll leave it to the experts on
this to determine root cause. Attached is the sample input file (nasm-crash)
and valgrind log (nasm-crash.log).

This bug was found with American Fuzzy LOP.

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


More information about the Nasm-bugs mailing list