CVE catalog

CVE-2022-2085

ghostscript: CVE-2022-2085

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.41% · Oct 22, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianghostscriptsid10.08.0~dfsg-2fixed
Debianghostscriptforky10.08.0~dfsg-2fixed
Debianghostscripttrixie10.05.1~dfsg-1+deb13u1fixed
Debianghostscripttrixie-security10.05.1~dfsg-1+deb13u3fixed
Debianghostscriptbookworm10.0.0~dfsg-11+deb12u8fixed
Debianghostscriptbookworm-security10.0.0~dfsg-11+deb12u8fixed
Ubuntughostscript22.049.54.0~dfsg1-0ubuntu2vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu4vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianghostscriptsourcesid9.56.0~dfsg-1not yet assignedNot reportedNot reported
Debianghostscriptsourceforky9.56.0~dfsg-1not yet assignedNot reportedNot reported
Debianghostscriptsourcetrixie9.56.0~dfsg-1not yet assignedNot reportedNot reported
Debianghostscriptsourcebookworm9.56.0~dfsg-1not yet assignedNot reportedNot reported
Ubuntughostscriptdeb22.049.55.0~dfsg1-0ubuntu5.1Not reportedUBUNTU-CVE-2022-2085Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [ghostscript]Unknown
    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • [ghostscript-x]Unknown

    Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • [libgs10]Unknown

    Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • [libgs9-common]Unknown

    Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • [libgs-common]Unknown

    Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · all · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

  • [libgs-dev]Unknown

    Source package: [ghostscript]

    Details (4)
    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · amd64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

    • 10.0.0~dfsg-11+deb12u8 · arm64 · bookworm-security

      Fixed · Fixed: 9.56.0~dfsg-1

      dsa · ghostscript · debian · bookworm

Observed:

References