summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPriyal Doshi <pdoshi@mvista.com>2023-03-01 16:49:30 +0530
committerArmin Kuster <akuster808@gmail.com>2023-03-18 16:16:42 -0400
commit0a7d275985afc53ea86d994b6e5e711996c9cbf7 (patch)
tree3f476818e8bbf1089fa1ebe09a3de80465e22262
parent87571345059f82fb7599e3aa82e6fdcfbd361098 (diff)
downloadmeta-openembedded-0a7d275985afc53ea86d994b6e5e711996c9cbf7.tar.gz
open-vm-tools: Security fix for CVE-2022-31676
Backport from https://github.com/vmware/open-vm-tools/commit/70a74758bfe0042c27f15ce590fb21a2bc54d745 Signed-off-by: Priyal Doshi <pdoshi@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch39
-rw-r--r--meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb1
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch
new file mode 100644
index 0000000000..1c6657ae9f
--- /dev/null
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-Properly-check-authorization-on-incoming-guestOps-re.patch
@@ -0,0 +1,39 @@
1From d16eda269413bdb04e85c242fa28db264697c45f 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
9Upstream-Status: Backport from https://github.com/vmware/open-vm-tools/commit/70a74758bfe0042c27f15ce590fb21a2bc54d745
10CVE: CVE-2022-31676
11Signed-off-by: Priyal Doshi <pdoshi@mvista.com>
12---
13 open-vm-tools/vgauth/serviceImpl/proto.c | 6 +++++-
14 1 file changed, 5 insertions(+), 1 deletion(-)
15
16diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c b/open-vm-tools/vgauth/serviceImpl/proto.c
17index f097fb6..0ebaa7b 100644
18--- a/open-vm-tools/vgauth/serviceImpl/proto.c
19+++ b/open-vm-tools/vgauth/serviceImpl/proto.c
20@@ -1,5 +1,5 @@
21 /*********************************************************
22- * Copyright (C) 2011-2016,2019 VMware, Inc. All rights reserved.
23+ * Copyright (C) 2011-2016,2019-2022 VMware, Inc. All rights reserved.
24 *
25 * This program is free software; you can redistribute it and/or modify it
26 * under the terms of the GNU Lesser General Public License as published
27@@ -1202,6 +1202,10 @@ Proto_SecurityCheckRequest(ServiceConnection *conn,
28 VGAuthError err;
29 gboolean isSecure = ServiceNetworkIsConnectionPrivateSuperUser(conn);
30
31+ if (conn->isPublic && req->reqType != PROTO_REQUEST_SESSION_REQ) {
32+ return VGAUTH_E_PERMISSION_DENIED;
33+ }
34+
35 switch (req->reqType) {
36 /*
37 * This comes over the public connection; alwsys let it through.
38--
392.7.4
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb
index 3cf0aa8292..9a1b3f4c80 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb
@@ -43,6 +43,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https;branch=maste
43 file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ 43 file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \
44 file://0001-utilBacktrace-Ignore-Warray-bounds.patch;patchdir=.. \ 44 file://0001-utilBacktrace-Ignore-Warray-bounds.patch;patchdir=.. \
45 file://0001-hgfsmounter-Makefile.am-support-usrmerge.patch;patchdir=.. \ 45 file://0001-hgfsmounter-Makefile.am-support-usrmerge.patch;patchdir=.. \
46 file://0001-Properly-check-authorization-on-incoming-guestOps-re.patch;patchdir=.. \
46" 47"
47 48
48SRCREV = "d3edfd142a81096f9f58aff17d84219b457f4987" 49SRCREV = "d3edfd142a81096f9f58aff17d84219b457f4987"