public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghostscript] f44: CVE-2026-110133 ghostscript: Heap buffer overflow in Ghostscript TrueType outliner (fedora#2563298)
@ 2026-11-25 12:17 Zdenek Dohnal
  0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-11-25 12:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

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

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 8db6010..6d06e89 100644
--- a/ghostscript.spec
+++ b/ghostscript.spec
@@ -127,6 +127,7 @@ Patch005: 0001-graphics-library-Shadings-with-arrays-of-Functions-v.patch
 Patch006: 0001-PostScript-interpreter-procedural-data-sink-filter-d.patch
 Patch007: 0001-pdfwrite-bound-check-control-stack-in-type-1-2-font-.patch
 Patch008: 0001-PS-interpreter-validate-operands-to-.putgstringcopy.patch
+Patch009: 0001-Bug-709573-Disable-the-old-TTF-bytecode-interpreter.patch
 
 
 # Downstream patches -- these should be always included when doing rebase:
@@ -495,6 +496,7 @@ done
 
 %changelog
 * Wed Nov 25 2026 Zdenek Dohnal <zdohnal@redhat.com> - 10.06.0-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.06.0-3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 12:17 [rpms/ghostscript] f44: CVE-2026-110133 ghostscript: Heap buffer overflow in Ghostscript TrueType outliner (fedora#2563298) Zdenek Dohnal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox