summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2022-10-10 15:30:07 +0800
committerArmin Kuster <akuster808@gmail.com>2022-10-13 10:59:03 -0400
commit6b7c2efd68136de060ff1f9981d522ff1c091bb4 (patch)
treee282536bb19850645b965d5e3fe7826713041307 /meta-networking
parent9702cc9ba38510bc715cf8f3ce734f0fda571a5c (diff)
downloadmeta-openembedded-6b7c2efd68136de060ff1f9981d522ff1c091bb4.tar.gz
open-vm-tools: Security fix CVE-2022-31676
CVE-2022-31676: VMware Tools (12.0.0, 11.x.y and 10.x.y) contains a local privilege escalation vulnerability. A malicious actor with local non-administrative access to the Guest OS can escalate privileges as a root user in the virtual machine. Reference: https://nvd.nist.gov/vuln/detail/CVE-2022-31676 Patch from: https://github.com/vmware/open-vm-tools/commit/70a74758bfe0042c27f15ce590fb21a2bc54d745 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch43
-rw-r--r--meta-networking/recipes-support/open-vm-tools/open-vm-tools_11.3.5.bb1
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch
new file mode 100644
index 0000000000..4140c46d07
--- /dev/null
+++ b/meta-networking/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch
@@ -0,0 +1,43 @@
1From 70a74758bfe0042c27f15ce590fb21a2bc54d745 Mon Sep 17 00:00:00 2001
2From: John Wolfe <jwolfe@vmware.com>
3Date: Sun, 21 Aug 2022 07:56:49 -0700
4Subject: [PATCH] Properly check authorization on incoming guestOps requests.
5
6Fix public pipe request checks. Only a SessionRequest type should
7be accepted on the public pipe.
8
9CVE: CVE-2022-31676
10
11Upstream-Status: Backport
12[https://github.com/vmware/open-vm-tools/commit/70a74758bfe0042c27f15ce590fb21a2bc54d745]
13
14Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
15---
16 open-vm-tools/vgauth/serviceImpl/proto.c | 6 +++++-
17 1 file changed, 5 insertions(+), 1 deletion(-)
18
19diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c b/open-vm-tools/vgauth/serviceImpl/proto.c
20index db7159ee..6c672601 100644
21--- a/open-vm-tools/vgauth/serviceImpl/proto.c
22+++ b/open-vm-tools/vgauth/serviceImpl/proto.c
23@@ -1,5 +1,5 @@
24 /*********************************************************
25- * Copyright (C) 2011-2016,2019-2021 VMware, Inc. All rights reserved.
26+ * Copyright (C) 2011-2016,2019-2022 VMware, Inc. All rights reserved.
27 *
28 * This program is free software; you can redistribute it and/or modify it
29 * under the terms of the GNU Lesser General Public License as published
30@@ -1201,6 +1201,10 @@ Proto_SecurityCheckRequest(ServiceConnection *conn,
31 VGAuthError err;
32 gboolean isSecure = ServiceNetworkIsConnectionPrivateSuperUser(conn);
33
34+ if (conn->isPublic && req->reqType != PROTO_REQUEST_SESSION_REQ) {
35+ return VGAUTH_E_PERMISSION_DENIED;
36+ }
37+
38 switch (req->reqType) {
39 /*
40 * This comes over the public connection; alwsys let it through.
41--
422.25.1
43
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 1c3545f960..4670a85a67 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
@@ -44,6 +44,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=maste
44 file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \ 44 file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \
45 file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ 45 file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \
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 " 48 "
48 49
49UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)" 50UPSTREAM_CHECK_GITTAGREGEX = "stable-(?P<pver>\d+(\.\d+)+)"