summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2026-02-20 17:21:16 +0100
committerPaul Barker <paul@pbarker.dev>2026-02-27 15:54:02 +0000
commitad4c2759f06009ae04ef2a3158f80103ac024f43 (patch)
treeaf506dda1cc2ecd7fa5576381699e64da9863828 /meta/recipes-core
parent69d100e7f05be51fe8618844eed51c9d84024807 (diff)
downloadpoky-ad4c2759f06009ae04ef2a3158f80103ac024f43.tar.gz
glib-2.0: patch CVE-2026-1485
Pick patch from [1] linked from [2]. [1] https://gitlab.gnome.org/GNOME/glib/-/issues/3871 [2] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4981 (From OE-Core rev: 1996441fcebaa2e08eecceb3cf00d39fda8cff35) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Paul Barker <paul@pbarker.dev>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/CVE-2026-1485.patch44
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb1
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/CVE-2026-1485.patch b/meta/recipes-core/glib-2.0/glib-2.0/CVE-2026-1485.patch
new file mode 100644
index 0000000000..6768a1d00c
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0/CVE-2026-1485.patch
@@ -0,0 +1,44 @@
1From ee5acb2cefc643450509374da2600cd3bf49a109 Mon Sep 17 00:00:00 2001
2From: Marco Trevisan <mail@3v1n0.net>
3Date: Fri, 23 Jan 2026 19:05:44 +0100
4Subject: [PATCH] gio/gcontenttype-fdo: Do not overflow if header is longer
5 than MAXINT
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10In case the header size is longer than MAXINT we may read and write to
11invalid locations
12
13Spotted by treeplus.
14Thanks to the Sovereign Tech Resilience programme from the Sovereign
15Tech Agency.
16
17ID: #YWH-PGM9867-169
18Closes: #3871
19
20
21(cherry picked from commit aacda5b07141b944408c79e83bcbed3b2e1e6e45)
22
23Co-authored-by: Marco Trevisan (TreviƱo) <mail@3v1n0.net>
24
25CVE: CVE-2026-1485
26Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/ee5acb2cefc643450509374da2600cd3bf49a109]
27Signed-off-by: Peter Marko <peter.marko@siemens.com>
28---
29 gio/gcontenttype.c | 2 +-
30 1 file changed, 1 insertion(+), 1 deletion(-)
31
32diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
33index 230cea182..11323973a 100644
34--- a/gio/gcontenttype.c
35+++ b/gio/gcontenttype.c
36@@ -1013,7 +1013,7 @@ tree_match_free (TreeMatch *match)
37 static TreeMatch *
38 parse_header (gchar *line)
39 {
40- gint len;
41+ size_t len;
42 gchar *s;
43 TreeMatch *match;
44
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb
index c6816f93fa..37a5fd34a9 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb
@@ -73,6 +73,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
73 file://CVE-2026-0988.patch \ 73 file://CVE-2026-0988.patch \
74 file://CVE-2026-1484-01.patch \ 74 file://CVE-2026-1484-01.patch \
75 file://CVE-2026-1484-02.patch \ 75 file://CVE-2026-1484-02.patch \
76 file://CVE-2026-1485.patch \
76 " 77 "
77SRC_URI:append:class-native = " file://relocate-modules.patch" 78SRC_URI:append:class-native = " file://relocate-modules.patch"
78 79