summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2023-20900.patch36
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.3.5.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2023-20900.patch b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2023-20900.patch
new file mode 100644
index 0000000000..1b51e500aa
--- /dev/null
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2023-20900.patch
@@ -0,0 +1,36 @@
1From 108d81c70d0a6792847051d121a660ef3511517d Mon Sep 17 00:00:00 2001
2From: Katy Feng <fkaty@vmware.com>
3Date: Fri, 22 Sep 2023 10:15:58 +0000
4Subject: [PATCH] Allow only X509 certs to verify the SAML token signature.
5
6CVE: CVE-2023-20900
7
8Upstream-Status: Backport [https://github.com/vmware/open-vm-tools/commit/74b6d0d9000eda1a2c8f31c40c725fb0b8520b16]
9
10Signed-off-by: Narpat Mali <narpat.mali@windriver.com>
11---
12 open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
14
15diff --git a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
16index aaa5082a..ad8fe304 100644
17--- a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
18+++ b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
19@@ -1273,7 +1273,14 @@ VerifySignature(xmlDocPtr doc,
20 */
21 bRet = RegisterID(xmlDocGetRootElement(doc), "ID");
22 if (bRet == FALSE) {
23- g_warning("failed to register ID\n");
24+ g_warning("Failed to register ID\n");
25+ goto done;
26+ }
27+
28+ /* Use only X509 certs to validate the signature */
29+ if (xmlSecPtrListAdd(&(dsigCtx->keyInfoReadCtx.enabledKeyData),
30+ BAD_CAST xmlSecKeyDataX509Id) < 0) {
31+ g_warning("Failed to limit allowed key data\n");
32 goto done;
33 }
34
35--
362.40.0
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.3.5.bb b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.3.5.bb
index c80827a992..bac9b694df 100644
--- a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.3.5.bb
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.3.5.bb
@@ -46,6 +46,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=maste
46 file://0001-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \ 46 file://0001-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \
47 file://0001-Properly-check-authorization-on-incoming-guestOps-re.patch;patchdir=.. \ 47 file://0001-Properly-check-authorization-on-incoming-guestOps-re.patch;patchdir=.. \
48 file://CVE-2023-20867.patch;patchdir=.. \ 48 file://CVE-2023-20867.patch;patchdir=.. \
49 file://CVE-2023-20900.patch;patchdir=.. \
49 " 50 "
50 51
51UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" 52UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)"