mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
xrdp: patch CVE-2022-23493
Details: https://nvd.nist.gov/vuln/detail/CVE-2022-23493
Pick the patch that mentions this vulnerability explicitly.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
(cherry picked from commit f81041bb39)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
committed by
Anuj Mittal
parent
57d69cc4d4
commit
56c1ffb74f
@@ -0,0 +1,33 @@
|
||||
From 030db5524be7616967ae9e7d26b3d4477cf6082d Mon Sep 17 00:00:00 2001
|
||||
From: matt335672 <30179339+matt335672@users.noreply.github.com>
|
||||
Date: Wed, 7 Dec 2022 10:49:06 +0000
|
||||
Subject: [PATCH] CVE-2022-23493
|
||||
|
||||
Check chansrv channel ID on a channel close
|
||||
|
||||
Prevent OOB read if an invalid channel ID is sent.
|
||||
|
||||
CVE: CVE-2022-23493
|
||||
Upstream-Status: Backport [https://github.com/neutrinolabs/xrdp/commit/030db5524be7616967ae9e7d26b3d4477cf6082d]
|
||||
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
|
||||
---
|
||||
xrdp/xrdp_mm.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
|
||||
index 74b0516afa..068424885e 100644
|
||||
--- a/xrdp/xrdp_mm.c
|
||||
+++ b/xrdp/xrdp_mm.c
|
||||
@@ -1435,6 +1435,12 @@ xrdp_mm_trans_process_drdynvc_channel_close(struct xrdp_mm *self,
|
||||
return 1;
|
||||
}
|
||||
in_uint32_le(s, chansrv_chan_id);
|
||||
+ if (chansrv_chan_id < 0 || chansrv_chan_id > 255)
|
||||
+ {
|
||||
+ LOG(LOG_LEVEL_ERROR, "Attempting to close invalid chansrv channel %d",
|
||||
+ chansrv_chan_id);
|
||||
+ return 1;
|
||||
+ }
|
||||
chan_id = self->cs2xr_cid_map[chansrv_chan_id];
|
||||
/* close dynamic channel */
|
||||
error = libxrdp_drdynvc_close(self->wm->session, chan_id);
|
||||
@@ -26,6 +26,7 @@ SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN
|
||||
file://CVE-2022-23482.patch \
|
||||
file://CVE-2022-23483.patch \
|
||||
file://CVE-2022-23484.patch \
|
||||
file://CVE-2022-23493.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb"
|
||||
|
||||
Reference in New Issue
Block a user