diff options
author | Armin Kuster <akuster808@gmail.com> | 2015-03-06 13:43:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-10 11:54:04 +0000 |
commit | 7c0d759c5529daf15482dfcb42bd9c6c4884958a (patch) | |
tree | 9df730feba0958a1c5eb9bbbfb278ed4ad9fa846 /meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch | |
parent | 9ca89fe495349099125b9bef4888ed1da7ea230d (diff) | |
download | poky-7c0d759c5529daf15482dfcb42bd9c6c4884958a.tar.gz |
binutils: several security fixes
CVE-2014-8484
CVE-2014-8485
CVE-2014-8501
CVE-2014-8502
CVE-2014-8503
CVE-2014-8504
CVE-2014-8737
and one supporting patch.
[Yocto # 7084]
(From OE-Core rev: 859fb4d9ec6974be9ce755e4ffefd9b199f3604c)
(From OE-Core rev: d2b2d8c9ce3ef16ab053bd19a5705b01402b76ba)
(From OE-Core rev: 2343cdb81ddef875dc3d52b07565b4ce9b3a14a4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch new file mode 100644 index 0000000000..b4d1d1ff61 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | CVE-2014-8504 fix. | ||
4 | |||
5 | [YOCTO #7084] | ||
6 | |||
7 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
8 | |||
9 | From 708d7d0d11f0f2d776171979aa3479e8e12a38a0 Mon Sep 17 00:00:00 2001 | ||
10 | From: Nick Clifton <nickc@redhat.com> | ||
11 | Date: Tue, 28 Oct 2014 10:48:14 +0000 | ||
12 | Subject: [PATCH] This patch fixes a flaw in the SREC parser which could cause | ||
13 | a stack overflow and potential secuiryt breach. | ||
14 | |||
15 | PR binutils/17510 | ||
16 | * srec.c (srec_bad_byte): Increase size of buf to allow for | ||
17 | negative values. | ||
18 | (srec_scan): Use an unsigned char buffer to hold header bytes. | ||
19 | --- | ||
20 | bfd/ChangeLog | 8 ++++++++ | ||
21 | bfd/elf.c | 2 +- | ||
22 | bfd/peXXigen.c | 1 - | ||
23 | bfd/srec.c | 4 ++-- | ||
24 | 4 files changed, 11 insertions(+), 4 deletions(-) | ||
25 | |||
26 | Index: binutils-2.24/bfd/ChangeLog | ||
27 | =================================================================== | ||
28 | --- binutils-2.24.orig/bfd/ChangeLog | ||
29 | +++ binutils-2.24/bfd/ChangeLog | ||
30 | @@ -1,3 +1,11 @@ | ||
31 | +2014-10-28 Andreas Schwab <schwab@suse.de> | ||
32 | + Nick Clifton <nickc@redhat.com> | ||
33 | + | ||
34 | + PR binutils/17510 | ||
35 | + * srec.c (srec_bad_byte): Increase size of buf to allow for | ||
36 | + negative values. | ||
37 | + (srec_scan): Use an unsigned char buffer to hold header bytes. | ||
38 | + | ||
39 | 2014-10-30 Nick Clifton <nickc@redhat.com> | ||
40 | |||
41 | PR binutils/17512 | ||
42 | Index: binutils-2.24/bfd/peXXigen.c | ||
43 | =================================================================== | ||
44 | --- binutils-2.24.orig/bfd/peXXigen.c | ||
45 | +++ binutils-2.24/bfd/peXXigen.c | ||
46 | @@ -471,7 +471,6 @@ _bfd_XXi_swap_aouthdr_in (bfd * abfd, | ||
47 | a->NumberOfRvaAndSizes = 0; | ||
48 | } | ||
49 | |||
50 | - | ||
51 | for (idx = 0; idx < a->NumberOfRvaAndSizes; idx++) | ||
52 | { | ||
53 | /* If data directory is empty, rva also should be 0. */ | ||
54 | Index: binutils-2.24/bfd/srec.c | ||
55 | =================================================================== | ||
56 | --- binutils-2.24.orig/bfd/srec.c | ||
57 | +++ binutils-2.24/bfd/srec.c | ||
58 | @@ -248,7 +248,7 @@ srec_bad_byte (bfd *abfd, | ||
59 | } | ||
60 | else | ||
61 | { | ||
62 | - char buf[10]; | ||
63 | + char buf[40]; | ||
64 | |||
65 | if (! ISPRINT (c)) | ||
66 | sprintf (buf, "\\%03o", (unsigned int) c); | ||
67 | @@ -454,7 +454,7 @@ srec_scan (bfd *abfd) | ||
68 | case 'S': | ||
69 | { | ||
70 | file_ptr pos; | ||
71 | - char hdr[3]; | ||
72 | + unsigned char hdr[3]; | ||
73 | unsigned int bytes, min_bytes; | ||
74 | bfd_vma address; | ||
75 | bfd_byte *data; | ||