summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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