[Bug tools/21300] heap-based buffer overflow in ebl_object_note_type_name (eblobjnotetypename.c)

mjw at redhat dot com sourceware-bugzilla@sourceware.org
Fri Mar 24 13:00:00 GMT 2017


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

Mark Wielaard <mjw at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjw at redhat dot com

--- Comment #1 from Mark Wielaard <mjw at redhat dot com> ---
Nice find. The issue is with notes that have a zero sized name (and also no
descriptor data at the end of a note section).

"The system reserves note information with no name (namesz==0) and with a
zero-length name (name[0]=='\0') but currently defines no types. All other
names must have at least one non-null character."

So we must explicitly check for namesz == 0 before using the name data in the
note.

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


More information about the Elfutils-devel mailing list