diff options
author | Muminul Islam <misla011@fiu.edu> | 2019-10-29 10:47:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-30 13:47:54 +0000 |
commit | 2559517fafd6058ccf655eebc14e3c23003246a5 (patch) | |
tree | 2f81f491bf86167e908f378f7ad3fcd2aef7e988 | |
parent | f3eae2a4f70949c92b9a8293cddcd421cb3d9673 (diff) | |
download | poky-2559517fafd6058ccf655eebc14e3c23003246a5.tar.gz |
libcroco: Fix two CVEs
CVE: CVE-2017-8834 CVE-2017-8871
(From OE-Core rev: fe2d5b0d56201110323911d206243fdcc7f80115)
Signed-off-by: Muminul Islam <muislam@microsoft.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/libcroco/libcroco/CVE-2017-8834_71.patch | 38 | ||||
-rw-r--r-- | meta/recipes-support/libcroco/libcroco_0.6.12.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/libcroco/libcroco/CVE-2017-8834_71.patch b/meta/recipes-support/libcroco/libcroco/CVE-2017-8834_71.patch new file mode 100644 index 0000000000..cdfc9cf5e6 --- /dev/null +++ b/meta/recipes-support/libcroco/libcroco/CVE-2017-8834_71.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 38bdf8e956218dd6a72942229cf39ef8e45dd28f Mon Sep 17 00:00:00 2001 | ||
2 | From: Mike Gorse <mgorse@alum.wpi.edu> | ||
3 | Date: Thu, 2 May 2019 10:54:43 -0500 | ||
4 | Subject: [PATCH] cr_utils_read_char_from_utf8_buf: move past invalid UTF-8 | ||
5 | Reply-To: muislam@microsoft.com; Content-Type: text/plain; charset="utf-8" | ||
6 | Content-Transfer-Encoding: 8bit | ||
7 | |||
8 | Otherwise, the offending character is never consumed, possibly leading | ||
9 | to an infinite loop. | ||
10 | |||
11 | https://bugzilla.gnome.org/show_bug.cgi?id=782647 | ||
12 | |||
13 | CVE: CVE-2017-8834 CVE-2017-8871 | ||
14 | |||
15 | Upstream-Status: Backport | ||
16 | |||
17 | Signed-off-by: Muminul Islam <muislam@microsoft.com> | ||
18 | |||
19 | Upstream commit: https://bug782647.bugzilla-attachments.gnome.org/attachment.cgi?id=374219 | ||
20 | --- | ||
21 | src/cr-utils.c | 1 + | ||
22 | 1 file changed, 1 insertion(+) | ||
23 | |||
24 | diff --git a/src/cr-utils.c b/src/cr-utils.c | ||
25 | index 2420cec..6cf4849 100644 | ||
26 | --- a/src/cr-utils.c | ||
27 | +++ b/src/cr-utils.c | ||
28 | @@ -505,6 +505,7 @@ cr_utils_read_char_from_utf8_buf (const guchar * a_in, | ||
29 | |||
30 | } else { | ||
31 | /*BAD ENCODING */ | ||
32 | + nb_bytes_2_decode = 1; | ||
33 | goto end; | ||
34 | } | ||
35 | |||
36 | -- | ||
37 | 2.23.0 | ||
38 | |||
diff --git a/meta/recipes-support/libcroco/libcroco_0.6.12.bb b/meta/recipes-support/libcroco/libcroco_0.6.12.bb index f95a583134..85a120d80b 100644 --- a/meta/recipes-support/libcroco/libcroco_0.6.12.bb +++ b/meta/recipes-support/libcroco/libcroco_0.6.12.bb | |||
@@ -18,6 +18,7 @@ inherit gnomebase gtk-doc binconfig-disabled | |||
18 | 18 | ||
19 | SRC_URI += "file://CVE-2017-7960.patch \ | 19 | SRC_URI += "file://CVE-2017-7960.patch \ |
20 | file://CVE-2017-7961.patch \ | 20 | file://CVE-2017-7961.patch \ |
21 | file://CVE-2017-8834_71.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | SRC_URI[archive.md5sum] = "bc0984fce078ba2ce29f9500c6b9ddce" | 24 | SRC_URI[archive.md5sum] = "bc0984fce078ba2ce29f9500c6b9ddce" |