summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorVijay Anusuri <vanusuri@mvista.com>2025-03-04 17:49:13 +0530
committerSteve Sakoman <steve@sakoman.com>2025-03-08 06:35:36 -0800
commit775d6023272d8b7df8f6f88f2921b292011ebd5e (patch)
tree91251f6081cedfcede6ffc4bb13a5d3e62f88e7d /meta/recipes-graphics
parentb48431c424acc38d722c6ed81ae08ad919f4f03e (diff)
downloadpoky-775d6023272d8b7df8f6f88f2921b292011ebd5e.tar.gz
xwayland: Fix CVE-2025-26596
Patch copied from xserver-xorg recipe. CVE reported for both and patch apply on both. Upstream-Commit: https://gitlab.freedesktop.org/xorg/xserver/-/commit/80d69f01 (From OE-Core rev: 45738e56aaf5dac1a471cb37088d3cd24764156d) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch49
-rw-r--r--meta/recipes-graphics/xwayland/xwayland_22.1.8.bb1
2 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch
new file mode 100644
index 0000000000..f9df8d75ea
--- /dev/null
+++ b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-26596.patch
@@ -0,0 +1,49 @@
1From 80d69f01423fc065c950e1ff4e8ddf9f675df773 Mon Sep 17 00:00:00 2001
2From: Olivier Fourdan <ofourdan@redhat.com>
3Date: Thu, 28 Nov 2024 11:49:34 +0100
4Subject: [PATCH] xkb: Fix computation of XkbSizeKeySyms
5
6The computation of the length in XkbSizeKeySyms() differs from what is
7actually written in XkbWriteKeySyms(), leading to a heap overflow.
8
9Fix the calculation in XkbSizeKeySyms() to match what kbWriteKeySyms()
10does.
11
12CVE-2025-26596, ZDI-CAN-25543
13
14This vulnerability was discovered by:
15Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
16
17Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
18Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
19Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1828>
20
21Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/80d69f01]
22CVE: CVE-2025-26596
23Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
24---
25 xkb/xkb.c | 8 ++++----
26 1 file changed, 4 insertions(+), 4 deletions(-)
27
28diff --git a/xkb/xkb.c b/xkb/xkb.c
29index 85659382da..744dba63d7 100644
30--- a/xkb/xkb.c
31+++ b/xkb/xkb.c
32@@ -1095,10 +1095,10 @@ XkbSizeKeySyms(XkbDescPtr xkb, xkbGetMapReply * rep)
33 len = rep->nKeySyms * SIZEOF(xkbSymMapWireDesc);
34 symMap = &xkb->map->key_sym_map[rep->firstKeySym];
35 for (i = nSyms = 0; i < rep->nKeySyms; i++, symMap++) {
36- if (symMap->offset != 0) {
37- nSymsThisKey = XkbNumGroups(symMap->group_info) * symMap->width;
38- nSyms += nSymsThisKey;
39- }
40+ nSymsThisKey = XkbNumGroups(symMap->group_info) * symMap->width;
41+ if (nSymsThisKey == 0)
42+ continue;
43+ nSyms += nSymsThisKey;
44 }
45 len += nSyms * 4;
46 rep->totalSyms = nSyms;
47--
48GitLab
49
diff --git a/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb b/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb
index 452bae8c8d..18fe2dbc98 100644
--- a/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb
+++ b/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb
@@ -32,6 +32,7 @@ SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz \
32 file://CVE-2025-26594-1.patch \ 32 file://CVE-2025-26594-1.patch \
33 file://CVE-2025-26594-2.patch \ 33 file://CVE-2025-26594-2.patch \
34 file://CVE-2025-26595.patch \ 34 file://CVE-2025-26595.patch \
35 file://CVE-2025-26596.patch \
35" 36"
36SRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73" 37SRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73"
37 38