From d478f9e9fa18090962939d1ecefb6a3b4da8b014 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 13 Jan 2026 20:24:32 +0000 Subject: [PATCH 1/2] Backport security fix for CVE-2026-22693 (fix RHBZ#2429278) --- ...ff8d990284f04d8768f35b0e20ae5f60daae.patch | 25 +++++++++++++++++++ harfbuzz.spec | 10 ++++++++ 2 files changed, 35 insertions(+) create mode 100644 1265ff8d990284f04d8768f35b0e20ae5f60daae.patch diff --git a/1265ff8d990284f04d8768f35b0e20ae5f60daae.patch b/1265ff8d990284f04d8768f35b0e20ae5f60daae.patch new file mode 100644 index 0000000..81a02d6 --- /dev/null +++ b/1265ff8d990284f04d8768f35b0e20ae5f60daae.patch @@ -0,0 +1,25 @@ +From 1265ff8d990284f04d8768f35b0e20ae5f60daae Mon Sep 17 00:00:00 2001 +From: Behdad Esfahbod +Date: Fri, 9 Jan 2026 04:54:42 -0700 +Subject: [PATCH] [cmap] malloc fail test (#5710) + +Fixes https://github.com/harfbuzz/harfbuzz/security/advisories/GHSA-xvjr-f2r9-c7ww +--- + src/hb-ot-cmap-table.hh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh +index 32f705bb3c5..d08e66edaa2 100644 +--- a/src/hb-ot-cmap-table.hh ++++ b/src/hb-ot-cmap-table.hh +@@ -1670,6 +1670,10 @@ struct SubtableUnicodesCache { + { + SubtableUnicodesCache* cache = + (SubtableUnicodesCache*) hb_malloc (sizeof(SubtableUnicodesCache)); ++ ++ if (unlikely (!cache)) ++ return nullptr; ++ + new (cache) SubtableUnicodesCache (source_table); + return cache; + } diff --git a/harfbuzz.spec b/harfbuzz.spec index a2896da..a85ea49 100644 --- a/harfbuzz.spec +++ b/harfbuzz.spec @@ -7,6 +7,16 @@ License: MIT-Modern-Variant URL: https://github.com/harfbuzz/harfbuzz/ Source0: https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/harfbuzz-%{version}.tar.xz +# [cmap] malloc fail test (#5710) +# https://github.com/harfbuzz/harfbuzz/commit/1265ff8d990284f04d8768f35b0e20ae5f60daae +# +# Fixes: +# +# Null Pointer Dereference in SubtableUnicodesCache::create leading to DoS +# https://www.cve.org/CVERecord?id=CVE-2026-22693 +# https://github.com/harfbuzz/harfbuzz/security/advisories/GHSA-xvjr-f2r9-c7ww +Patch: https://github.com/harfbuzz/harfbuzz/commit/1265ff8d990284f04d8768f35b0e20ae5f60daae.patch + BuildRequires: cairo-devel BuildRequires: freetype-devel BuildRequires: glib2-devel From c5c04aaab593ec732f3ef0253d1110f592edbd24 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Wed, 14 Jan 2026 17:54:46 +0530 Subject: [PATCH 2/2] Backport security fix for CVE-2026-22693 (fix RHBZ#2429278) --- harfbuzz.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/harfbuzz.spec b/harfbuzz.spec index a85ea49..83a8823 100644 --- a/harfbuzz.spec +++ b/harfbuzz.spec @@ -1,6 +1,6 @@ Name: harfbuzz Version: 10.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Text shaping library License: MIT-Modern-Variant @@ -121,6 +121,9 @@ This package contains Harfbuzz Cairo support library. %{_libdir}/libharfbuzz-cairo.so.* %changelog +* Wed Jan 14 2026 Parag Nemade - 10.4.0-2 +- Backport security fix for CVE-2026-22693 (fix RHBZ#2429278) + * Sat Mar 01 2025 Parag Nemade - 10.4.0-1 - Update to 10.4.0 version (#2349122)