mirror of
git://slackware.nl/current.git
synced 2024-12-29 10:25:00 +01:00
d6e7dd0417
patches/packages/xorg-server-1.20.14-x86_64-12_slack15.0.txz: Rebuilt. This update fixes security issues: Heap buffer overread/data leakage in ProcXIGetSelectedEvents. Heap buffer overread/data leakage in ProcXIPassiveGrabDevice. Heap buffer overread/data leakage in ProcAppleDRICreatePixmap. Use-after-free in ProcRenderAddGlyphs. For more information, see: https://lists.x.org/archives/xorg-announce/2024-April/003497.html https://www.cve.org/CVERecord?id=CVE-2024-31080 https://www.cve.org/CVERecord?id=CVE-2024-31081 https://www.cve.org/CVERecord?id=CVE-2024-31082 https://www.cve.org/CVERecord?id=CVE-2024-31083 (* Security fix *) patches/packages/xorg-server-xephyr-1.20.14-x86_64-12_slack15.0.txz: Rebuilt. patches/packages/xorg-server-xnest-1.20.14-x86_64-12_slack15.0.txz: Rebuilt. patches/packages/xorg-server-xvfb-1.20.14-x86_64-12_slack15.0.txz: Rebuilt. patches/packages/xorg-server-xwayland-21.1.4-x86_64-11_slack15.0.txz: Rebuilt. This update fixes security issues: Heap buffer overread/data leakage in ProcXIGetSelectedEvents. Heap buffer overread/data leakage in ProcXIPassiveGrabDevice. Use-after-free in ProcRenderAddGlyphs. For more information, see: https://lists.x.org/archives/xorg-announce/2024-April/003497.html https://www.cve.org/CVERecord?id=CVE-2024-31080 https://www.cve.org/CVERecord?id=CVE-2024-31081 https://www.cve.org/CVERecord?id=CVE-2024-31083 (* Security fix *)
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From 96798fc1967491c80a4d0c8d9e0a80586cb2152b Mon Sep 17 00:00:00 2001
|
|
From: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Date: Fri, 22 Mar 2024 18:51:45 -0700
|
|
Subject: [PATCH] Xi: ProcXIGetSelectedEvents needs to use unswapped length to
|
|
send reply
|
|
|
|
CVE-2024-31080
|
|
|
|
Reported-by: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69762
|
|
Fixes: 53e821ab4 ("Xi: add request processing for XIGetSelectedEvents.")
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1463>
|
|
---
|
|
Xi/xiselectev.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c
|
|
index edcb8a0d36..ac14949871 100644
|
|
--- a/Xi/xiselectev.c
|
|
+++ b/Xi/xiselectev.c
|
|
@@ -349,6 +349,7 @@ ProcXIGetSelectedEvents(ClientPtr client)
|
|
InputClientsPtr others = NULL;
|
|
xXIEventMask *evmask = NULL;
|
|
DeviceIntPtr dev;
|
|
+ uint32_t length;
|
|
|
|
REQUEST(xXIGetSelectedEventsReq);
|
|
REQUEST_SIZE_MATCH(xXIGetSelectedEventsReq);
|
|
@@ -418,10 +419,12 @@ ProcXIGetSelectedEvents(ClientPtr client)
|
|
}
|
|
}
|
|
|
|
+ /* save the value before SRepXIGetSelectedEvents swaps it */
|
|
+ length = reply.length;
|
|
WriteReplyToClient(client, sizeof(xXIGetSelectedEventsReply), &reply);
|
|
|
|
if (reply.num_masks)
|
|
- WriteToClient(client, reply.length * 4, buffer);
|
|
+ WriteToClient(client, length * 4, buffer);
|
|
|
|
free(buffer);
|
|
return Success;
|
|
--
|
|
GitLab
|
|
|