summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support
diff options
context:
space:
mode:
authorRajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>2025-10-08 23:21:53 +0530
committerAnuj Mittal <anuj.mittal@intel.com>2025-10-30 14:43:30 +0800
commit46091f4925694294f0ca7f1e8ac49f98f979f9e4 (patch)
treed7d59eaeab45a51cc2a6571c5abc237cdca448f9 /meta-networking/recipes-support
parent4d28ff8b3417afecbbde5571bc657eb90f9f98ed (diff)
downloadmeta-openembedded-46091f4925694294f0ca7f1e8ac49f98f979f9e4.tar.gz
open-vm-tools: fix CVE-2025-41244
VMware Aria Operations and VMware Tools contain a local privilege escalation vulnerability. A malicious local actor with non-administrative privileges having access to a VM with VMware Tools installed and managed by Aria Operations with SDMP enabled may exploit this vulnerability to escalate privileges to root on the same VM. Reference: https://nvd.nist.gov/vuln/detail/CVE-2025-41244 Upstream-patch: https://github.com/vmware/open-vm-tools/commit/7ed196cf01f8acd09011815a605b6733894b8aab Signed-off-by: Rajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-networking/recipes-support')
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2025-41244.patch123
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb1
2 files changed, 124 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2025-41244.patch b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2025-41244.patch
new file mode 100644
index 0000000000..4d3f80f3d7
--- /dev/null
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/CVE-2025-41244.patch
@@ -0,0 +1,123 @@
1From 7ed196cf01f8acd09011815a605b6733894b8aab Mon Sep 17 00:00:00 2001
2From: Kruti Pendharkar <kp025370@broadcom.com>
3Date: Mon, 29 Sep 2025 01:02:40 -0700
4Subject: [PATCH] Address CVE-2025-41244 - Disable (default) the execution of
5 the SDMP get-versions.sh script.
6
7With the Linux SDMP get-versions.sh script disabled, version information
8of installed services will not be made available to VMware Aria
9
10CVE: CVE-2025-41244
11
12Upstream-Status: Backport [https://github.com/vmware/open-vm-tools/commit/7ed196cf01f8acd09011815a605b6733894b8aab]
13
14Signed-off-by: Rajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>
15---
16 .../serviceDiscovery/serviceDiscovery.c | 37 ++++++++++++++++---
17 1 file changed, 32 insertions(+), 5 deletions(-)
18
19diff --git a/open-vm-tools/services/plugins/serviceDiscovery/serviceDiscovery.c b/open-vm-tools/services/plugins/serviceDiscovery/serviceDiscovery.c
20index 103cf14..bf928c8 100644
21--- a/open-vm-tools/services/plugins/serviceDiscovery/serviceDiscovery.c
22+++ b/open-vm-tools/services/plugins/serviceDiscovery/serviceDiscovery.c
23@@ -1,5 +1,6 @@
24 /*********************************************************
25- * Copyright (C) 2020-2021,2023 VMware, Inc. All rights reserved.
26+ * Copyright (c) 2020-2025 Broadcom. All Rights Reserved.
27+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
28 *
29 * This program is free software; you can redistribute it and/or modify it
30 * under the terms of the GNU Lesser General Public License as published
31@@ -115,6 +116,12 @@ static gchar* scriptInstallDir = NULL;
32 */
33 #define SERVICE_DISCOVERY_RPC_WAIT_TIME 100
34
35+/*
36+ * Defines the configuration to enable/disable version obtaining logic
37+ */
38+#define CONFNAME_SERVICEDISCOVERY_VERSION_CHECK "version-check-enabled"
39+#define SERVICE_DISCOVERY_CONF_DEFAULT_VERSION_CHECK FALSE
40+
41 /*
42 * Defines the configuration to cache data in gdp plugin
43 */
44@@ -1239,23 +1246,27 @@ ServiceDiscoveryServerShutdown(gpointer src,
45 *
46 * Construct final paths of the scripts that will be used for execution.
47 *
48+ * @param[in] versionCheckEnabled TRUE to include the SERVICE_DISCOVERY_KEY_VERSIONS
49+ * entry; FALSE to skip it (derived from config).
50+ *
51 *****************************************************************************
52 */
53
54 static void
55-ConstructScriptPaths(void)
56+ConstructScriptPaths(Bool versionCheckEnabled)
57 {
58 int i;
59 #if !defined(OPEN_VM_TOOLS)
60 gchar *toolsInstallDir;
61 #endif
62+ int insertIndex = 0;
63
64 if (gFullPaths != NULL) {
65 return;
66 }
67
68 gFullPaths = g_array_sized_new(FALSE, TRUE, sizeof(KeyNameValue),
69- ARRAYSIZE(gKeyScripts));
70+ ARRAYSIZE(gKeyScripts) - (versionCheckEnabled ? 0u : 1u));
71 if (scriptInstallDir == NULL) {
72 #if defined(OPEN_VM_TOOLS)
73 scriptInstallDir = Util_SafeStrdup(VMTOOLS_SERVICE_DISCOVERY_SCRIPTS);
74@@ -1267,6 +1278,15 @@ ConstructScriptPaths(void)
75 #endif
76 }
77 for (i = 0; i < ARRAYSIZE(gKeyScripts); ++i) {
78+ /*
79+ * Skip adding if:
80+ * 1. Version check is disabled, AND
81+ * 2. The keyName matches SERVICE_DISCOVERY_KEY_VERSIONS
82+ */
83+ if (!versionCheckEnabled &&
84+ g_strcmp0(gKeyScripts[i].keyName, SERVICE_DISCOVERY_KEY_VERSIONS) == 0) {
85+ continue;
86+ }
87 KeyNameValue tmp;
88 tmp.keyName = g_strdup_printf("%s", gKeyScripts[i].keyName);
89 #if defined(_WIN32)
90@@ -1274,7 +1294,8 @@ ConstructScriptPaths(void)
91 #else
92 tmp.val = g_strdup_printf("%s%s%s", scriptInstallDir, DIRSEPS, gKeyScripts[i].val);
93 #endif
94- g_array_insert_val(gFullPaths, i, tmp);
95+ g_array_insert_val(gFullPaths, insertIndex, tmp);
96+ insertIndex++;
97 }
98 }
99
100@@ -1340,14 +1361,20 @@ ToolsOnLoad(ToolsAppCtx *ctx)
101 }
102 };
103 gboolean disabled;
104+ Bool versionCheckEnabled;
105
106 regData.regs = VMTools_WrapArray(regs,
107 sizeof *regs,
108 ARRAYSIZE(regs));
109+ versionCheckEnabled = VMTools_ConfigGetBoolean(
110+ ctx->config,
111+ CONFGROUPNAME_SERVICEDISCOVERY,
112+ CONFNAME_SERVICEDISCOVERY_VERSION_CHECK,
113+ SERVICE_DISCOVERY_CONF_DEFAULT_VERSION_CHECK);
114 /*
115 * Append scripts execution command line
116 */
117- ConstructScriptPaths();
118+ ConstructScriptPaths(versionCheckEnabled);
119
120 disabled =
121 VMTools_ConfigGetBoolean(ctx->config,
122--
1232.40.0
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb
index 34ac34ba20..1ef2781d6a 100644
--- a/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools_12.3.5.bb
@@ -44,6 +44,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=stabl
44 file://0013-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \ 44 file://0013-open-vm-tools-Correct-include-path-for-poll.h.patch;patchdir=.. \
45 file://0014-timeSync-Portable-way-to-print-64bit-time_t.patch;patchdir=.. \ 45 file://0014-timeSync-Portable-way-to-print-64bit-time_t.patch;patchdir=.. \
46 file://CVE-2025-22247.patch;patchdir=.. \ 46 file://CVE-2025-22247.patch;patchdir=.. \
47 file://CVE-2025-41244.patch;patchdir=.. \
47 " 48 "
48 49
49UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" 50UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)"