summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-07-02 21:16:16 +0530
committerSteve Sakoman <steve@sakoman.com>2025-07-09 08:43:32 -0700
commit4bf6e39294dd55e3445919f4831d34d4d7a4016f (patch)
tree06c961004328be922a01daeaca6774fadf7f5a9c /meta/recipes-graphics
parent0d8b19752ddd401065c873beff61d2c738e37460 (diff)
downloadpoky-4bf6e39294dd55e3445919f4831d34d4d7a4016f.tar.gz
xwayland: fix CVE-2025-49177
A flaw was found in the XFIXES extension. The XFixesSetClientDisconnectMode handler does not validate the request length, allowing a client to read unintended memory from previous requests (From OE-Core rev: 0b2afd59ce8c35083c1cb3596a2f7d4eaa7bd1c8) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.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-49177.patch55
-rw-r--r--meta/recipes-graphics/xwayland/xwayland_23.2.5.bb1
2 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch
new file mode 100644
index 0000000000..56ae1de800
--- /dev/null
+++ b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch
@@ -0,0 +1,55 @@
1From ab02fb96b1c701c3bb47617d965522c34befa6af Mon Sep 17 00:00:00 2001
2From: Olivier Fourdan <ofourdan@redhat.com>
3Date: Mon, 28 Apr 2025 10:05:36 +0200
4Subject: [PATCH] xfixes: Check request length for SetClientDisconnectMode
5
6The handler of XFixesSetClientDisconnectMode does not check the client
7request length.
8
9A client could send a shorter request and read data from a former
10request.
11
12Fix the issue by checking the request size matches.
13
14CVE-2025-49177
15
16This issue was discovered by Nils Emmerich <nemmerich@ernw.de> and
17reported by Julian Suleder via ERNW Vulnerability Disclosure.
18
19Fixes: e167299f6 - xfixes: Add ClientDisconnectMode
20Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
21Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
22Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2024>
23
24CVE: CVE-2025-49177
25
26Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/ab02fb96b1c701c3bb47617d965522c34befa6af]
27
28Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
29---
30 xfixes/disconnect.c | 3 ++-
31 1 file changed, 2 insertions(+), 1 deletion(-)
32
33diff --git a/xfixes/disconnect.c b/xfixes/disconnect.c
34index 28aac45..d6da1f9 100644
35--- a/xfixes/disconnect.c
36+++ b/xfixes/disconnect.c
37@@ -67,6 +67,7 @@ ProcXFixesSetClientDisconnectMode(ClientPtr client)
38 ClientDisconnectPtr pDisconnect = GetClientDisconnect(client);
39
40 REQUEST(xXFixesSetClientDisconnectModeReq);
41+ REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq);
42
43 pDisconnect->disconnect_mode = stuff->disconnect_mode;
44
45@@ -80,7 +81,7 @@ SProcXFixesSetClientDisconnectMode(ClientPtr client)
46
47 swaps(&stuff->length);
48
49- REQUEST_AT_LEAST_SIZE(xXFixesSetClientDisconnectModeReq);
50+ REQUEST_SIZE_MATCH(xXFixesSetClientDisconnectModeReq);
51
52 swapl(&stuff->disconnect_mode);
53
54--
552.40.0
diff --git a/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb b/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
index 72396dcd40..5ed8ca0365 100644
--- a/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
+++ b/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
@@ -27,6 +27,7 @@ SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz \
27 file://CVE-2025-49175.patch \ 27 file://CVE-2025-49175.patch \
28 file://CVE-2025-49176-0001.patch \ 28 file://CVE-2025-49176-0001.patch \
29 file://CVE-2025-49176-0002.patch \ 29 file://CVE-2025-49176-0002.patch \
30 file://CVE-2025-49177.patch \
30" 31"
31SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90" 32SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90"
32 33