From: "wcventure at 126 dot com" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug libelf/23528] New: When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer chatch a double-free crashes.
Date: Wed, 15 Aug 2018 12:18:00 -0000 [thread overview]
Message-ID: <bug-23528-10460@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
Bug ID: 23528
Summary: When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp
-w, AddressSanitizer chatch a double-free crashes.
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libelf
Assignee: unassigned at sourceware dot org
Reporter: wcventure at 126 dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
Created attachment 11185
--> https://sourceware.org/bugzilla/attachment.cgi?id=11185&action=edit
When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer
chatch a double-free crashes.
When executing ./eu-nm @@ or ./eu-readelf -aAdehIlnrsSVcp -w @@,
AddressSanitizer chatch a double-free crashes.
The AddressSanitizer's output shows as follow:
==30316==ERROR: AddressSanitizer: attempting double-free on 0x60400000de50 in
thread T0:
#0 0x7ffffe5282ca in __interceptor_free
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x7ffffde26c83 in elf_end /mnt/d/Project/elfutils/libelf/elf_end.c:171
#2 0x7ffffe1b23f6 in free_file
/mnt/d/Project/elfutils/libdwfl/dwfl_module.c:57
#3 0x7ffffe1b23f6 in __libdwfl_module_free
/mnt/d/Project/elfutils/libdwfl/dwfl_module.c:113
#4 0x7ffffe1b06bc in dwfl_end /mnt/d/Project/elfutils/libdwfl/dwfl_end.c:54
#5 0x409883 in show_symbols /mnt/d/Project/elfutils/src/nm.c:1494
#6 0x40cf4c in handle_elf /mnt/d/Project/elfutils/src/nm.c:1578
#7 0x4035dc in process_file /mnt/d/Project/elfutils/src/nm.c:374
#8 0x4035dc in main /mnt/d/Project/elfutils/src/nm.c:249
#9 0x7ffffd4c082f in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#10 0x4043c8 in _start (/mnt/d/Project/elfutils/build/bin/eu-nm+0x4043c8)
0x60400000de50 is located 0 bytes inside of 36-byte region
[0x60400000de50,0x60400000de74)
freed by thread T0 here:
#0 0x7ffffe5282ca in __interceptor_free
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
#1 0x7ffffdea3dcf in __libelf_reset_rawdata
/mnt/d/Project/elfutils/libelf/elf_compress.c:325
previously allocated by thread T0 here:
#0 0x7ffffe528602 in malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x7ffffdea31dd in __libelf_decompress
/mnt/d/Project/elfutils/libelf/elf_compress.c:223
#2 0x7ffffdeaa490 (/mnt/d/Project/elfutils/build/lib/libelf.so.1+0x9a490)
SUMMARY: AddressSanitizer: double-free ??:0 __interceptor_free
==30316==ABORTING
[Inferior 1 (process 30316) exited with code 01]
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2018-08-15 12:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-15 12:18 wcventure at 126 dot com [this message]
2018-08-15 12:36 ` [Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crashe wcventure at 126 dot com
2018-08-15 12:45 ` [Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crash wcventure at 126 dot com
2018-08-15 13:20 ` mark at klomp dot org
2018-08-15 15:28 ` fche at redhat dot com
2018-08-15 20:43 ` mark at klomp dot org
2018-08-18 20:49 ` mark at klomp dot org
2018-09-04 7:34 ` mark at klomp dot org
2020-04-08 17:33 ` [Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crash. (CVE-2018-16402) fweimer at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-23528-10460@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).