summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/file/CVE-2019-8904.patch
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2019-05-31 11:06:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-27 18:05:18 +0100
commit4faf6e9e07b366b7a4dbc28ae3873a75212ebc31 (patch)
tree92749dfb902ba42595410191f9a68c4787bf60d4 /meta/recipes-devtools/file/file/CVE-2019-8904.patch
parent015bfc5971120e3483572cb4eaf0cb7c15b64349 (diff)
downloadpoky-4faf6e9e07b366b7a4dbc28ae3873a75212ebc31.tar.gz
file: Multiple Secruity fixes
Source: https://github.com/file MR: 97573, 97578, 97583, 97588 Type: Security Fix Disposition: Backport from https://github.com/file/file ChangeID: 159e532d518623f19ba777c8edc24d2dc7e3a4e9 Description: CVE-2019-8905 is the same fix as CVE-2019-8907 Affects < 5.36.0 Fixes: CVE-2019-8904 CVE-2019-8906 CVE-2019-8906 CVE-2019-8907 (From OE-Core rev: 3d7375eb2e459b891b4ba16c1fc486afbfecef2c) 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/file/file/CVE-2019-8904.patch')
-rw-r--r--meta/recipes-devtools/file/file/CVE-2019-8904.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/file/CVE-2019-8904.patch b/meta/recipes-devtools/file/file/CVE-2019-8904.patch
new file mode 100644
index 0000000000..5c3d6f73a4
--- /dev/null
+++ b/meta/recipes-devtools/file/file/CVE-2019-8904.patch
@@ -0,0 +1,30 @@
1From 94b7501f48e134e77716e7ebefc73d6bbe72ba55 Mon Sep 17 00:00:00 2001
2From: Christos Zoulas <christos@zoulas.com>
3Date: Mon, 18 Feb 2019 17:30:41 +0000
4Subject: [PATCH] PR/62: spinpx: Avoid non-nul-terminated string read.
5
6Upstream-Status: Backport
7CVE: CVE-2019-8904
8Affects < 5.36
9[Fixup for thud context]
10Signed-off-by: Armin Kuster <akuster@mvista.com>
11
12---
13 src/readelf.c | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16Index: git/src/readelf.c
17===================================================================
18--- git.orig/src/readelf.c
19+++ git/src/readelf.c
20@@ -558,8 +558,8 @@ do_bid_note(struct magic_set *ms, unsign
21 }
22 if (namesz == 4 && strcmp((char *)&nbuf[noff], "Go") == 0 &&
23 type == NT_GO_BUILD_ID && descsz < 128) {
24- if (file_printf(ms, ", Go BuildID=%s",
25- (char *)&nbuf[doff]) == -1)
26+ if (file_printf(ms, ", Go BuildID=%.*s",
27+ CAST(int, descsz), CAST(char *, &nbuf[doff])) == -1)
28 return 1;
29 return 1;
30 }