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

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