diff options
author | Catalin Enache <catalin.enache@windriver.com> | 2017-05-29 14:23:08 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-05 23:30:22 +0100 |
commit | 30a1a8e44896f3095830f9e85725414305c27b3b (patch) | |
tree | 60fab7771e24f1daeb6758e4ee5dfc7428c374d3 /meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch | |
parent | 31e9be198160dbeb3d6ab10a3324457f9e502537 (diff) | |
download | poky-30a1a8e44896f3095830f9e85725414305c27b3b.tar.gz |
ghostscript: CVE-2016-7977, CVE-2016-7978, CVE-2016-7979, CVE-2017-9216
Ghostscript before 9.21 might allow remote attackers to bypass the SAFER
mode protection mechanism and consequently read arbitrary files via the
use of the .libfile operator in a crafted postscript document.
Use-after-free vulnerability in Ghostscript 9.20 might allow remote
attackers to execute arbitrary code via vectors related to a reference
leak in .setdevice.
Ghostscript before 9.21 might allow remote attackers to bypass the SAFER
mode protection mechanism and consequently execute arbitrary code by
leveraging type confusion in .initialize_dsc_parser.
libjbig2dec.a in Artifex jbig2dec 0.13, as used in MuPDF and Ghostscript,
has a NULL pointer dereference in the jbig2_huffman_get function in
jbig2_huffman.c. For example, the jbig2dec utility will
crash (segmentation fault) when parsing an invalid file.
References:
https://nvd.nist.gov/vuln/detail/CVE-2016-7977
https://nvd.nist.gov/vuln/detail/CVE-2016-7978
https://nvd.nist.gov/vuln/detail/CVE-2016-7979
https://nvd.nist.gov/vuln/detail/CVE-2017-9216
Upstream patches:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=8abd22010eb4db0fb1b10e430d5f5d83e015ef70
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=6f749c0c44e7b9e09737b9f29edf29925a34f0cf
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=875a0095f37626a721c7ff57d606a0f95af03913
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=3ebffb1d96ba0cacec23016eccb4047dab365853
(From OE-Core rev: 584dfa2f780d5785aaff01f84fbabc18b3478d76)
(From OE-Core rev: 6fed7cd6077c46ad2213226d4675fad9b10ab024)
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch')
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch new file mode 100644 index 0000000000..668f205968 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 6f749c0c44e7b9e09737b9f29edf29925a34f0cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Chris Liddell <chris.liddell@artifex.com> | ||
3 | Date: Wed, 5 Oct 2016 09:59:25 +0100 | ||
4 | Subject: [PATCH] Bug 697179: Reference count device icc profile | ||
5 | |||
6 | when copying a device | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | CVE: CVE-2016-7978 | ||
10 | |||
11 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | ||
12 | --- | ||
13 | base/gsdevice.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/base/gsdevice.c b/base/gsdevice.c | ||
17 | index 778106f..aea986a 100644 | ||
18 | --- a/base/gsdevice.c | ||
19 | +++ b/base/gsdevice.c | ||
20 | @@ -614,6 +614,7 @@ gx_device_init(gx_device * dev, const gx_device * proto, gs_memory_t * mem, | ||
21 | dev->memory = mem; | ||
22 | dev->retained = !internal; | ||
23 | rc_init(dev, mem, (internal ? 0 : 1)); | ||
24 | + rc_increment(dev->icc_struct); | ||
25 | } | ||
26 | |||
27 | void | ||
28 | -- | ||
29 | 2.10.2 | ||
30 | |||