public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-freetype] f45: Backport fix for CVE-2026-95512
@ 2026-10-19 11:13 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-10-19 11:13 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mingw-freetype
Branch : f45
Commit : d707cdfc16862129bc0242746d8b6ce397844870
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-10-19T12:11:54+02:00
Stats  : +33/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mingw-freetype/c/d707cdfc16862129bc0242746d8b6ce397844870?branch=f45

Log:
Backport fix for CVE-2026-95512

---
diff --git a/CVE-2026-95512.patch b/CVE-2026-95512.patch
new file mode 100644
index 0000000..e3620ec
--- /dev/null
+++ b/CVE-2026-95512.patch
@@ -0,0 +1,26 @@
+diff -rupN --no-dereference freetype-2.14.3/src/cid/cidload.c freetype-2.14.3-new/src/cid/cidload.c
+--- freetype-2.14.3/src/cid/cidload.c	2026-03-11 17:35:37.000000000 +0100
++++ freetype-2.14.3-new/src/cid/cidload.c	2026-10-19 12:11:34.051722204 +0200
+@@ -517,6 +517,7 @@
+     CID_Subrs      subr;
+     FT_UInt        max_offsets = 0;
+     FT_ULong*      offsets = NULL;
++    FT_ULong       cum_len = 0;
+     PSAux_Service  psaux = (PSAux_Service)face->psaux;
+ 
+ 
+@@ -584,6 +585,14 @@
+       /* now, compute the size of subrs charstrings, */
+       /* allocate, and read them                     */
+       data_len = offsets[num_subrs] - offsets[0];
++      cum_len += data_len;
++
++      if ( cum_len / 4 > stream->size )
++      {
++        FT_ERROR(( "cid_read_subrs: excessive overlaps\n" ));
++        error = FT_THROW( Invalid_File_Format );
++        goto Fail;
++      }
+ 
+       if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
+            FT_QALLOC( subr->code[0], data_len )       )

diff --git a/mingw-freetype.spec b/mingw-freetype.spec
index b2cf728..c438dd3 100644
--- a/mingw-freetype.spec
+++ b/mingw-freetype.spec
@@ -3,7 +3,7 @@
 Name:           mingw-freetype
 # NOTE See comment for Patch2 below
 Version:        2.14.3
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Free and portable font rendering engine
 
 License:        FTL OR GPL-2.0-or-later
@@ -18,6 +18,9 @@ Patch0:         freetype-2.3.0-enable-spr.patch
 Patch1:         freetype-2.2.1-enable-valid.patch
 # Re-add symbol downstream for ABI compatibility only. Remove once soname has been bumped from -6.
 Patch2:         freetype-2.10.0-internal-outline.patch
+# Backport fix for CVE-2026-95512
+# https://gitlab.freedesktop.org/freetype/freetype/-/commit/f3ca71c9900fe860849b3163a6e2c1e765b291d9
+Patch3:         CVE-2026-95512.patch
 
 BuildArch:      noarch
 
@@ -133,6 +136,9 @@ rm -rf %{buildroot}%{mingw32_mandir} %{buildroot}%{mingw64_mandir}
 
 
 %changelog
+* Mon Oct 19 2026 Sandro Mani <manisandro@gmail.com> - 2.14.3-3
+- Backport fix for CVE-2026-95512
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

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

only message in thread, other threads:[~2026-10-19 11:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 11:13 [rpms/mingw-freetype] f45: Backport fix for CVE-2026-95512 Sandro Mani

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