summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-01-24 07:30:04 +0100
committerAnuj Mittal <anuj.mittal@oss.qualcomm.com>2026-02-02 08:12:59 +0530
commit57d69cc4d40af83c41e5b87eecec79914468f033 (patch)
tree9cd99fe90c180918c96710044cc8345046a86b1e
parentd999dd3cc4ca1b2a9b9b06da8c377eb716e704ff (diff)
downloadmeta-openembedded-57d69cc4d40af83c41e5b87eecec79914468f033.tar.gz
xrdp: patch CVE-2022-23484
Details: https://nvd.nist.gov/vuln/detail/CVE-2022-23484 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 2578e5c17d95cdb56e3d85cecaf541d7473122f9) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
-rw-r--r--meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23484.patch31
-rw-r--r--meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23484.patch b/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23484.patch
new file mode 100644
index 0000000000..af27c50376
--- /dev/null
+++ b/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23484.patch
@@ -0,0 +1,31 @@
1From c2c6efb1d377be6baaa4acbc9d3700490fe92887 Mon Sep 17 00:00:00 2001
2From: matt335672 <30179339+matt335672@users.noreply.github.com>
3Date: Wed, 7 Dec 2022 10:03:24 +0000
4Subject: [PATCH] CVE-2022-23484
5
6Add check for RAIL window text size
7
8CVE: CVE-2022-23484
9Upstream-Status: Backport [https://github.com/neutrinolabs/xrdp/commit/c2c6efb1d377be6baaa4acbc9d3700490fe92887]
10Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
11---
12 xrdp/xrdp_mm.c | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
16index 74b0516afa..4352625874 100644
17--- a/xrdp/xrdp_mm.c
18+++ b/xrdp/xrdp_mm.c
19@@ -929,6 +929,12 @@ xrdp_mm_process_rail_update_window_text(struct xrdp_mm *self, struct stream *s)
20
21 g_memset(&rwso, 0, sizeof(rwso));
22 in_uint32_le(s, size); /* title size */
23+ if (size < 0 || !s_check_rem(s, size))
24+ {
25+ LOG(LOG_LEVEL_ERROR, "%s : invalid window text size %d",
26+ __func__, size);
27+ return 1;
28+ }
29 rwso.title_info = g_new(char, size + 1);
30 in_uint8a(s, rwso.title_info, size);
31 rwso.title_info[size] = 0;
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 f8fd052e7f..c67f2e83d8 100644
--- a/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb
+++ b/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb
@@ -25,6 +25,7 @@ SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN
25 file://CVE-2022-23481.patch \ 25 file://CVE-2022-23481.patch \
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 " 29 "
29 30
30SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb" 31SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb"