CVE-2022-2085
publishedghostscript: Null pointer dereference in gx_default_create_buf_device()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | GhostScriptAffects in Ghostscript v9.55.0 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-053 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | jammy | ghostscript | Advisory build | 9.55.0~dfsg1-0ubuntu5.1 | USN-5643-1 |
| Amazon Linux | AL2023 | ghostscriptaarch64 | Listed in advisory | Not stated | ALAS2023-2023-053 |
| Ubuntu | jammy | ghostscript-x | Advisory build | 9.55.0~dfsg1-0ubuntu5.1 | USN-5643-1 |
| Ubuntu | jammy | libgs9 | Advisory build | 9.55.0~dfsg1-0ubuntu5.1 | USN-5643-1 |
| Ubuntu | jammy | libgs9-common | Advisory build | 9.55.0~dfsg1-0ubuntu5.1 | USN-5643-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | ghostscriptnoarch | Listed in advisory | Not stated | ALAS2023-2023-053 |
| Amazon Linux | AL2023 | ghostscriptsrc | Listed in advisory | Not stated | ALAS2023-2023-053 |
| Amazon Linux | AL2023 | ghostscriptx86_64 | Listed in advisory | Not stated | ALAS2023-2023-053 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | GhostScript | Affects in Ghostscript v9.55.0 (affected) | redhat · cna |
Weaknesses
1- CWE-476 CWE-476 - NULL Pointer Dereference
References
6- http://git.ghostscript.com/?p=ghostpdl.git%3Bh=ae1061d948d88667bdf51d47d918c4684d0f67df
- https://bugs.ghostscript.com/show_bug.cgi?id=704945
- https://bugzilla.redhat.com/show_bug.cgi?id=2095261
- FEDORA-2022-d287230630 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERSZX5LKDWAHZWJYBMP2E2UHOPUCDEGV/
- GLSA-202211-11 https://security.gentoo.org/glsa/202211-11
- https://security.gentoo.org/glsa/202309-03
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3a1679efcaffc733f946041532b54b0ae16f0fd428c64a81f38ffbd13e07d5f7
- Ingested
- 23 Sep 2026, 08:00:01 UTC
- Source record
- Official CVE record