public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-freetype] f45: Backport fix for CVE-2026-95512
Date: Mon, 19 Oct 2026 11:13:17 GMT [thread overview]
Message-ID: <179240839755.1.7972026402789927845.rpms-mingw-freetype-d707cdfc1686@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-19 11: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=179240839755.1.7972026402789927845.rpms-mingw-freetype-d707cdfc1686@fedoraproject.org \
--to=manisandro@gmail.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