diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2025-03-04 17:49:07 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-03-08 06:35:36 -0800 |
| commit | 4a8c873ccf4579b23a292252d6e61eea3f49fd7a (patch) | |
| tree | 996c3ee4ffc932e47686c4b3455e5c3d46e4f33f /meta/recipes-graphics | |
| parent | 3bbaf11178b07d173bd1ed3c58894a810c62dbe1 (diff) | |
| download | poky-4a8c873ccf4579b23a292252d6e61eea3f49fd7a.tar.gz | |
xwayland: Fix CVE-2024-31080
Patch copied from xserver-xorg recipe.
CVE reported for both and patch apply on both.
Upstream-Commit: https://gitlab.freedesktop.org/xorg/xserver/-/commit/96798fc1967491c80a4d0c8d9e0a80586cb2152b
(From OE-Core rev: 4e41b1c8cccd3b2f359ee949cad402b9418f5983)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-graphics')
| -rw-r--r-- | meta/recipes-graphics/xwayland/xwayland/CVE-2024-31080.patch | 49 | ||||
| -rw-r--r-- | meta/recipes-graphics/xwayland/xwayland_22.1.8.bb | 1 |
2 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xwayland/xwayland/CVE-2024-31080.patch b/meta/recipes-graphics/xwayland/xwayland/CVE-2024-31080.patch new file mode 100644 index 0000000000..40296903cd --- /dev/null +++ b/meta/recipes-graphics/xwayland/xwayland/CVE-2024-31080.patch | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | From 96798fc1967491c80a4d0c8d9e0a80586cb2152b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alan Coopersmith <alan.coopersmith@oracle.com> | ||
| 3 | Date: Fri, 22 Mar 2024 18:51:45 -0700 | ||
| 4 | Subject: [PATCH] Xi: ProcXIGetSelectedEvents needs to use unswapped length to | ||
| 5 | send reply | ||
| 6 | |||
| 7 | CVE-2024-31080 | ||
| 8 | |||
| 9 | Reported-by: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69762 | ||
| 10 | Fixes: 53e821ab4 ("Xi: add request processing for XIGetSelectedEvents.") | ||
| 11 | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> | ||
| 12 | Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1463> | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/96798fc1967491c80a4d0c8d9e0a80586cb2152b] | ||
| 15 | CVE: CVE-2024-31080 | ||
| 16 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 17 | --- | ||
| 18 | Xi/xiselectev.c | 5 ++++- | ||
| 19 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c | ||
| 22 | index edcb8a0d36..ac14949871 100644 | ||
| 23 | --- a/Xi/xiselectev.c | ||
| 24 | +++ b/Xi/xiselectev.c | ||
| 25 | @@ -349,6 +349,7 @@ ProcXIGetSelectedEvents(ClientPtr client) | ||
| 26 | InputClientsPtr others = NULL; | ||
| 27 | xXIEventMask *evmask = NULL; | ||
| 28 | DeviceIntPtr dev; | ||
| 29 | + uint32_t length; | ||
| 30 | |||
| 31 | REQUEST(xXIGetSelectedEventsReq); | ||
| 32 | REQUEST_SIZE_MATCH(xXIGetSelectedEventsReq); | ||
| 33 | @@ -418,10 +419,12 @@ ProcXIGetSelectedEvents(ClientPtr client) | ||
| 34 | } | ||
| 35 | } | ||
| 36 | |||
| 37 | + /* save the value before SRepXIGetSelectedEvents swaps it */ | ||
| 38 | + length = reply.length; | ||
| 39 | WriteReplyToClient(client, sizeof(xXIGetSelectedEventsReply), &reply); | ||
| 40 | |||
| 41 | if (reply.num_masks) | ||
| 42 | - WriteToClient(client, reply.length * 4, buffer); | ||
| 43 | + WriteToClient(client, length * 4, buffer); | ||
| 44 | |||
| 45 | free(buffer); | ||
| 46 | return Success; | ||
| 47 | -- | ||
| 48 | GitLab | ||
| 49 | |||
diff --git a/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb b/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb index 1d4e699d94..78e849b305 100644 --- a/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb +++ b/meta/recipes-graphics/xwayland/xwayland_22.1.8.bb | |||
| @@ -24,6 +24,7 @@ SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz \ | |||
| 24 | file://CVE-2024-21885.patch \ | 24 | file://CVE-2024-21885.patch \ |
| 25 | file://CVE-2024-21886-1.patch \ | 25 | file://CVE-2024-21886-1.patch \ |
| 26 | file://CVE-2024-21886-2.patch \ | 26 | file://CVE-2024-21886-2.patch \ |
| 27 | file://CVE-2024-31080.patch \ | ||
| 27 | " | 28 | " |
| 28 | SRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73" | 29 | SRC_URI[sha256sum] = "d11eeee73290b88ea8da42a7d9350dedfaba856ce4ae44e58c045ad9ecaa2f73" |
| 29 | 30 | ||
