summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2018-08-08 09:26:11 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 10:22:45 +0100
commite82b9a5096a9fc19ac979024c3e24868706ea4e3 (patch)
tree069af7eaeff427fbf16b99d3f754bbe58c028ca4
parente1a49c7e83f2be3967fb9aa4a1c6034152b4f8bb (diff)
downloadpoky-e82b9a5096a9fc19ac979024c3e24868706ea4e3.tar.gz
binutils: Security fix for CVE-2017-17123
Affects: <= 2.29.1 (From OE-Core rev: 520bc451e7727568ec7457ace7b1281493f9cbdc) Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.29.1.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-17123.patch33
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.29.1.inc b/meta/recipes-devtools/binutils/binutils-2.29.1.inc
index f80b59a9bf..8fe897e050 100644
--- a/meta/recipes-devtools/binutils/binutils-2.29.1.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.29.1.inc
@@ -64,6 +64,7 @@ SRC_URI = "\
64 file://CVE-2017-17121.patch \ 64 file://CVE-2017-17121.patch \
65 file://CVE-2017-17122.patch \ 65 file://CVE-2017-17122.patch \
66 file://CVE-2017-17125.patch \ 66 file://CVE-2017-17125.patch \
67 file://CVE-2017-17123.patch \
67" 68"
68S = "${WORKDIR}/git" 69S = "${WORKDIR}/git"
69 70
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-17123.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-17123.patch
new file mode 100644
index 0000000000..08412108da
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-17123.patch
@@ -0,0 +1,33 @@
1From 4581a1c7d304ce14e714b27522ebf3d0188d6543 Mon Sep 17 00:00:00 2001
2From: Nick Clifton <nickc@redhat.com>
3Date: Wed, 29 Nov 2017 17:12:12 +0000
4Subject: [PATCH] Check for a NULL symbol pointer when reading relocs from a
5 COFF based file.
6
7 PR 22509
8 * coffcode.h (coff_slurp_reloc_table): Check for a NULL symbol
9 pointer when processing relocs.
10
11Upstream-Status: Backport
12Affects: <= 2.29.1
13CVE: CVE-2017-17123
14Signed-off-by: Armin Kuster <akuster@mvista.com>
15
16---
17 bfd/ChangeLog | 6 ++++++
18 bfd/coffcode.h | 2 +-
19 2 files changed, 7 insertions(+), 1 deletion(-)
20
21Index: git/bfd/coffcode.h
22===================================================================
23--- git.orig/bfd/coffcode.h
24+++ git/bfd/coffcode.h
25@@ -5326,7 +5326,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_
26 #else
27 cache_ptr->address = dst.r_vaddr;
28
29- if (dst.r_symndx != -1)
30+ if (dst.r_symndx != -1 && symbols != NULL)
31 {
32 if (dst.r_symndx < 0 || dst.r_symndx >= obj_conv_table_size (abfd))
33 {