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