Mailinglist Archive: opensuse-bugs (4295 mails)

< Previous Next >
[Bug 1038875] New: VUL-1: binutils: readelf memory allocation failure
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 12 May 2017 13:21:05 +0000
  • Message-id: <bug-1038875-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1038875


Bug ID: 1038875
Summary: VUL-1: binutils: readelf memory allocation failure
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 42.2
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Security
Assignee: security-team@xxxxxxx
Reporter: mikhail.kasimov@xxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

Created attachment 724890
--> http://bugzilla.opensuse.org/attachment.cgi?id=724890&action=edit
binutils-readelf-memallocfailure_reproducer

Ref: https://blogs.gentoo.org/ago/2017/05/12/binutils-multiple-crashes/
=========================================================================
# readelf -a $FILE
==20389==ERROR: AddressSanitizer failed to allocate 0x18da5b8000 (106742644736)
bytes of LargeMmapAllocator (error code: 12)
[...]
==20389==AddressSanitizer CHECK failed:
/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.0/work/compiler-rt-4.0.0.src/lib/sanitizer_common/sanitizer_common.cc:120
"((0 && "unable to mmap")) != (0)" (0x0, 0x0)
[...]
#8 0x66216d in xmalloc
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/libiberty/xmalloc.c:148:12
#9 0x5e32c0 in cmalloc
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/binutils/dwarf.c:7450:10
#10 0x582819 in get_program_headers
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/binutils/readelf.c:4761:33
#11 0x55ab15 in process_program_headers
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/binutils/readelf.c:4814:9
#12 0x52ea4f in process_object
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/binutils/readelf.c:16751:7
#13 0x51780f in process_file
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/binutils/readelf.c:17138:13
#14 0x51780f in main
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/binutils/readelf.c:17209
#15 0x7f252d57178f in __libc_start_main
/tmp/portage/sys-libs/glibc-2.23-r3/work/glibc-2.23/csu/../csu/libc-start.c:289
#16 0x41a158 in getenv
(/usr/x86_64-pc-linux-gnu/binutils-bin/2.28/readelf+0x41a158)

Affected version:
2.28

Fixed version:
N/A

Reproducer:
https://github.com/asarubbo/poc/blob/master/00259-binutils-readelf-memallocfailure

Commit fix:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=82156ab704b08b124d319c0decdbd48b3ca2dac5
=========================================================================

(open-)SUSE: https://software.opensuse.org/package/binutils

2.28 (TW, official repo)
2.26.1 (42.{1,2}, official repo)

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
This Thread
  • No further messages