ghostscript: upgrade 9.27 -> 9.50
PATCH v2 1/1 ghostscript: upgrade 9.27 -> 9.50
From: Trevor Gamblin <[email protected]>
Version 9.50 incorporates previously-backported fixes for CVE-2019-14811 and CVE-2019-14817.
CVE: CVE-2019-14811
CVE: CVE-2019-14817
Signed-off-by Trevor Gamblin <[email protected]>
---
.../ghostscript/CVE-2019-14811-0001.patch | 69 -----
.../ghostscript/CVE-2019-14817-0001.patch | 270 ------------------
.../ghostscript/CVE-2019-14817-0002.patch | 236 ---------------
...hostscript_9.27.bb => ghostscript_9.50.bb} | 9 +-
4 files changed, 3 insertions(+), 581 deletions(-)
delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/CVE-2019-14811-0001.patch
delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/CVE-2019-14817-0001.patch
delete mode 100644 meta/recipes-extended/ghostscript/ghostscript/CVE-2019-14817-0002.patch
rename meta/recipes-extended/ghostscript/{ghostscript_9.27.bb => ghostscript_9.50.bb} (92%)meta/recipes-extended/ghostscript/ghostscript/CVE-2019-14811-0001.patch deleted +0 -69
@@ -1,69 +0,0 @@ -From 885444fcbe10dc42787ecb76686c8ee4dd33bf33 Mon Sep 17 00:00:00 2001 -From: Ken Sharp <[email protected]> -Date: Tue, 20 Aug 2019 10:10:28 +0100 -Subject: [PATCH] make .forceput inaccessible - -Bug #701343, #701344, #701345 - -More defensive programming. We don't want people to access .forecput -even though it is no longer sufficient to bypass SAFER. The exploit -in #701343 didn't work anyway because of earlier work to stop the error -handler being used, but nevertheless, prevent access to .forceput from -.setuserparams2. - -CVE: CVE-2019-14811 -CVE: CVE-2019-14813 -Upstream-Status: Backport [git://git.ghostscript.com/ghostpdl.git] - -Signed-off-by: Stefan Ghinea <[email protected]> ---- - Resource/Init/gs_lev2.ps | 6 +++--- - Resource/Init/gs_pdfwr.ps | 4 ++-- - 2 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/Resource/Init/gs_lev2.ps b/Resource/Init/gs_lev2.ps -index 98d55fe..f1b771f 100644 ---- a/Resource/Init/gs_lev2.ps -+++ b/Resource/Init/gs_lev2.ps -@@ -158,7 +158,7 @@ end - { - pop pop - } ifelse -- } forall -+ } executeonly forall - % A context switch might have occurred during the above loop, - % causing the interpreter-level parameters to be reset. - % Set them again to the new values. From here on, we are safe, -@@ -229,9 +229,9 @@ end - { pop pop - } - ifelse -- } -+ } executeonly - forall pop --} .bind odef -+} .bind executeonly odef - - % Initialize the passwords. - % NOTE: the names StartJobPassword and SystemParamsPassword are known to -diff --git a/Resource/Init/gs_pdfwr.ps b/Resource/Init/gs_pdfwr.ps -index 00c19fa..dfe504d 100644 ---- a/Resource/Init/gs_pdfwr.ps -+++ b/Resource/Init/gs_pdfwr.ps -@@ -652,11 +652,11 @@ currentdict /.pdfmarkparams .undef - systemdict /.pdf_hooked_DSC_Creator //true .forceput - } executeonly if - pop -- } if -+ } executeonly if - } { - pop - } ifelse -- } -+ } executeonly - { - pop - } ifelse --- -2.20.1 -
meta/recipes-extended/ghostscript/ghostscript/CVE-2019-14817-0001.patch deleted +0 -270
270 lines not on this page · raw message
meta/recipes-extended/ghostscript/ghostscript/CVE-2019-14817-0002.patch deleted +0 -236
236 lines not on this page · raw message
meta/recipes-extended/ghostscript/ghostscript_9.50.bb renamed from meta/recipes-extended/ghostscript/ghostscript_9.27.bb +3 -6
@@ -19,15 +19,12 @@ DEPENDS_class-native = "libpng-native" UPSTREAM_CHECK_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases" UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar" -SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/${BPN}-${PV}.tar.gz \ +SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/${BPN}-${PV}.tar.gz \ file://ghostscript-9.15-parallel-make.patch \ file://ghostscript-9.16-Werror-return-type.patch \ file://do-not-check-local-libpng-source.patch \ file://avoid-host-contamination.patch \ file://mkdir-p.patch \ - file://CVE-2019-14811-0001.patch \ - file://CVE-2019-14817-0001.patch \ - file://CVE-2019-14817-0002.patch \ file://CVE-2019-14869-0001.patch \ "
@@ -43,8 +40,8 @@ SRC_URI_class-native = "${SRC_URI_BASE} \ file://base-genht.c-add-a-preprocessor-define-to-allow-fope.patch \ " -SRC_URI[md5sum] = "c3990a504a3a23b9babe9de00ed6597d" -SRC_URI[sha256sum] = "9760e8bdd07a08dbd445188a6557cb70e60ccb6a5601f7dbfba0d225e28ce285" +SRC_URI[md5sum] = "00970cf622bd5b46f68eec9383753870" +SRC_URI[sha256sum] = "0f53e89fd647815828fc5171613e860e8535b68f7afbc91bf89aee886769ce89" # Put something like #
Signature · 1 line
2.24.0