diff options
| author | Thiruvadi Rajaraman <trajaraman@mvista.com> | 2017-09-21 19:36:14 +0530 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-07 17:10:08 +0000 |
| commit | 9753c5aa54f54bb82a80dc9d5dc3e52d34bc8b91 (patch) | |
| tree | 3ed3a16710628a49f0ec3eaae8d4649a54ae2e67 /meta/recipes-devtools | |
| parent | 1e97a1e6619a2fcb11b77eb117a79edeb552d66c (diff) | |
| download | poky-9753c5aa54f54bb82a80dc9d5dc3e52d34bc8b91.tar.gz | |
binutils: CVE-2017-9756
Source: binutils-gdb.git
MR: 73919
Type: Security Fix
Disposition: Backport from binutils-2_29
ChangeID: bd4a354c2a1bd14e26232fc88a736950aa19403a
Description:
Prevent address violation problem when disassembling corrupt aarch64 binary.
PR binutils/21595
* aarch64-dis.c (aarch64_ext_ldst_reglist): Check for an out of
range value.
Affects: <= 2.28
Author: Nick Clifton <nickc@redhat.com>
(From OE-Core rev: f48d4c21673c16760c5a9ff51934127339234f85)
Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com>
Reviewed-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.27.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils/CVE-2017-9756.patch | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.27.inc b/meta/recipes-devtools/binutils/binutils-2.27.inc index 961364c81c..70d4065a15 100644 --- a/meta/recipes-devtools/binutils/binutils-2.27.inc +++ b/meta/recipes-devtools/binutils/binutils-2.27.inc | |||
| @@ -88,6 +88,7 @@ SRC_URI = "\ | |||
| 88 | file://CVE-2017-9753_9754.patch \ | 88 | file://CVE-2017-9753_9754.patch \ |
| 89 | file://CVE-2017-9755_1.patch \ | 89 | file://CVE-2017-9755_1.patch \ |
| 90 | file://CVE-2017-9755_2.patch \ | 90 | file://CVE-2017-9755_2.patch \ |
| 91 | file://CVE-2017-9756.patch \ | ||
| 91 | " | 92 | " |
| 92 | S = "${WORKDIR}/git" | 93 | S = "${WORKDIR}/git" |
| 93 | 94 | ||
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9756.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9756.patch new file mode 100644 index 0000000000..e40a26eb3c --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9756.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | commit cd3ea7c69acc5045eb28f9bf80d923116e15e4f5 | ||
| 2 | Author: Nick Clifton <nickc@redhat.com> | ||
| 3 | Date: Thu Jun 15 13:26:54 2017 +0100 | ||
| 4 | |||
| 5 | Prevent address violation problem when disassembling corrupt aarch64 binary. | ||
| 6 | |||
| 7 | PR binutils/21595 | ||
| 8 | * aarch64-dis.c (aarch64_ext_ldst_reglist): Check for an out of | ||
| 9 | range value. | ||
| 10 | |||
| 11 | Upstream-Status: Backport | ||
| 12 | |||
| 13 | CVE: CVE-2017-9756 | ||
| 14 | Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com> | ||
| 15 | |||
| 16 | Index: git/opcodes/aarch64-dis.c | ||
| 17 | =================================================================== | ||
| 18 | --- git.orig/opcodes/aarch64-dis.c 2017-09-21 15:48:27.154646380 +0530 | ||
| 19 | +++ git/opcodes/aarch64-dis.c 2017-09-21 15:48:27.134646104 +0530 | ||
| 20 | @@ -381,6 +381,9 @@ | ||
| 21 | info->reglist.first_regno = extract_field (FLD_Rt, code, 0); | ||
| 22 | /* opcode */ | ||
| 23 | value = extract_field (FLD_opcode, code, 0); | ||
| 24 | + /* PR 21595: Check for a bogus value. */ | ||
| 25 | + if (value >= ARRAY_SIZE (data)) | ||
| 26 | + return 0; | ||
| 27 | if (expected_num != data[value].num_elements || data[value].is_reserved) | ||
| 28 | return 0; | ||
| 29 | info->reglist.num_regs = data[value].num_regs; | ||
| 30 | Index: git/opcodes/ChangeLog | ||
| 31 | =================================================================== | ||
| 32 | --- git.orig/opcodes/ChangeLog 2017-09-21 15:45:32.264491166 +0530 | ||
| 33 | +++ git/opcodes/ChangeLog 2017-09-21 15:49:53.751803571 +0530 | ||
| 34 | @@ -1,3 +1,9 @@ | ||
| 35 | +2017-06-15 Nick Clifton <nickc@redhat.com> | ||
| 36 | + | ||
| 37 | + PR binutils/21595 | ||
| 38 | + * aarch64-dis.c (aarch64_ext_ldst_reglist): Check for an out of | ||
| 39 | + range value. | ||
| 40 | + | ||
| 41 | 2017-06-15 H.J. Lu <hongjiu.lu@intel.com> | ||
| 42 | |||
| 43 | PR binutils/21594 | ||
