Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libfontenc for openSUSE:Factory checked in at 2026-11-19 16:53:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libfontenc (Old) and /work/SRC/openSUSE:Factory/.libfontenc.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfontenc" Thu Nov 19 16:53:37 2026 rev:16 rq:1398278 version:1.1.9 Changes: -------- --- /work/SRC/openSUSE:Factory/libfontenc/libfontenc.changes 2026-02-10 21:10:55.031778324 +0100 +++ /work/SRC/openSUSE:Factory/.libfontenc.new.1251/libfontenc.changes 2026-11-19 16:53:48.256449412 +0100 @@ -1,0 +2,7 @@ +Thu Nov 5 12:50:40 UTC 2026 - Stefan Dirsch <[email protected]> + +- bsc1289302_CVE-2026-109908_encparse-fix-heap-out-of-bounds-write-in-setCode.patch + * X.Org libfontenc File Parsing Validation Failure (bsc#1289302, + CVE-2026-109908) + +------------------------------------------------------------------- New: ---- bsc1289302_CVE-2026-109908_encparse-fix-heap-out-of-bounds-write-in-setCode.patch ----------(New B)---------- New: - bsc1289302_CVE-2026-109908_encparse-fix-heap-out-of-bounds-write-in-setCode.patch * X.Org libfontenc File Parsing Validation Failure (bsc#1289302, ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfontenc.spec ++++++ --- /var/tmp/diff_new_pack.mE3hSp/_old 2026-11-19 16:53:49.066483748 +0100 +++ /var/tmp/diff_new_pack.mE3hSp/_new 2026-11-19 16:53:49.067483790 +0100 @@ -29,6 +29,7 @@ #Git-Web: http://cgit.freedesktop.org/xorg/lib/libfontenc/ Source: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz Source1: baselibs.conf +Patch0: bsc1289302_CVE-2026-109908_encparse-fix-heap-out-of-bounds-write-in-setCode.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build #git#BuildRequires: autoconf >= 2.60, automake, libtool BuildRequires: meson @@ -70,7 +71,7 @@ in %lname. %prep -%setup -q +%autosetup -p1 %build %meson ++++++ bsc1289302_CVE-2026-109908_encparse-fix-heap-out-of-bounds-write-in-setCode.patch ++++++ >From 63bd5096e2f4889fc486a282fd5c1dfb93d559b0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer <[email protected]> Date: Wed, 16 Sep 2026 15:24:17 +1000 Subject: [PATCH libFontenc] encparse: fix heap out-of-bounds write in setCode() setCode() computes a destination index from two attacker-controlled values taken from the .enc encoding file: index = (from >> 8) * row_size + (from & 0xFF); The "from" parameter is <= 0xFFFF (see the check a few lines above), so from >> 8 can reach 0xFF. row_size comes straight from the SIZE line of the encoding file. The destination buffer is allocated with a size capped at 0x10000 entries. At row_size > 256, the index exceeds the allocation, causing a heap out-of-bounds write. For example, SIZE 256 258 and mapping 0xff00 -> 0 gives: index = 255 * 258 + 0 = 65790, allocation = 65536 entries Additionally, the column bounds check incorrectly tested the global variable "value1" instead of the function parameter "from". For CODE_LINE this happens to be the same value, but for CODE_RANGE_LINE and CODE_UNDEFINE_LINE the loop calls setCode() with different values of "from" while value1 remains unchanged. This vulnerability was discovered by: Adam Bedard working with TrendAI Zero Day Initiative CVE-2026-109908, ZDI-CAN-31888 Assisted-by: Claude:claude-opus-4-6 --- src/encparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git ./src/encparse.c ../src/encparse.c index 39dbc89862f8..8949fd475b88 100644 --- ./src/encparse.c +++ ../src/encparse.c @@ -450,19 +450,21 @@ setCode(unsigned from, unsigned to, unsigned row_size, unsigned short *newenc; if (from > 0xFFFF) return 0; /* success */ if (row_size == 0) index = from; else { - if ((value1 & 0xFF) >= row_size) + if ((from & 0xFF) >= row_size) return 0; /* ignore out of range mappings */ index = (from >> 8) * row_size + (from & 0xFF); + if (index > 0xFFFF) + return 0; /* ignore mappings that exceed the encoding size */ } /* Optimize away useless identity mappings. This is only expected to be useful with linear encodings. */ if (index == to && (index < *first || index > *last)) return 0; if (*encsize == 0) { *encsize = (index < 256) ? 256 : 0x10000; -- 2.55.0
