diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-07-02 21:16:17 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-07-09 08:43:32 -0700 |
| commit | 65e08ee344401b3faa97f3a127b6bac0b377915e (patch) | |
| tree | 623c9c516cf3772c9cbef3e61ee495ad8ed0b564 | |
| parent | 4bf6e39294dd55e3445919f4831d34d4d7a4016f (diff) | |
| download | poky-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.patch | 50 | ||||
| -rw-r--r-- | meta/recipes-graphics/xwayland/xwayland_23.2.5.bb | 1 |
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 @@ | |||
| 1 | From d55c54cecb5e83eaa2d56bed5cc4461f9ba318c2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Olivier Fourdan <ofourdan@redhat.com> | ||
| 3 | Date: Mon, 28 Apr 2025 10:46:03 +0200 | ||
| 4 | Subject: [PATCH] os: Account for bytes to ignore when sharing input buffer | ||
| 5 | |||
| 6 | When reading requests from the clients, the input buffer might be shared | ||
| 7 | and used between different clients. | ||
| 8 | |||
| 9 | If a given client sends a full request with non-zero bytes to ignore, | ||
| 10 | the bytes to ignore may still be non-zero even though the request is | ||
| 11 | full, in which case the buffer could be shared with another client who's | ||
| 12 | request will not be processed because of those bytes to ignore, leading | ||
| 13 | to a possible hang of the other client request. | ||
| 14 | |||
| 15 | To avoid the issue, make sure we have zero bytes to ignore left in the | ||
| 16 | input request when sharing the input buffer with another client. | ||
| 17 | |||
| 18 | CVE-2025-49178 | ||
| 19 | |||
| 20 | This issue was discovered by Nils Emmerich <nemmerich@ernw.de> and | ||
| 21 | reported by Julian Suleder via ERNW Vulnerability Disclosure. | ||
| 22 | |||
| 23 | Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> | ||
| 24 | Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> | ||
| 25 | Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2024> | ||
| 26 | |||
| 27 | CVE: CVE-2025-49178 | ||
| 28 | |||
| 29 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/d55c54cecb5e83eaa2d56bed5cc4461f9ba318c2] | ||
| 30 | |||
| 31 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 32 | --- | ||
| 33 | os/io.c | 2 +- | ||
| 34 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 35 | |||
| 36 | diff --git a/os/io.c b/os/io.c | ||
| 37 | index 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 | -- | ||
| 50 | 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 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 | " |
| 32 | SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90" | 33 | SRC_URI[sha256sum] = "33ec7ff2687a59faaa52b9b09aa8caf118e7ecb6aed8953f526a625ff9f4bd90" |
| 33 | 34 | ||
