Name | CVE-2022-2085 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ghostscript (PTS) | jessie, jessie (lts) | 9.26a~dfsg-0+deb8u13 | fixed |
stretch (security) | 9.26a~dfsg-0+deb9u9 | fixed | |
stretch (lts), stretch | 9.26a~dfsg-0+deb9u13 | fixed | |
buster, buster (lts) | 9.27~dfsg-2+deb10u10 | fixed | |
buster (security) | 9.27~dfsg-2+deb10u9 | fixed | |
bullseye | 9.53.3~dfsg-7+deb11u7 | fixed | |
bullseye (security) | 9.53.3~dfsg-7+deb11u9 | fixed | |
bookworm | 10.0.0~dfsg-11+deb12u5 | fixed | |
bookworm (security) | 10.0.0~dfsg-11+deb12u6 | fixed | |
sid, trixie | 10.04.0~dfsg-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ghostscript | source | jessie | (not affected) | |||
ghostscript | source | stretch | (not affected) | |||
ghostscript | source | buster | (not affected) | |||
ghostscript | source | bullseye | (not affected) | |||
ghostscript | source | (unstable) | 9.56.0~dfsg-1 |
[bullseye] - ghostscript <not-affected> (Vulnerable code not present)
[buster] - ghostscript <not-affected> (Vulnerable code not present)
[stretch] - ghostscript <not-affected> (Vulnerable code not present)
https://bugs.ghostscript.com/show_bug.cgi?id=704945
Fixed by: https://git.ghostscript.com/?p=ghostpdl.git;h=ae1061d948d88667bdf51d47d918c4684d0f67df (ghostpdl-9.56.0rc1)
Introduced by: https://git.ghostscript.com/?p=ghostpdl.git;h=6f332dd0baee0135ebff0bf25c56e9adff0f944a (ghostpdl-9.55.0rc1)
[jessie] - ghostscript <not-affected> (Vulnerable code not present)