NULL pointer dereference in Artifex Ghostscript
CVE-2022-2085
A NULL pointer dereference vulnerability was found in Ghostscript, which occurs when it tries to render a large number of bits in memory. When allocating a buffer device, it relies on an init_device_procs defined for the device that uses it as a prototype that depends upon the number of bits per pixel. For bpp > 64, mem_x_device is used and does not have an init_device_procs defined. This flaw allows an attacker to parse a large number of bits (more than 64 bits per pixel), which triggers a NULL pointer dereference flaw, causing an application to crash.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.014, 73.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Artifex Ghostscript — versions 9.55.0
- Fedoraproject Fedora — versions 35, 36
- Ghostscript — versions Affects in Ghostscript v9.55.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugs.ghostscript.com/show_bug.cgi (Exploit, Patch, Mailing List, Issue Tracking, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)
- git.ghostscript.com/
- FEDORA-2022-d287230630 (vendor-advisory)
- GLSA-202211-11 (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/202309-03