diff options
author | Archana Polampalli <archana.polampalli@windriver.com> | 2024-05-29 05:41:20 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-06-01 19:07:52 -0700 |
commit | b0b5da10e13fe264e34a60e82ab06139f7ba7fd5 (patch) | |
tree | 488551944c17e7b94b1d791830f3896270381c58 | |
parent | 2db6158ba5446c1e2223efb8f5c58e1d89174843 (diff) | |
download | poky-b0b5da10e13fe264e34a60e82ab06139f7ba7fd5.tar.gz |
ghostscript: fix CVE-2023-52722
(From OE-Core rev: 66228a9e8177e70a5653b61742836a3ad83e78af)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/CVE-2023-52722.patch | 43 | ||||
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-52722.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-52722.patch new file mode 100644 index 0000000000..8fbfc9ef09 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-52722.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From 1ff9a695947967d2d327c45bf5145dd381fc1745 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chris Liddell <chris.liddell@artifex.com> | ||
3 | Date: Tue, 12 Sep 2023 10:46:10 +0100 | ||
4 | Subject: [PATCH 5/5] In SAFER (default) don't allow eexec seeds other than the | ||
5 | Type 1 standard | ||
6 | |||
7 | CVE: CVE-2023-52722 | ||
8 | |||
9 | Upstream-Status: Backport [https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=1ff9a695947967d2d327] | ||
10 | |||
11 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
12 | --- | ||
13 | psi/zmisc1.c | 8 ++++++++ | ||
14 | 1 file changed, 8 insertions(+) | ||
15 | |||
16 | diff --git a/psi/zmisc1.c b/psi/zmisc1.c | ||
17 | index 3c47e99..81556ac 100644 | ||
18 | --- a/psi/zmisc1.c | ||
19 | +++ b/psi/zmisc1.c | ||
20 | @@ -93,6 +93,9 @@ zexE(i_ctx_t *i_ctx_p) | ||
21 | |||
22 | if (code < 0) | ||
23 | return code; | ||
24 | + if (gs_is_path_control_active(imemory) != 0 && state.cstate != 55665) { | ||
25 | + return_error(gs_error_rangecheck); | ||
26 | + } | ||
27 | return filter_write(i_ctx_p, code, &s_exE_template, (stream_state *)&state, 0); | ||
28 | } | ||
29 | |||
30 | @@ -130,6 +133,11 @@ zexD(i_ctx_t *i_ctx_p) | ||
31 | } | ||
32 | if (code < 0) | ||
33 | return code; | ||
34 | + | ||
35 | + if (gs_is_path_control_active(imemory) != 0 && state.cstate != 55665) { | ||
36 | + return_error(gs_error_rangecheck); | ||
37 | + } | ||
38 | + | ||
39 | /* | ||
40 | * If we're reading a .PFB file, let the filter know about it, | ||
41 | * so it can read recklessly to the end of the binary section. | ||
42 | -- | ||
43 | 2.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 1fd08d1cfe..2e332b1589 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | |||
@@ -49,6 +49,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d | |||
49 | file://CVE-2024-33871-0001.patch \ | 49 | file://CVE-2024-33871-0001.patch \ |
50 | file://CVE-2024-33871-0002.patch \ | 50 | file://CVE-2024-33871-0002.patch \ |
51 | file://CVE-2024-29510.patch \ | 51 | file://CVE-2024-29510.patch \ |
52 | file://CVE-2023-52722.patch \ | ||
52 | " | 53 | " |
53 | 54 | ||
54 | SRC_URI = "${SRC_URI_BASE} \ | 55 | SRC_URI = "${SRC_URI_BASE} \ |