diff options
-rw-r--r-- | meta/recipes-graphics/xwayland/xwayland/CVE-2025-49177.patch | 55 | ||||
-rw-r--r-- | meta/recipes-graphics/xwayland/xwayland_23.2.5.bb | 1 |
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 @@ | |||
1 | From ab02fb96b1c701c3bb47617d965522c34befa6af Mon Sep 17 00:00:00 2001 | ||
2 | From: Olivier Fourdan <ofourdan@redhat.com> | ||
3 | Date: Mon, 28 Apr 2025 10:05:36 +0200 | ||
4 | Subject: [PATCH] xfixes: Check request length for SetClientDisconnectMode | ||
5 | |||
6 | The handler of XFixesSetClientDisconnectMode does not check the client | ||
7 | request length. | ||
8 | |||
9 | A client could send a shorter request and read data from a former | ||
10 | request. | ||
11 | |||
12 | Fix the issue by checking the request size matches. | ||
13 | |||
14 | CVE-2025-49177 | ||
15 | |||
16 | This issue was discovered by Nils Emmerich <nemmerich@ernw.de> and | ||
17 | reported by Julian Suleder via ERNW Vulnerability Disclosure. | ||
18 | |||
19 | Fixes: e167299f6 - xfixes: Add ClientDisconnectMode | ||
20 | Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> | ||
21 | Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> | ||
22 | Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2024> | ||
23 | |||
24 | CVE: CVE-2025-49177 | ||
25 | |||
26 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/ab02fb96b1c701c3bb47617d965522c34befa6af] | ||
27 | |||
28 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
29 | --- | ||
30 | xfixes/disconnect.c | 3 ++- | ||
31 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
32 | |||
33 | diff --git a/xfixes/disconnect.c b/xfixes/disconnect.c | ||
34 | index 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 | -- | ||
55 | 2.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 | " |
31 | SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90" | 32 | SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90" |
32 | 33 | ||