summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23493.patch33
-rw-r--r--meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23493.patch b/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23493.patch
new file mode 100644
index 0000000000..de3f7a42f3
--- /dev/null
+++ b/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23493.patch
@@ -0,0 +1,33 @@
1From 030db5524be7616967ae9e7d26b3d4477cf6082d Mon Sep 17 00:00:00 2001
2From: matt335672 <30179339+matt335672@users.noreply.github.com>
3Date: Wed, 7 Dec 2022 10:49:06 +0000
4Subject: [PATCH] CVE-2022-23493
5
6Check chansrv channel ID on a channel close
7
8Prevent OOB read if an invalid channel ID is sent.
9
10CVE: CVE-2022-23493
11Upstream-Status: Backport [https://github.com/neutrinolabs/xrdp/commit/030db5524be7616967ae9e7d26b3d4477cf6082d]
12Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
13---
14 xrdp/xrdp_mm.c | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
18index 74b0516afa..068424885e 100644
19--- a/xrdp/xrdp_mm.c
20+++ b/xrdp/xrdp_mm.c
21@@ -1435,6 +1435,12 @@ xrdp_mm_trans_process_drdynvc_channel_close(struct xrdp_mm *self,
22 return 1;
23 }
24 in_uint32_le(s, chansrv_chan_id);
25+ if (chansrv_chan_id < 0 || chansrv_chan_id > 255)
26+ {
27+ LOG(LOG_LEVEL_ERROR, "Attempting to close invalid chansrv channel %d",
28+ chansrv_chan_id);
29+ return 1;
30+ }
31 chan_id = self->cs2xr_cid_map[chansrv_chan_id];
32 /* close dynamic channel */
33 error = libxrdp_drdynvc_close(self->wm->session, chan_id);
diff --git a/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb b/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb
index c67f2e83d8..663ee9297a 100644
--- a/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb
+++ b/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb
@@ -26,6 +26,7 @@ SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN
26 file://CVE-2022-23482.patch \ 26 file://CVE-2022-23482.patch \
27 file://CVE-2022-23483.patch \ 27 file://CVE-2022-23483.patch \
28 file://CVE-2022-23484.patch \ 28 file://CVE-2022-23484.patch \
29 file://CVE-2022-23493.patch \
29 " 30 "
30 31
31SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb" 32SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb"