This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug tools/21300] heap-based buffer overflow in ebl_object_note_type_name (eblobjnotetypename.c)
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Fri, 24 Mar 2017 13:00:43 +0000
- Subject: [Bug tools/21300] heap-based buffer overflow in ebl_object_note_type_name (eblobjnotetypename.c)
- Auto-submitted: auto-generated
- References: <bug-21300-10460@http.sourceware.org/bugzilla/>
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.