public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Dohnal <zdohnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ghostscript] f45: CVE-2026-110133 ghostscript: Heap buffer overflow in Ghostscript TrueType outliner (fedora#2563298)
Date: Wed, 25 Nov 2026 12:13:14 GMT	[thread overview]
Message-ID: <179560879400.1.17096411012323108417.rpms-ghostscript-e1ee9b57d99f@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ghostscript
Branch : f45
Commit : e1ee9b57d99fc65544e67a1f903a0fae3aede344
Author : Zdenek Dohnal <zdohnal@redhat.com>
Date   : 2026-11-25T13:10:34+01:00
Stats  : +57/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ghostscript/c/e1ee9b57d99fc65544e67a1f903a0fae3aede344?branch=f45

Log:
CVE-2026-110133 ghostscript: Heap buffer overflow in Ghostscript TrueType outliner (fedora#2563298)

---
diff --git a/0001-Bug-709573-Disable-the-old-TTF-bytecode-interpreter.patch b/0001-Bug-709573-Disable-the-old-TTF-bytecode-interpreter.patch
new file mode 100644
index 0000000..e887cf1
--- /dev/null
+++ b/0001-Bug-709573-Disable-the-old-TTF-bytecode-interpreter.patch
@@ -0,0 +1,55 @@
+From 0e623dbd83b93bbbe70ebfe93431b5968e006789 Mon Sep 17 00:00:00 2001
+From: Chris Liddell <chris.liddell@artifex.com>
+Date: Tue, 28 Jul 2026 16:16:35 +0100
+Subject: [PATCH] Bug 709573: Disable the old TTF bytecode interpreter
+
+Pending removal of the code.
+
+It's very old code with many issues, and the instances where we really need
+the bytecode hinting, the font gets handled by Freetype via FAPI.
+---
+ base/gxttfb.c  | 4 ++--
+ base/ttfmain.c | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/base/gxttfb.c b/base/gxttfb.c
+index 9e8c7f4e2..a843d88ed 100644
+--- a/base/gxttfb.c
++++ b/base/gxttfb.c
+@@ -1,4 +1,4 @@
+-/* Copyright (C) 2001-2023 Artifex Software, Inc.
++/* Copyright (C) 2001-2026 Artifex Software, Inc.
+    All Rights Reserved.
+ 
+    This software is provided AS-IS with no warranty, either express or
+@@ -753,7 +753,7 @@ int gx_ttf_outline(ttfFont *ttf, gx_ttfReader *r, gs_font_type42 *pfont, int gly
+     /* so that TTC never comes here. */
+     FloatMatrix m1;
+     bool dg;
+-    uint gftt = gs_currentgridfittt(pfont->dir);
++    uint gftt = 2;
+     bool ttin = (gftt & 1);
+     int code;
+     /*	gs_currentgridfittt values (binary) :
+diff --git a/base/ttfmain.c b/base/ttfmain.c
+index 8c084ba71..a8a69cfbe 100644
+--- a/base/ttfmain.c
++++ b/base/ttfmain.c
+@@ -1,4 +1,4 @@
+-/* Copyright (C) 2001-2023 Artifex Software, Inc.
++/* Copyright (C) 2001-2026 Artifex Software, Inc.
+    All Rights Reserved.
+ 
+    This software is provided AS-IS with no warranty, either express or
+@@ -500,7 +500,7 @@ static FontError ttfOutliner__BuildGlyphOutlineAux(ttfOutliner *self, int glyphI
+     ttfSubGlyphUsage *usage = tti->usage + tti->usage_top;
+     const byte *glyph = NULL;
+     int glyph_size;
+-    bool execute_bytecode = true;
++    bool execute_bytecode = false;
+     int nPoints = 0;
+ 
+ retry:
+-- 
+2.56.1
+

diff --git a/ghostscript.spec b/ghostscript.spec
index 0885475..36d2dde 100644
--- a/ghostscript.spec
+++ b/ghostscript.spec
@@ -125,6 +125,7 @@ Patch004: 0001-graphics-library-Shadings-with-arrays-of-Functions-v.patch
 Patch005: 0001-PostScript-interpreter-procedural-data-sink-filter-d.patch
 Patch006: 0001-pdfwrite-bound-check-control-stack-in-type-1-2-font-.patch
 Patch007: 0001-PS-interpreter-validate-operands-to-.putgstringcopy.patch
+Patch008: 0001-Bug-709573-Disable-the-old-TTF-bytecode-interpreter.patch
 
 
 # Downstream patches -- these should be always included when doing rebase:
@@ -489,6 +490,7 @@ done
 
 %changelog
 * Wed Nov 25 2026 Zdenek Dohnal <zdohnal@redhat.com> - 10.07.1-4
+- CVE-2026-110133 ghostscript: Heap buffer overflow in Ghostscript TrueType outliner (fedora#2563298)
 - CVE-2026-125396 ghostscript: Ghostscript: Arbitrary code execution via SAFER sandbox bypass  (fedora#2581641)
 
 * Fri Oct 16 2026 Zdenek Dohnal <zdohnal@redhat.com> - 10.07.1-3

                 reply	other threads:[~2026-11-25 12:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179560879400.1.17096411012323108417.rpms-ghostscript-e1ee9b57d99f@fedoraproject.org \
    --to=zdohnal@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox