summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript/CVE-2023-38559.patch32
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb1
2 files changed, 33 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..2b2b85fa27
--- /dev/null
+++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-38559.patch
@@ -0,0 +1,32 @@
1From 34b0eec257c3a597e0515946f17fb973a33a7b5b Mon Sep 17 00:00:00 2001
2From: Chris Liddell <chris.liddell@artifex.com>
3Date: Mon, 17 Jul 2023 14:06:37 +0100
4Subject: [PATCH] Bug 706897: Copy pcx buffer overrun fix from
5 devices/gdevpcx.c
6
7Bounds check the buffer, before dereferencing the pointer.
8
9Upstream-Status: Backport [https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=d81b82c70bc1fb9991bb95f1201abb5dea55f57f]
10
11CVE: CVE-2023-38559
12
13Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
14---
15 base/gdevdevn.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/base/gdevdevn.c b/base/gdevdevn.c
19index f679127..66c771b 100644
20--- a/base/gdevdevn.c
21+++ b/base/gdevdevn.c
22@@ -1950,7 +1950,7 @@ devn_pcx_write_rle(const byte * from, const byte * end, int step, gp_file * file
23 byte data = *from;
24
25 from += step;
26- if (data != *from || from == end) {
27+ if (from >= end || data != *from) {
28 if (data >= 0xc0)
29 gp_fputc(0xc1, file);
30 } else {
31--
322.40.0
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb
index 48508fd6a2..ad0b008cab 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb
@@ -37,6 +37,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d
37 file://cve-2023-28879.patch \ 37 file://cve-2023-28879.patch \
38 file://CVE-2023-36664-0001.patch \ 38 file://CVE-2023-36664-0001.patch \
39 file://CVE-2023-36664-0002.patch \ 39 file://CVE-2023-36664-0002.patch \
40 file://CVE-2023-38559.patch \
40" 41"
41 42
42SRC_URI = "${SRC_URI_BASE} \ 43SRC_URI = "${SRC_URI_BASE} \