oss-security - Re: Re: strings / libbfd crasher

Openwall
Follow @Openwall on Twitter for new release announcements and other news [<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54598E88.5060700@mccme.ru>
Date: 2014年11月05日 05:42:16 +0300
From: Alexander Cherepanov <cherepan@...me.ru>
To: oss-security@...ts.openwall.com
Subject: Re: Re: strings / libbfd crasher
On 2014年11月03日 01:43, Alexander Cherepanov wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=17533
>
> $ printf '!<arch>\n//%48d%8s`\n' -2 '' > test.a
> $ objdump -x test.a
> Segmentation fault
>
> At least 2.22, 2.24 and head are affected. ar, size, strip etc. are also
> affected.
>
> valgrind on head shows:
>
> ==14181== Invalid write of size 8
> ==14181== at 0x4C2E467: memset (vg_replace_strmem.c:1094)
> ==14181== by 0x448AD2: bfd_zalloc (opncls.c:1011)
> ==14181== by 0x43F08A: _bfd_slurp_extended_name_table (archive.c:1298)
> ==14181== by 0x43E89B: bfd_generic_archive_p (archive.c:831)
> ==14181== by 0x4466A6: bfd_check_format_matches (format.c:305)
> ==14181== by 0x407DCD: display_any_bfd (objdump.c:3356)
> ==14181== by 0x409F52: display_file (objdump.c:3410)
> ==14181== by 0x4048F9: main (objdump.c:3692)
> ==14181== Address 0x55fb9a0 is 0 bytes after a block of size 4,064 alloc'd
> ==14181== at 0x4C27C20: malloc (vg_replace_malloc.c:296)
> ==14181== by 0x4D51DC: objalloc_create (objalloc.c:95)
> ==14181== by 0x448177: _bfd_new_bfd (opncls.c:73)
> ==14181== by 0x448307: bfd_fopen (opncls.c:197)
> ==14181== by 0x409F40: display_file (objdump.c:3403)
> ==14181== by 0x4048F9: main (objdump.c:3692)
>
> This is "Invalid write", hence potentially exploitable? Is further
> analysis required before deciding if this is a security issue? Or, more
> strictly, is further analysis required before deciding if this issue is
> CVE worthy?
This is fixed now:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bb0d867169d7e9743d229804106a8fbcab7f3b3f
-- 
Alexander Cherepanov

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.

AltStyle によって変換されたページ (->オリジナル) /