diff options
| -rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/CVE-2022-2085.patch | 44 | ||||
| -rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2022-2085.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2022-2085.patch new file mode 100644 index 0000000000..58cb93727a --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2022-2085.patch | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | From ae1061d948d88667bdf51d47d918c4684d0f67df Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robin Watts <Robin.Watts@artifex.com> | ||
| 3 | Date: Wed, 16 Feb 2022 15:22:50 +0000 | ||
| 4 | Subject: [PATCH] Bug 704945: Add init_device_procs entry for mem_x_device. | ||
| 5 | |||
| 6 | When allocating a buffer device, we rely on an init_device_procs | ||
| 7 | being defined for the device we are using as a prototype. Which | ||
| 8 | device we use as a prototype depends upon the number of bits per | ||
| 9 | pixel we are using. For bpp > 64, we use mem_x_device, which does | ||
| 10 | not currently have an init_device_procs defined. | ||
| 11 | |||
| 12 | This is a fairly hard case to tickle, as very few devices use | ||
| 13 | more than 64 bits per pixel. The DeviceN device is one of the | ||
| 14 | few that does, and then the problem only kicks in if the | ||
| 15 | MaxBitmap figure is high enough (or conversely the resolution is | ||
| 16 | low enough). | ||
| 17 | |||
| 18 | |||
| 19 | http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=ae1061d948d88667bdf51d47d918c4684d0f67df | ||
| 20 | Upstream-Status: Backport | ||
| 21 | CVE: CVE-2022-2085 | ||
| 22 | Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> | ||
| 23 | --- | ||
| 24 | base/gdevmx.c | 4 ++-- | ||
| 25 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 26 | |||
| 27 | diff --git a/base/gdevmx.c b/base/gdevmx.c | ||
| 28 | index 08b0cbcfe..89e9ff774 100644 | ||
| 29 | --- a/base/gdevmx.c | ||
| 30 | +++ b/base/gdevmx.c | ||
| 31 | @@ -1,4 +1,4 @@ | ||
| 32 | -/* Copyright (C) 2001-2021 Artifex Software, Inc. | ||
| 33 | +/* Copyright (C) 2001-2022 Artifex Software, Inc. | ||
| 34 | All Rights Reserved. | ||
| 35 | |||
| 36 | This software is provided AS-IS with no warranty, either express or | ||
| 37 | @@ -25,4 +25,4 @@ | ||
| 38 | |||
| 39 | /* The device descriptor. */ | ||
| 40 | const gx_device_memory mem_x_device = | ||
| 41 | - mem_device("imagex", 256, 0, NULL); | ||
| 42 | + mem_device("imagex", 256, 0, mem_initialize_device_procs); | ||
| 43 | -- | ||
| 44 | 2.25.1 | ||
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb index c28e62f089..365420fb64 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.55.0.bb | |||
| @@ -33,6 +33,7 @@ SRC_URI_BASE = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/d | |||
| 33 | file://do-not-check-local-libpng-source.patch \ | 33 | file://do-not-check-local-libpng-source.patch \ |
| 34 | file://avoid-host-contamination.patch \ | 34 | file://avoid-host-contamination.patch \ |
| 35 | file://mkdir-p.patch \ | 35 | file://mkdir-p.patch \ |
| 36 | file://CVE-2022-2085.patch \ | ||
| 36 | " | 37 | " |
| 37 | 38 | ||
| 38 | SRC_URI = "${SRC_URI_BASE} \ | 39 | SRC_URI = "${SRC_URI_BASE} \ |
