Package: elfutils / 0.168-1

Metadata

Package Version Patches format
elfutils 0.168-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
hppa_backend.diff | (download)

backends/Makefile.am | 7 5 + 2 - 0 !
backends/libebl_parisc.h | 9 9 + 0 - 0 !
backends/parisc_init.c | 73 73 + 0 - 0 !
backends/parisc_regs.c | 159 159 + 0 - 0 !
backends/parisc_reloc.def | 128 128 + 0 - 0 !
backends/parisc_retval.c | 213 213 + 0 - 0 !
backends/parisc_symbol.c | 112 112 + 0 - 0 !
libelf/elf.h | 11 11 + 0 - 0 !
8 files changed, 710 insertions(+), 2 deletions(-)

---
arm_backend.diff | (download)

backends/arm_init.c | 18 16 + 2 - 0 !
backends/arm_regs.c | 132 132 + 0 - 0 !
backends/arm_retval.c | 43 41 + 2 - 0 !
backends/libebl_arm.h | 9 9 + 0 - 0 !
libelf/elf.h | 11 11 + 0 - 0 !
tests/run-addrcfi.sh | 93 92 + 1 - 0 !
tests/run-allregs.sh | 95 94 + 1 - 0 !
tests/run-readelf-mixed-corenote.sh | 11 5 + 6 - 0 !
8 files changed, 400 insertions(+), 12 deletions(-)

---
mips_backend.diff | (download)

backends/Makefile.am | 8 6 + 2 - 0 !
backends/mips_init.c | 59 59 + 0 - 0 !
backends/mips_regs.c | 104 104 + 0 - 0 !
backends/mips_reloc.def | 79 79 + 0 - 0 !
backends/mips_retval.c | 321 321 + 0 - 0 !
backends/mips_symbol.c | 52 52 + 0 - 0 !
libebl/eblopenbackend.c | 2 2 + 0 - 0 !
7 files changed, 623 insertions(+), 2 deletions(-)

---
testsuite ignore elflint.diff | (download)

tests/run-elflint-self.sh | 2 1 + 1 - 0 !
tests/test-subr.sh | 15 15 + 0 - 0 !
2 files changed, 16 insertions(+), 1 deletion(-)

---
mips_readelf_w.patch | (download)

src/readelf.c | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 make readelf -w output debug information on mips
Bug-Debian: http://bugs.debian.org/662041
kfreebsd_path.patch | (download)

tests/run-native-test.sh | 6 6 + 0 - 0 !
1 file changed, 6 insertions(+)

---
0001 Ignore differences between mips machine identifiers.patch | (download)

backends/mips_init.c | 6 1 + 5 - 0 !
1 file changed, 1 insertion(+), 5 deletions(-)

 [patch 1/3] ignore differences between mips machine identifiers

Little endian binaries actually use EM_MIPS so you can't tell the endianness
from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the
kernel will not load binaries containing it).

Signed-off-by: James Cowgill <james410@cowgill.org.uk>

0002 Add support for mips64 abis in mips_retval.c.patch | (download)

backends/mips_retval.c | 104 94 + 10 - 0 !
1 file changed, 94 insertions(+), 10 deletions(-)

 [patch 2/3] add support for mips64 abis in mips_retval.c

Signed-off-by: James Cowgill <james410@cowgill.org.uk>

0003 Add mips n64 relocation format hack.patch | (download)

libelf/gelf_getrel.c | 25 23 + 2 - 0 !
libelf/gelf_getrela.c | 25 23 + 2 - 0 !
libelf/gelf_update_rel.c | 20 19 + 1 - 0 !
libelf/gelf_update_rela.c | 20 19 + 1 - 0 !
src/strip.c | 17 17 + 0 - 0 !
5 files changed, 101 insertions(+), 6 deletions(-)

 [patch 3/3] add mips n64 relocation format hack

hurd_path.patch | (download)

tests/run-native-test.sh | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

---
ignore_strmerge.diff | (download)

tests/run-strip-strmerge.sh | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
CVE 2017 7607.patch | (download)

src/readelf.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] readelf: fix off by one sanity check in handle_gnu_hash.

We sanity check to make sure we don't index outside the chain array
by testing inner > max_nsyms. But inner is a zero-based index, while
max_nsyms is the maximum number. Change the check to inner >= max_nsyms.

https://sourceware.org/bugzilla/show_bug.cgi?id=21299

Signed-off-by: Mark Wielaard <mark@klomp.org>

CVE 2017 7608.patch | (download)

libdwfl/linux-core-attach.c | 9 6 + 3 - 0 !
src/elfcmp.c | 6 4 + 2 - 0 !
src/readelf.c | 2 1 + 1 - 0 !
3 files changed, 11 insertions(+), 6 deletions(-)

 [patch] use the empty string for note names with zero size (without
 any data).

ELF notes can have a zero sized name. In which case there is no data at
all (so also no zero terminator). Make sure to use the empty string for
such notes if the code does not otherwise explicitly check n_namesz.

https://sourceware.org/bugzilla/show_bug.cgi?id=21300

Signed-off-by: Mark Wielaard <mark@klomp.org>

CVE 2017 7609.patch | (download)

libelf/elf_compress.c | 9 9 + 0 - 0 !
1 file changed, 9 insertions(+)

 [patch] libelf: check compression ratio before trying to allocate
 output buffer.

The maximum compression factor (http://www.zlib.net/zlib_tech.html) is
1032:1. Add a sanity check for that before trying to allocate lots of
memory and trying to decompress lots of bogus data.

https://sourceware.org/bugzilla/show_bug.cgi?id=21301

Signed-off-by: Mark Wielaard <mark@klomp.org>

CVE 2017 7610.patch | (download)

src/elflint.c | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 [patch] elflint: don't check section group without flags word.

https://sourceware.org/bugzilla/show_bug.cgi?id=21320

Signed-off-by: Mark Wielaard <mark@klomp.org>

CVE 2017 7611.patch | (download)

src/elflint.c | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 [patch] elflint: check symbol table data is big enough before
 checking.

Before checking symbol index zero we should make sure the data size
is big enough.

https://sourceware.org/bugzilla/show_bug.cgi?id=21310

Signed-off-by: Mark Wielaard <mark@klomp.org>

CVE 2017 7612.patch | (download)

src/elflint.c | 32 20 + 12 - 0 !
1 file changed, 20 insertions(+), 12 deletions(-)

 [patch] elflint: don't trust sh_entsize when checking hash sections.

Calculate and use the expected entsize instead of relying on the one
given by the ELF file section header. Return early if there isn't enough
data in the section to check the full hash table.

https://sourceware.org/bugzilla/show_bug.cgi?id=21311

Signed-off-by: Mark Wielaard <mark@klomp.org>

CVE 2017 7613.patch | (download)

src/elflint.c | 26 26 + 0 - 0 !
1 file changed, 26 insertions(+)

 [patch] elflint: sanity check the number of phdrs and shdrs
 available.

Make sure we can at least read the shnum sections or phnum segments.
Limit the number we do check to those we can actually read.

https://sourceware.org/bugzilla/show_bug.cgi?id=21312

Signed-off-by: Mark Wielaard <mark@klomp.org>