wok-current view xorg-server/stuff/CVE-2023-0494.patch @ rev 25701
Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Apr 19 12:48:51 2024 +0000 (7 months ago) |
parents | |
children |
line source
1 From 0ba6d8c37071131a49790243cdac55392ecf71ec Mon Sep 17 00:00:00 2001
2 From: Peter Hutterer <peter.hutterer@who-t.net>
3 Date: Wed, 25 Jan 2023 11:41:40 +1000
4 Subject: [PATCH] Xi: fix potential use-after-free in DeepCopyPointerClasses
6 CVE-2023-0494, ZDI-CAN-19596
8 This vulnerability was discovered by:
9 Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
11 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
12 ---
13 Xi/exevents.c | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
16 diff --git a/Xi/exevents.c b/Xi/exevents.c
17 index 217baa956..dcd4efb3b 100644
18 --- a/Xi/exevents.c
19 +++ b/Xi/exevents.c
20 @@ -619,8 +619,10 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr to)
21 memcpy(to->button->xkb_acts, from->button->xkb_acts,
22 sizeof(XkbAction));
23 }
24 - else
25 + else {
26 free(to->button->xkb_acts);
27 + to->button->xkb_acts = NULL;
28 + }
30 memcpy(to->button->labels, from->button->labels,
31 from->button->numButtons * sizeof(Atom));
32 --
33 GitLab