summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2019-9077.patch
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-04-29 14:26:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-12 09:13:39 +0100
commit92d7455b9553e9b07c16e57fdad966ce08e1dff5 (patch)
treecc0c1d99638938d67d3cfa7943a4d162dcd80abf /meta/recipes-devtools/binutils/binutils/CVE-2019-9077.patch
parentac7107f978e79c6b5ff18049fbed13318d498d58 (diff)
downloadpoky-92d7455b9553e9b07c16e57fdad966ce08e1dff5.tar.gz
binutils: fix CVE-2019-9074 CVE-2019-9075 CVE-2019-9076 CVE-2019-9077
(From OE-Core rev: 5445c22361b55603f7bd2fabd2d36d280ebee51e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.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/CVE-2019-9077.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2019-9077.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2019-9077.patch b/meta/recipes-devtools/binutils/binutils/CVE-2019-9077.patch
new file mode 100644
index 0000000000..11ecb71b2e
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2019-9077.patch
@@ -0,0 +1,37 @@
1From f7bbc8890de45df6eda0ddef5dd04f835f54eecf Mon Sep 17 00:00:00 2001
2From: Nick Clifton <nickc@redhat.com>
3Date: Wed, 20 Feb 2019 17:03:47 +0000
4Subject: [PATCH] Fix a illegal memory access fault when parsing a corrupt MIPS
5 option section using readelf.
6
7 PR 24243
8 * readelf.c (process_mips_specific): Check for an options section
9 that is too small to even contain a single option.
10
11Upstream-Status: Backport [https://github.com/bminor/binutils-gdb/commit/7fc0c668f2aceb8582d74db1ad2528e2bba8a921]
12CVE: CVE-2019-9077
13Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
14---
15 binutils/readelf.c | 6 ++++++
16 1 file changed, 6 insertions(+)
17
18diff --git a/binutils/readelf.c b/binutils/readelf.c
19index 9df3742..18ab806 100644
20--- a/binutils/readelf.c
21+++ b/binutils/readelf.c
22@@ -16179,6 +16179,12 @@ process_mips_specific (Filedata * filedata)
23 error (_("No MIPS_OPTIONS header found\n"));
24 return FALSE;
25 }
26+ /* PR 24243 */
27+ if (sect->sh_size < sizeof (* eopt))
28+ {
29+ error (_("The MIPS options section is too small.\n"));
30+ return FALSE;
31+ }
32
33 eopt = (Elf_External_Options *) get_data (NULL, filedata, options_offset, 1,
34 sect->sh_size, _("options"));
35--
362.7.4
37