diff options
author | Chee Yang Lee <chee.yang.lee@intel.com> | 2023-08-17 17:34:57 +0800 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-08-30 04:52:35 -1000 |
commit | 915fd3ca17e0b6b7d4b902a9fa2520276f6a1b0d (patch) | |
tree | 68bb096168a46a715e42fc4507fa37dbf7a2aa4a | |
parent | b2e02ea2beb600e110339857fdcb602ffd271b89 (diff) | |
download | poky-915fd3ca17e0b6b7d4b902a9fa2520276f6a1b0d.tar.gz |
ghostscript: fix CVE-2023-38559
(From OE-Core rev: 9552f934ae5305b9154f1560d4823b168457b784)
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/CVE-2023-38559.patch | 31 | ||||
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-38559.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-38559.patch new file mode 100644 index 0000000000..4ef71cba7b --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-38559.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | CVE: CVE-2023-38559 | ||
2 | Upstream-Status: Backport [ https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=d81b82c70bc1 ] | ||
3 | Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> | ||
4 | |||
5 | From d81b82c70bc1fb9991bb95f1201abb5dea55f57f Mon Sep 17 00:00:00 2001 | ||
6 | From: Chris Liddell <chris.liddell@artifex.com> | ||
7 | Date: Mon, 17 Jul 2023 14:06:37 +0100 | ||
8 | Subject: [PATCH] Bug 706897: Copy pcx buffer overrun fix from | ||
9 | devices/gdevpcx.c | ||
10 | |||
11 | Bounds check the buffer, before dereferencing the pointer. | ||
12 | --- | ||
13 | base/gdevdevn.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/base/gdevdevn.c b/base/gdevdevn.c | ||
17 | index 7b14d9c71..6351fb77a 100644 | ||
18 | --- a/base/gdevdevn.c | ||
19 | +++ b/base/gdevdevn.c | ||
20 | @@ -1983,7 +1983,7 @@ devn_pcx_write_rle(const byte * from, const byte * end, int step, gp_file * file | ||
21 | byte data = *from; | ||
22 | |||
23 | from += step; | ||
24 | - if (data != *from || from == end) { | ||
25 | + if (from >= end || data != *from) { | ||
26 | if (data >= 0xc0) | ||
27 | gp_fputc(0xc1, file); | ||
28 | } else { | ||
29 | -- | ||
30 | 2.34.1 | ||
31 | |||
diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb b/meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb index 9a900ee04f..9e2cd01ff4 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.0.0.bb | |||
@@ -36,6 +36,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d | |||
36 | file://cross-compile.patch \ | 36 | file://cross-compile.patch \ |
37 | file://cve-2023-28879.patch \ | 37 | file://cve-2023-28879.patch \ |
38 | file://cve-2023-36664.patch \ | 38 | file://cve-2023-36664.patch \ |
39 | file://CVE-2023-38559.patch \ | ||
39 | " | 40 | " |
40 | 41 | ||
41 | SRC_URI = "${SRC_URI_BASE} \ | 42 | SRC_URI = "${SRC_URI_BASE} \ |