diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-01-24 07:30:01 +0100 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-02-02 08:12:58 +0530 |
| commit | 5655e9709373a97edac415dc386320a11b825959 (patch) | |
| tree | 8f53870cdfdd74a99d4c3816d92d8969bf454a4b /meta-oe/recipes-support/xrdp | |
| parent | 563d8052cfc476f97a0362132144c1ef17c3348b (diff) | |
| download | meta-openembedded-5655e9709373a97edac415dc386320a11b825959.tar.gz | |
xrdp: patch CVE-2022-23481
Details: https://nvd.nist.gov/vuln/detail/CVE-2022-23481
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 64ee8f84c4edfb4d0b9b2e299e1a1afe6a6168e0)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-oe/recipes-support/xrdp')
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23481.patch | 46 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23481.patch b/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23481.patch new file mode 100644 index 0000000000..bb2d3c8cfa --- /dev/null +++ b/meta-oe/recipes-support/xrdp/xrdp/CVE-2022-23481.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From c77e974080da8267d902f99ca5ab7d22ea02d98c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: matt335672 <30179339+matt335672@users.noreply.github.com> | ||
| 3 | Date: Wed, 7 Dec 2022 10:40:25 +0000 | ||
| 4 | Subject: [PATCH] CVE-2022-23481 | ||
| 5 | |||
| 6 | Add length checks to client confirm active PDU parsing | ||
| 7 | |||
| 8 | CVE: CVE-2022-23481 | ||
| 9 | Upstream-Status: Backport [https://github.com/neutrinolabs/xrdp/commit/c77e974080da8267d902f99ca5ab7d22ea02d98c] | ||
| 10 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 11 | --- | ||
| 12 | libxrdp/xrdp_caps.c | 14 ++++++++++++++ | ||
| 13 | 1 file changed, 14 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c | ||
| 16 | index 5c5e74a579..ac21cc0a18 100644 | ||
| 17 | --- a/libxrdp/xrdp_caps.c | ||
| 18 | +++ b/libxrdp/xrdp_caps.c | ||
| 19 | @@ -667,13 +667,27 @@ xrdp_caps_process_confirm_active(struct xrdp_rdp *self, struct stream *s) | ||
| 20 | int len; | ||
| 21 | char *p; | ||
| 22 | |||
| 23 | + if (!s_check_rem_and_log(s, 10, | ||
| 24 | + "Parsing [MS-RDPBCGR] TS_CONFIRM_ACTIVE_PDU" | ||
| 25 | + " - header")) | ||
| 26 | + { | ||
| 27 | + return 1; | ||
| 28 | + } | ||
| 29 | in_uint8s(s, 4); /* rdp_shareid */ | ||
| 30 | in_uint8s(s, 2); /* userid */ | ||
| 31 | in_uint16_le(s, source_len); /* sizeof RDP_SOURCE */ | ||
| 32 | in_uint16_le(s, cap_len); | ||
| 33 | + | ||
| 34 | + if (!s_check_rem_and_log(s, source_len + 2 + 2, | ||
| 35 | + "Parsing [MS-RDPBCGR] TS_CONFIRM_ACTIVE_PDU" | ||
| 36 | + " - header2")) | ||
| 37 | + { | ||
| 38 | + return 1; | ||
| 39 | + } | ||
| 40 | in_uint8s(s, source_len); | ||
| 41 | in_uint16_le(s, num_caps); | ||
| 42 | in_uint8s(s, 2); /* pad */ | ||
| 43 | + | ||
| 44 | LOG_DEVEL(LOG_LEVEL_TRACE, "Received [MS-RDPBCGR] TS_CONFIRM_ACTIVE_PDU " | ||
| 45 | "shareID (ignored), originatorID (ignored), lengthSourceDescriptor %d, " | ||
| 46 | "lengthCombinedCapabilities %d, sourceDescriptor (ignored), " | ||
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 e50accfe17..308822e8f5 100644 --- a/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb +++ b/meta-oe/recipes-support/xrdp/xrdp_0.9.20.bb | |||
| @@ -22,6 +22,7 @@ SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN | |||
| 22 | file://CVE-2022-23479.patch \ | 22 | file://CVE-2022-23479.patch \ |
| 23 | file://CVE-2022-23480-1.patch \ | 23 | file://CVE-2022-23480-1.patch \ |
| 24 | file://CVE-2022-23480-2.patch \ | 24 | file://CVE-2022-23480-2.patch \ |
| 25 | file://CVE-2022-23481.patch \ | ||
| 25 | " | 26 | " |
| 26 | 27 | ||
| 27 | SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb" | 28 | SRC_URI[sha256sum] = "db693401da95b71b4d4e4c99aeb569a546dbdbde343f6d3302b0c47653277abb" |
