public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghostscript] f45: CVE-2026-110133 ghostscript: Heap buffer overflow in Ghostscript TrueType outliner (fedora#2563298)
@ 2026-11-25 12:13 Zdenek Dohnal
0 siblings, 0 replies; only message in thread
From: Zdenek Dohnal @ 2026-11-25 12:13 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 12:13 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:13 [rpms/ghostscript] f45: 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