summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch44
-rw-r--r--meta/recipes-graphics/freetype/freetype_2.11.1.bb1
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch b/meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch
new file mode 100644
index 0000000000..28fc50c0cb
--- /dev/null
+++ b/meta/recipes-graphics/freetype/freetype/CVE-2025-27363.patch
@@ -0,0 +1,44 @@
1From 26b83ec58c60ced0e6c423df438227fb33ccca2e Mon Sep 17 00:00:00 2001
2From: Marc Deslauriers <marc.deslauriers@ubuntu.com>
3Date: Thu, 13 Mar 2025 08:41:20 -0400
4Subject: [PATCH] fix OOB write when when attempting to parse font subglyph
5 structures
6
7Gbp-Pq: CVE-2025-27363.patch.
8
9Source: https://git.launchpad.net/ubuntu/+source/freetype/commit/?h=applied/ubuntu/jammy-devel&id=fc406fb02653852dfa5979672e3d8d56ed329186
10
11CVE: CVE-2025-27363
12Upstream-Status: Inappropriate [cannot do exact patch backport as the code changed too much]
13Signed-off-by: Peter Marko <peter.marko@siemens.com>
14---
15 src/truetype/ttgload.c | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
17
18diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
19index 11968f6..f5aa292 100644
20--- a/src/truetype/ttgload.c
21+++ b/src/truetype/ttgload.c
22@@ -1948,7 +1948,7 @@
23 short i, limit;
24 FT_SubGlyph subglyph;
25
26- FT_Outline outline;
27+ FT_Outline outline = { 0, 0, NULL, NULL, NULL, 0 };
28 FT_Vector* points = NULL;
29 char* tags = NULL;
30 short* contours = NULL;
31@@ -1957,6 +1957,13 @@
32
33 limit = (short)gloader->current.num_subglyphs;
34
35+ /* make sure this isn't negative as we're going to add 4 later */
36+ if ( limit < 0 )
37+ {
38+ error = FT_THROW( Invalid_Argument );
39+ goto Exit;
40+ }
41+
42 /* construct an outline structure for */
43 /* communication with `TT_Vary_Apply_Glyph_Deltas' */
44 outline.n_points = (short)( gloader->current.num_subglyphs + 4 );
diff --git a/meta/recipes-graphics/freetype/freetype_2.11.1.bb b/meta/recipes-graphics/freetype/freetype_2.11.1.bb
index 29f4d8dfb7..22158511c1 100644
--- a/meta/recipes-graphics/freetype/freetype_2.11.1.bb
+++ b/meta/recipes-graphics/freetype/freetype_2.11.1.bb
@@ -17,6 +17,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.xz \
17 file://CVE-2022-27405.patch \ 17 file://CVE-2022-27405.patch \
18 file://CVE-2022-27406.patch \ 18 file://CVE-2022-27406.patch \
19 file://CVE-2023-2004.patch \ 19 file://CVE-2023-2004.patch \
20 file://CVE-2025-27363.patch \
20 " 21 "
21SRC_URI[sha256sum] = "3333ae7cfda88429c97a7ae63b7d01ab398076c3b67182e960e5684050f2c5c8" 22SRC_URI[sha256sum] = "3333ae7cfda88429c97a7ae63b7d01ab398076c3b67182e960e5684050f2c5c8"
22 23