diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-05-30 13:36:40 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-13 08:42:34 -0700 |
| commit | 5b18890ace80564494a7544c94e4c46882d93e2b (patch) | |
| tree | 891998864910c465ae99ce24dedb6b35f3ac69f6 | |
| parent | 81e0dc80d72d66b7f15a34c0da7a0a8c58809056 (diff) | |
| download | poky-5b18890ace80564494a7544c94e4c46882d93e2b.tar.gz | |
ghostscript: fix CVE-2025-48708
gs_lib_ctx_stash_sanitized_arg in base/gslibctx.c in Artifex Ghostscript before 10.05.1
lacks argument sanitization for the # case. A created PDF document includes
its password in cleartext.
(From OE-Core rev: 7052a81e4f9b19b5640b414c10b19f8232d81572)
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-2025-48708.patch | 46 | ||||
| -rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2025-48708.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2025-48708.patch new file mode 100644 index 0000000000..5c8069a4ea --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2025-48708.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 5b5968c306b3e35cdeec83bb15026fd74a7334de Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ken Sharp <Ken.Sharp@artifex.com> | ||
| 3 | Date: Sat, 12 Apr 2025 10:24:43 +0100 | ||
| 4 | Subject: [PATCH] Argument sanitisation - handle '#' as per '=' | ||
| 5 | |||
| 6 | Bug 708446 | ||
| 7 | |||
| 8 | CVE: CVE-2025-48708 | ||
| 9 | |||
| 10 | Upstream-Status: Backport [https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=5b5968c306b3e35cdeec83bb15026fd74a7334de] | ||
| 11 | |||
| 12 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 13 | --- | ||
| 14 | base/gslibctx.c | 8 ++++---- | ||
| 15 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/base/gslibctx.c b/base/gslibctx.c | ||
| 18 | index 2cf5c9dda..40ff984f9 100644 | ||
| 19 | --- a/base/gslibctx.c | ||
| 20 | +++ b/base/gslibctx.c | ||
| 21 | @@ -1225,9 +1225,9 @@ gs_lib_ctx_stash_sanitized_arg(gs_lib_ctx_t *ctx, const char *arg) | ||
| 22 | case '-': /* Need to check for permitted file lists */ | ||
| 23 | /* By default, we want to keep the key, but lose the value */ | ||
| 24 | p = arg+2; | ||
| 25 | - while (*p && *p != '=') | ||
| 26 | + while (*p && *p != '=' && *p != '#') | ||
| 27 | p++; | ||
| 28 | - if (*p == '=') | ||
| 29 | + if (*p == '=' || *p == '#') | ||
| 30 | p++; | ||
| 31 | if (*p == 0) | ||
| 32 | break; /* No value to elide */ | ||
| 33 | @@ -1269,9 +1269,9 @@ gs_lib_ctx_stash_sanitized_arg(gs_lib_ctx_t *ctx, const char *arg) | ||
| 34 | case 'S': | ||
| 35 | /* By default, we want to keep the key, but lose the value */ | ||
| 36 | p = arg+2; | ||
| 37 | - while (*p && *p != '=') | ||
| 38 | + while (*p && *p != '=' && *p != '#') | ||
| 39 | p++; | ||
| 40 | - if (*p == '=') | ||
| 41 | + if (*p == '=' || *p == '#') | ||
| 42 | p++; | ||
| 43 | if (*p == 0) | ||
| 44 | break; /* No value to elide */ | ||
| 45 | -- | ||
| 46 | 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 e872fbe88c..3b50ac1409 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | |||
| @@ -73,6 +73,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d | |||
| 73 | file://CVE-2025-27835.patch \ | 73 | file://CVE-2025-27835.patch \ |
| 74 | file://CVE-2025-27836-1.patch \ | 74 | file://CVE-2025-27836-1.patch \ |
| 75 | file://CVE-2025-27836-2.patch \ | 75 | file://CVE-2025-27836-2.patch \ |
| 76 | file://CVE-2025-48708.patch \ | ||
| 76 | " | 77 | " |
| 77 | 78 | ||
| 78 | SRC_URI = "${SRC_URI_BASE} \ | 79 | SRC_URI = "${SRC_URI_BASE} \ |
