Blame SOURCES/0003-Xext-Fix-out-of-bounds-access-in-SProcScreenSaverSus.patch

2936a4
From fe0c050276c09f43cc1ae80b4553db42398ca84c Mon Sep 17 00:00:00 2001
2936a4
From: Povilas Kanapickas <povilas@radix.lt>
2936a4
Date: Tue, 14 Dec 2021 15:00:02 +0200
2936a4
Subject: [PATCH xserver 3/4] Xext: Fix out of bounds access in
2936a4
 SProcScreenSaverSuspend()
2936a4
2936a4
ZDI-CAN-14951, CVE-2021-4010
2936a4
2936a4
This vulnerability was discovered and the fix was suggested by:
2936a4
Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
2936a4
2936a4
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2936a4
(cherry picked from commit 6c4c53010772e3cb4cb8acd54950c8eec9c00d21)
2936a4
---
2936a4
 Xext/saver.c | 2 +-
2936a4
 1 file changed, 1 insertion(+), 1 deletion(-)
2936a4
2936a4
diff --git a/Xext/saver.c b/Xext/saver.c
2936a4
index 1d7e3cadf..f813ba08d 100644
2936a4
--- a/Xext/saver.c
2936a4
+++ b/Xext/saver.c
2936a4
@@ -1351,8 +1351,8 @@ SProcScreenSaverSuspend(ClientPtr client)
2936a4
     REQUEST(xScreenSaverSuspendReq);
2936a4
 
2936a4
     swaps(&stuff->length);
2936a4
-    swapl(&stuff->suspend);
2936a4
     REQUEST_SIZE_MATCH(xScreenSaverSuspendReq);
2936a4
+    swapl(&stuff->suspend);
2936a4
     return ProcScreenSaverSuspend(client);
2936a4
 }
2936a4
 
2936a4
-- 
2936a4
2.33.1
2936a4