Red Hat Security Advisory: ghostscript security update
🔗 CVE IDs covered (4)
📋 Description
CVE-2018-10194 — ghostscript: Stack-based out-of-bounds write in pdf_set_text_matrix function in gdevpdts.c CVE-2018-15910 — ghostscript: LockDistillerParams type confusion (699656) CVE-2018-16509 — ghostscript: /invalidaccess bypass after failed restore (699654) CVE-2018-16542 — ghostscript: .definemodifiedfont memory corruption if /typecheck is handled (699668)
🎯 Affected products108
- Red Hat Enterprise Linux Client (v. 7)
- Red Hat Enterprise Linux Client Optional (v. 7)
- Red Hat Enterprise Linux ComputeNode (v. 7)
- Red Hat Enterprise Linux ComputeNode Optional (v. 7)
- Red Hat Enterprise Linux Server (v. 7)
- Red Hat Enterprise Linux Server Optional (v. 7)
- Red Hat Enterprise Linux Workstation (v. 7)
- Red Hat Enterprise Linux Workstation Optional (v. 7)
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7)
- ghostscript-0:9.07-29.el7_5.2.aarch64 as a component of Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.i686 as a component of Red Hat Enterprise Linux Client (v. 7)
- ghostscript-0:9.07-29.el7_5.2.i686 as a component of Red Hat Enterprise Linux ComputeNode (v. 7)
- ghostscript-0:9.07-29.el7_5.2.i686 as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.i686 as a component of Red Hat Enterprise Linux Workstation (v. 7)
- ghostscript-0:9.07-29.el7_5.2.ppc as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.ppc64le as a component of Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.s390 as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.s390 as a component of Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.s390x as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.s390x as a component of Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.src as a component of Red Hat Enterprise Linux Client (v. 7)
- ghostscript-0:9.07-29.el7_5.2.src as a component of Red Hat Enterprise Linux ComputeNode (v. 7)
- ghostscript-0:9.07-29.el7_5.2.src as a component of Red Hat Enterprise Linux Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.src as a component of Red Hat Enterprise Linux Workstation (v. 7)
- ghostscript-0:9.07-29.el7_5.2.src as a component of Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7)
- ghostscript-0:9.07-29.el7_5.2.x86_64 as a component of Red Hat Enterprise Linux Client (v. 7)
- ghostscript-0:9.07-29.el7_5.2.x86_64 as a component of Red Hat Enterprise Linux ComputeNode (v. 7)
- +78 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509 Workaround: Please see https://bugzilla.redhat.com/show_bug.cgi?id=1619748#c3 Workaround: * ImageMagick relies on ghostscript when processing certain files formats. Thus, ImageMagick can be used as an attack vector. In order to prevent ImageMagick from processing those files on Red Hat Enterprise Linux 6 and 7, you can disable the use of ghostscript and the processing of PS, EPS, PDF, and XPS file formats in ImageMagick's security policy by opening /etc/ImageMagick/policy.xml and adding the following lines to the "<policymap>" section of the file: ``` <policy domain="coder" rights="none" pattern="PS" /> <policy domain="coder" rights="none" pattern="EPS" /> <policy domain="coder" rights="none" pattern="PDF" /> <policy domain="coder" rights="none" pattern="XPS" /> <policy domain="delegate" rights="none" pattern="gs" /> ``` * Additionally, this issue can be triggered when processing files in order to generate thumbnails, for example when browsing a folder containing a malicious PostScript file in Nautilus. To prevent this, remove or rename the "/usr/bin/evince-thumbnailer" executable. In Red Hat Enterprise Linux v.7.6 and above, the thumbnailing is done in a sandbox. * It is possible to run PDF/PS viewers, such as evince and okular, in a SELinux sandbox using the `sandbox` command from the policycoreutils-sandbox package : $ sandbox -X evince <untrusted-file.pdf> The sandbox will prevent an attacker to make modifications on the file system.
🔗 References (7)
- selfhttps://access.redhat.com/errata/RHSA-2018:2918
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1569108
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1619748
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1619751
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1621363
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_2918.json