diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2023-12-13 09:30:12 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-12-22 16:36:54 -1000 |
| commit | a7f86b0e7881d6241d1e9a147ae59f3ae7ea724e (patch) | |
| tree | e4404208de827e0141ecd1307fc821c6eb829375 | |
| parent | 1520bf97aaa9cf1b340c84e35f3cfe4b7641f3bb (diff) | |
| download | poky-a7f86b0e7881d6241d1e9a147ae59f3ae7ea724e.tar.gz | |
ghostscript: Backport fix for CVE-2023-46751
Upstream-Status: Backport [https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5d2da96e81c7455338302c71a291088a8396245a]
(From OE-Core rev: f01a0e7fcf3c2d277be0cd85c0cd6b2eff2e5f0a)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/CVE-2023-46751.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-46751.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-46751.patch new file mode 100644 index 0000000000..6fe5590892 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2023-46751.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 5d2da96e81c7455338302c71a291088a8396245a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Chris Liddell <chris.liddell@artifex.com> | ||
| 3 | Date: Mon, 16 Oct 2023 16:49:40 +0100 | ||
| 4 | Subject: [PATCH] Bug 707264: Fix tiffsep(1) requirement for seekable output | ||
| 5 | files | ||
| 6 | |||
| 7 | In the device initialization redesign, tiffsep and tiffsep1 lost the requirement | ||
| 8 | for the output files to be seekable. | ||
| 9 | |||
| 10 | Fixing that highlighted a problem with the error handling in | ||
| 11 | gdev_prn_open_printer_seekable() where closing the erroring file would leave a | ||
| 12 | dangling pointer, and lead to a crash. | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5d2da96e81c7455338302c71a291088a8396245a] | ||
| 15 | CVE: CVE-2023-46751 | ||
| 16 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 17 | --- | ||
| 18 | base/gdevprn.c | 1 + | ||
| 19 | devices/gdevtsep.c | 1 + | ||
| 20 | 2 files changed, 2 insertions(+) | ||
| 21 | |||
| 22 | --- a/base/gdevprn.c | ||
| 23 | +++ b/base/gdevprn.c | ||
| 24 | @@ -1251,6 +1251,7 @@ gdev_prn_open_printer_seekable(gx_device | ||
| 25 | && !IS_LIBCTX_STDERR(pdev->memory, gp_get_file(ppdev->file))) { | ||
| 26 | |||
| 27 | code = gx_device_close_output_file(pdev, ppdev->fname, ppdev->file); | ||
| 28 | + ppdev->file = NULL; | ||
| 29 | if (code < 0) | ||
| 30 | return code; | ||
| 31 | } | ||
| 32 | --- a/devices/gdevtsep.c | ||
| 33 | +++ b/devices/gdevtsep.c | ||
| 34 | @@ -738,6 +738,7 @@ tiffsep_initialize_device_procs(gx_devic | ||
| 35 | { | ||
| 36 | gdev_prn_initialize_device_procs(dev); | ||
| 37 | |||
| 38 | + set_dev_proc(dev, output_page, gdev_prn_output_page_seekable); | ||
| 39 | set_dev_proc(dev, open_device, tiffsep_prn_open); | ||
| 40 | set_dev_proc(dev, close_device, tiffsep_prn_close); | ||
| 41 | set_dev_proc(dev, map_color_rgb, tiffsep_decode_color); | ||
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb index 7f4050755c..e0d1e4618f 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | |||
| @@ -42,6 +42,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d | |||
| 42 | file://CVE-2023-36664-0002.patch \ | 42 | file://CVE-2023-36664-0002.patch \ |
| 43 | file://CVE-2023-38559.patch \ | 43 | file://CVE-2023-38559.patch \ |
| 44 | file://CVE-2023-43115.patch \ | 44 | file://CVE-2023-43115.patch \ |
| 45 | file://CVE-2023-46751.patch \ | ||
| 45 | " | 46 | " |
| 46 | 47 | ||
| 47 | SRC_URI = "${SRC_URI_BASE} \ | 48 | SRC_URI = "${SRC_URI_BASE} \ |
