Summary: | LD crashes when writing linked file | ||
---|---|---|---|
Product: | binutils | Reporter: | Marcel Böhme <boehme.marcel> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nickc, thuanpv |
Priority: | P2 | ||
Version: | 2.28 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Marcel Böhme
2016-12-02 07:59:16 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d7f399a8de4c55eb841db6493597a587fac002de commit d7f399a8de4c55eb841db6493597a587fac002de Author: Nick Clifton <nickc@redhat.com> Date: Fri Dec 2 17:46:26 2016 +0000 Fix seg-fault in linker when passed a corrupt binary input file. PR lf/20908 * elflink.c (bfd_elf_final_link): Check for ELF flavour binaries when following indirect links. Hi Marcel, Thanks for reporting this bug. The problem was that the code to emit relocs was not checking the format of the input file before trying to read the ELF reloc section header... Patch applied, bug fixed. Cheers Nick The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a961cdd5f139d3c3e09170db52bd8df7dafae13f commit a961cdd5f139d3c3e09170db52bd8df7dafae13f Author: Alan Modra <amodra@gmail.com> Date: Thu Dec 15 21:29:44 2016 +1030 Linking non-ELF file broken by PR20908 fix PR ld/20968 PR ld/20908 * elflink.c (bfd_elf_final_link): Revert 2016-12-02 change. Move reloc counting code later after ELF flavour test. This is CVE-2017-7299 |