summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.27.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-7301.patch52
2 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.27.inc b/meta/recipes-devtools/binutils/binutils-2.27.inc
index 54cdcc7bb5..59e46b8bf4 100644
--- a/meta/recipes-devtools/binutils/binutils-2.27.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.27.inc
@@ -63,6 +63,7 @@ SRC_URI = "\
63 file://CVE-2017-7224.patch \ 63 file://CVE-2017-7224.patch \
64 file://CVE-2017-7225.patch \ 64 file://CVE-2017-7225.patch \
65 file://CVE-2017-7227.patch \ 65 file://CVE-2017-7227.patch \
66 file://CVE-2017-7301.patch \
66" 67"
67S = "${WORKDIR}/git" 68S = "${WORKDIR}/git"
68 69
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-7301.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-7301.patch
new file mode 100644
index 0000000000..36b4259fde
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-7301.patch
@@ -0,0 +1,52 @@
1commit daae68f4f372e0618d6b9c64ec0f1f74eae6ab3d
2Author: Nick Clifton <nickc@redhat.com>
3Date: Mon Dec 5 12:25:34 2016 +0000
4
5 Fix seg-fault in linker parsing a corrupt input file.
6
7 PR ld/20924
8 (aout_link_add_symbols): Fix off by one error checking for
9 overflow of string offset.
10
11Upstream-Status: Backport
12
13CVE: CVE-2017-7301
14Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com>
15
16Index: git/bfd/ChangeLog
17===================================================================
18--- git.orig/bfd/ChangeLog 2017-09-04 15:42:15.244812577 +0530
19+++ git/bfd/ChangeLog 2017-09-04 15:51:36.573466525 +0530
20@@ -120,6 +120,10 @@
21 * peicode.h (pe_ILF_object_p): Use strnlen to avoid running over
22 the end of the string buffer.
23
24+ PR ld/20924
25+ (aout_link_add_symbols): Fix off by one error checking for
26+ overflow of string offset.
27+
28 2016-12-01 Nick Clifton <nickc@redhat.com>
29
30 PR binutils/20891
31Index: git/bfd/aoutx.h
32===================================================================
33--- git.orig/bfd/aoutx.h 2017-09-04 15:42:15.244812577 +0530
34+++ git/bfd/aoutx.h 2017-09-04 15:49:36.500479341 +0530
35@@ -3091,7 +3091,7 @@
36 BFD_ASSERT (p + 1 < pend);
37 ++p;
38 /* PR 19629: Corrupt binaries can contain illegal string offsets. */
39- if (GET_WORD (abfd, p->e_strx) > obj_aout_external_string_size (abfd))
40+ if (GET_WORD (abfd, p->e_strx) >= obj_aout_external_string_size (abfd))
41 return FALSE;
42 string = strings + GET_WORD (abfd, p->e_strx);
43 section = bfd_ind_section_ptr;
44@@ -3127,7 +3127,7 @@
45 ++p;
46 string = name;
47 /* PR 19629: Corrupt binaries can contain illegal string offsets. */
48- if (GET_WORD (abfd, p->e_strx) > obj_aout_external_string_size (abfd))
49+ if (GET_WORD (abfd, p->e_strx) >= obj_aout_external_string_size (abfd))
50 return FALSE;
51 name = strings + GET_WORD (abfd, p->e_strx);
52 section = bfd_und_section_ptr;