diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libx11/CVE-2022-3555.patch')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libx11/CVE-2022-3555.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libx11/CVE-2022-3555.patch b/meta/recipes-graphics/xorg-lib/libx11/CVE-2022-3555.patch new file mode 100644 index 0000000000..855ce80e77 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libx11/CVE-2022-3555.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 8a368d808fec166b5fb3dfe6312aab22c7ee20af Mon Sep 17 00:00:00 2001 | ||
2 | From: Hodong <hodong@yozmos.com> | ||
3 | Date: Thu, 20 Jan 2022 00:57:41 +0900 | ||
4 | Subject: [PATCH] Fix two memory leaks in _XFreeX11XCBStructure() | ||
5 | |||
6 | Even when XCloseDisplay() was called, some memory was leaked. | ||
7 | |||
8 | XCloseDisplay() calls _XFreeDisplayStructure(), which calls | ||
9 | _XFreeX11XCBStructure(). | ||
10 | |||
11 | However, _XFreeX11XCBStructure() did not destroy the condition variables, | ||
12 | resulting in the leaking of some 40 bytes. | ||
13 | |||
14 | Signed-off-by: Hodong <hodong@yozmos.com> | ||
15 | |||
16 | Upstream-Status: Backport from [https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/8a368d808fec166b5fb3dfe6312aab22c7ee20af] | ||
17 | CVE:CVE-2022-3555 | ||
18 | Signed-off-by: Vivek Kumbhar <vkumbhar@mvista.com> | ||
19 | --- | ||
20 | src/xcb_disp.c | 2 ++ | ||
21 | 1 file changed, 2 insertions(+) | ||
22 | |||
23 | diff --git a/src/xcb_disp.c b/src/xcb_disp.c | ||
24 | index 70a602f4..e9becee3 100644 | ||
25 | --- a/src/xcb_disp.c | ||
26 | +++ b/src/xcb_disp.c | ||
27 | @@ -102,6 +102,8 @@ void _XFreeX11XCBStructure(Display *dpy) | ||
28 | dpy->xcb->pending_requests = tmp->next; | ||
29 | free(tmp); | ||
30 | } | ||
31 | + xcondition_clear(dpy->xcb->event_notify); | ||
32 | + xcondition_clear(dpy->xcb->reply_notify); | ||
33 | xcondition_free(dpy->xcb->event_notify); | ||
34 | xcondition_free(dpy->xcb->reply_notify); | ||
35 | Xfree(dpy->xcb); | ||
36 | -- | ||
37 | 2.18.2 | ||
38 | |||