Skip to content
Heist/ feed
Back to feed
MediumFix available

ghostscript — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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.

Products
ghostscript
Affected versions
Not specified
Fixed versions
9.56.0~dfsg-1
CVEs
CVE-2022-2085
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:43 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-2085

core-osv · Original source

Published 16 Jun 2022, 18:15 UTC

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.

osv:DEBIAN-CVE-2022-2085

ghostscript

Fixed versions: 9.56.0~dfsg-1

ghostscript

Fixed versions: 9.56.0~dfsg-1

ghostscript

Fixed versions: 9.56.0~dfsg-1

Complete source record
{
  "id": "a055d163be6c915b637512f445628363888b347144dc2286eddfd56be49877db",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-2085",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-2085",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2022-2085",
    "products": [
      {
        "name": {
          "value": "ghostscript",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.56.0~dfsg-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ghostscript",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.56.0~dfsg-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ghostscript",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.56.0~dfsg-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2022-2085",
      "aliases": [
        "DEBIAN-CVE-2022-2085"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.56.0~dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostscript",
            "purl": "pkg:deb/debian/ghostscript?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-2085.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.56.0~dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostscript",
            "purl": "pkg:deb/debian/ghostscript?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-2085.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9.56.0~dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostscript",
            "purl": "pkg:deb/debian/ghostscript?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-2085.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:01:39.731452449Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-2085"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-2085"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-2085",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 323081,
  "published_at": "2022-06-16T18:15:10.19+00:00"
}