diff options
author | Kai Kang <kai.kang@windriver.com> | 2021-12-28 17:29:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-07 23:21:34 +0000 |
commit | b6e3bbc1deaaa75ee26a8ef0f23eb0b3203c56e0 (patch) | |
tree | e5474ec37a3e452fdbec8aed06d367034d6476a0 /meta/recipes-graphics | |
parent | cf5da90349232565c9507fcf0cf333c2b7fa425b (diff) | |
download | poky-b6e3bbc1deaaa75ee26a8ef0f23eb0b3203c56e0.tar.gz |
xserver-xorg: fix CVE-2021-4010
Backport patch to fix CVE-2021-4010 for xserver-xorg.
CVE: CVE-2021-4010
(From OE-Core rev: 487971876baa9913541a187d98deddc00e60d3f8)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2021-4010.patch | 39 | ||||
-rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.10.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2021-4010.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2021-4010.patch new file mode 100644 index 0000000000..06ebe7d077 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2021-4010.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | Backport patch to fix CVE-2021-4010. | ||
2 | |||
3 | CVE: CVE-2021-4010 | ||
4 | Upstream-Status: Backport [https://gitlab.freedesktop.org/xorg/xserver/-/commit/6c4c530] | ||
5 | |||
6 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
7 | |||
8 | From 6c4c53010772e3cb4cb8acd54950c8eec9c00d21 Mon Sep 17 00:00:00 2001 | ||
9 | From: Povilas Kanapickas <povilas@radix.lt> | ||
10 | Date: Tue, 14 Dec 2021 15:00:02 +0200 | ||
11 | Subject: [PATCH] Xext: Fix out of bounds access in SProcScreenSaverSuspend() | ||
12 | |||
13 | ZDI-CAN-14951, CVE-2021-4010 | ||
14 | |||
15 | This vulnerability was discovered and the fix was suggested by: | ||
16 | Jan-Niklas Sohn working with Trend Micro Zero Day Initiative | ||
17 | |||
18 | Signed-off-by: Povilas Kanapickas <povilas@radix.lt> | ||
19 | --- | ||
20 | Xext/saver.c | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/Xext/saver.c b/Xext/saver.c | ||
24 | index 1d7e3cadf..f813ba08d 100644 | ||
25 | --- a/Xext/saver.c | ||
26 | +++ b/Xext/saver.c | ||
27 | @@ -1351,8 +1351,8 @@ SProcScreenSaverSuspend(ClientPtr client) | ||
28 | REQUEST(xScreenSaverSuspendReq); | ||
29 | |||
30 | swaps(&stuff->length); | ||
31 | - swapl(&stuff->suspend); | ||
32 | REQUEST_SIZE_MATCH(xScreenSaverSuspendReq); | ||
33 | + swapl(&stuff->suspend); | ||
34 | return ProcScreenSaverSuspend(client); | ||
35 | } | ||
36 | |||
37 | -- | ||
38 | GitLab | ||
39 | |||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.10.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.10.bb index ac32bb25c2..84b0acb42f 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.10.bb +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.10.bb | |||
@@ -11,6 +11,7 @@ SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.pat | |||
11 | file://0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch \ | 11 | file://0001-hw-xwayland-Makefile.am-fix-build-without-glx.patch \ |
12 | file://CVE-2021-4008.patch \ | 12 | file://CVE-2021-4008.patch \ |
13 | file://CVE-2021-4009.patch \ | 13 | file://CVE-2021-4009.patch \ |
14 | file://CVE-2021-4010.patch \ | ||
14 | " | 15 | " |
15 | SRC_URI[sha256sum] = "977420c082450dc808de301ef56af4856d653eea71519a973c3490a780cb7c99" | 16 | SRC_URI[sha256sum] = "977420c082450dc808de301ef56af4856d653eea71519a973c3490a780cb7c99" |
16 | 17 | ||