summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.28.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-9747.patch43
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.28.inc b/meta/recipes-devtools/binutils/binutils-2.28.inc
index 235306ba5e..6822adbd9a 100644
--- a/meta/recipes-devtools/binutils/binutils-2.28.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.28.inc
@@ -58,6 +58,7 @@ SRC_URI = "\
58 file://CVE-2017-9744.patch \ 58 file://CVE-2017-9744.patch \
59 file://CVE-2017-9745.patch \ 59 file://CVE-2017-9745.patch \
60 file://CVE-2017-9746.patch \ 60 file://CVE-2017-9746.patch \
61 file://CVE-2017-9747.patch \
61" 62"
62S = "${WORKDIR}/git" 63S = "${WORKDIR}/git"
63 64
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9747.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9747.patch
new file mode 100644
index 0000000000..41ead54a98
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9747.patch
@@ -0,0 +1,43 @@
1From 62b76e4b6e0b4cb5b3e0053d1de4097b32577049 Mon Sep 17 00:00:00 2001
2From: Nick Clifton <nickc@redhat.com>
3Date: Thu, 15 Jun 2017 13:08:47 +0100
4Subject: [PATCH] Fix address violation parsing a corrupt ieee binary.
5
6 PR binutils/21581
7 (ieee_archive_p): Use a static buffer to avoid compiler bugs.
8
9Upstream-Status: Backport
10CVE: CVE-2017-9747
11Signed-off-by: Armin Kuster <akuster@mvista.com>
12
13---
14 bfd/ChangeLog | 2 ++
15 bfd/ieee.c | 2 +-
16 2 files changed, 3 insertions(+), 1 deletion(-)
17
18Index: git/bfd/ieee.c
19===================================================================
20--- git.orig/bfd/ieee.c
21+++ git/bfd/ieee.c
22@@ -1357,7 +1357,7 @@ ieee_archive_p (bfd *abfd)
23 {
24 char *library;
25 unsigned int i;
26- unsigned char buffer[512];
27+ static unsigned char buffer[512];
28 file_ptr buffer_offset = 0;
29 ieee_ar_data_type *save = abfd->tdata.ieee_ar_data;
30 ieee_ar_data_type *ieee;
31Index: git/bfd/ChangeLog
32===================================================================
33--- git.orig/bfd/ChangeLog
34+++ git/bfd/ChangeLog
35@@ -1,3 +1,8 @@
36+2017-06-15 Nick Clifton <nickc@redhat.com>
37+
38+ PR binutils/21581
39+ (ieee_archive_p): Likewise.
40+
41 2017-06-14 Nick Clifton <nickc@redhat.com>
42
43 PR binutils/21578