diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2017-9755_1.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/CVE-2017-9755_1.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9755_1.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9755_1.patch new file mode 100644 index 0000000000..3ad32189b1 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9755_1.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | commit 0d96e4df4812c3bad77c229dfef47a9bc115ac12 | ||
2 | Author: H.J. Lu <hjl.tools@gmail.com> | ||
3 | Date: Thu Jun 15 06:40:17 2017 -0700 | ||
4 | |||
5 | i386-dis: Check valid bnd register | ||
6 | |||
7 | Since there are only 4 bnd registers, return "(bad)" for register | ||
8 | number > 3. | ||
9 | |||
10 | PR binutils/21594 | ||
11 | * i386-dis.c (OP_E_register): Check valid bnd register. | ||
12 | (OP_G): Likewise. | ||
13 | |||
14 | Upstream-Status: Backport | ||
15 | |||
16 | CVE: CVE-2017-9755 | ||
17 | Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com> | ||
18 | |||
19 | Index: git/opcodes/i386-dis.c | ||
20 | =================================================================== | ||
21 | --- git.orig/opcodes/i386-dis.c 2017-09-21 15:38:46.907182525 +0530 | ||
22 | +++ git/opcodes/i386-dis.c 2017-09-21 15:38:54.703174976 +0530 | ||
23 | @@ -15211,6 +15211,11 @@ | ||
24 | names = address_mode == mode_64bit ? names64 : names32; | ||
25 | break; | ||
26 | case bnd_mode: | ||
27 | + if (reg > 0x3) | ||
28 | + { | ||
29 | + oappend ("(bad)"); | ||
30 | + return; | ||
31 | + } | ||
32 | names = names_bnd; | ||
33 | break; | ||
34 | case indir_v_mode: | ||
35 | @@ -15751,6 +15756,11 @@ | ||
36 | oappend (names64[modrm.reg + add]); | ||
37 | break; | ||
38 | case bnd_mode: | ||
39 | + if (modrm.reg > 0x3) | ||
40 | + { | ||
41 | + oappend ("(bad)"); | ||
42 | + return; | ||
43 | + } | ||
44 | oappend (names_bnd[modrm.reg]); | ||
45 | break; | ||
46 | case v_mode: | ||
47 | Index: git/opcodes/ChangeLog | ||
48 | =================================================================== | ||
49 | --- git.orig/opcodes/ChangeLog 2017-09-21 15:38:54.531175122 +0530 | ||
50 | +++ git/opcodes/ChangeLog 2017-09-21 15:45:32.264491166 +0530 | ||
51 | @@ -1,3 +1,9 @@ | ||
52 | +2017-06-15 H.J. Lu <hongjiu.lu@intel.com> | ||
53 | + | ||
54 | + PR binutils/21594 | ||
55 | + * i386-dis.c (OP_E_register): Check valid bnd register. | ||
56 | + (OP_G): Likewise. | ||
57 | + | ||
58 | 2017-06-15 Nick Clifton <nickc@redhat.com> | ||
59 | |||
60 | PR binutils/21586 | ||