summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2025-07-02 21:16:17 +0530
committerSteve Sakoman <steve@sakoman.com>2025-07-09 08:43:32 -0700
commit65e08ee344401b3faa97f3a127b6bac0b377915e (patch)
tree623c9c516cf3772c9cbef3e61ee495ad8ed0b564
parent4bf6e39294dd55e3445919f4831d34d4d7a4016f (diff)
downloadpoky-65e08ee344401b3faa97f3a127b6bac0b377915e.tar.gz
xwayland: fix CVE-2025-49178
A flaw was found in the X server's request handling. Non-zero 'bytes to ignore' in a client's request can cause the server to skip processing another client's request, potentially leading to a denial of service. (From OE-Core rev: 4c6df8320497c2ebf09902a62b6a3f3b061be917) Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-graphics/xwayland/xwayland/CVE-2025-49178.patch50
-rw-r--r--meta/recipes-graphics/xwayland/xwayland_23.2.5.bb1
2 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49178.patch b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49178.patch
new file mode 100644
index 0000000000..5ef2fea1c9
--- /dev/null
+++ b/meta/recipes-graphics/xwayland/xwayland/CVE-2025-49178.patch
@@ -0,0 +1,50 @@
1From d55c54cecb5e83eaa2d56bed5cc4461f9ba318c2 Mon Sep 17 00:00:00 2001
2From: Olivier Fourdan <ofourdan@redhat.com>
3Date: Mon, 28 Apr 2025 10:46:03 +0200
4Subject: [PATCH] os: Account for bytes to ignore when sharing input buffer
5
6When reading requests from the clients, the input buffer might be shared
7and used between different clients.
8
9If a given client sends a full request with non-zero bytes to ignore,
10the bytes to ignore may still be non-zero even though the request is
11full, in which case the buffer could be shared with another client who's
12request will not be processed because of those bytes to ignore, leading
13to a possible hang of the other client request.
14
15To avoid the issue, make sure we have zero bytes to ignore left in the
16input request when sharing the input buffer with another client.
17
18CVE-2025-49178
19
20This issue was discovered by Nils Emmerich <nemmerich@ernw.de> and
21reported by Julian Suleder via ERNW Vulnerability Disclosure.
22
23Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
24Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
25Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2024>
26
27CVE: CVE-2025-49178
28
29Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/d55c54cecb5e83eaa2d56bed5cc4461f9ba318c2]
30
31Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
32---
33 os/io.c | 2 +-
34 1 file changed, 1 insertion(+), 1 deletion(-)
35
36diff --git a/os/io.c b/os/io.c
37index 67465f9..f92a40e 100644
38--- a/os/io.c
39+++ b/os/io.c
40@@ -444,7 +444,7 @@ ReadRequestFromClient(ClientPtr client)
41 */
42
43 gotnow -= needed;
44- if (!gotnow)
45+ if (!gotnow && !oci->ignoreBytes)
46 AvailableInput = oc;
47 if (move_header) {
48 if (client->req_len < bytes_to_int32(sizeof(xBigReq) - sizeof(xReq))) {
49--
502.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 5ed8ca0365..e150961882 100644
--- a/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
+++ b/meta/recipes-graphics/xwayland/xwayland_23.2.5.bb
@@ -28,6 +28,7 @@ SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz \
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 file://CVE-2025-49177.patch \
31 file://CVE-2025-49178.patch \
31" 32"
32SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90" 33SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90"
33 34