forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
open-vm-tools: CVE-2022-31676 local root privilege escalation in the …
…virtual machine Source: https://github.com/vmware/open-vm-tools/ MR: 125031 Type: Security Fix Disposition: Backport from vmware/open-vm-tools@70a7475 ChangeID: 05e850f379fc12a687b669afeae68f2a38f9425c Description: Properly check authorization on incoming guestOps requests. Signed-off-by: Vijay Anusuri <[email protected]> Signed-off-by: Jeremy A. Puhlman <[email protected]>
- Loading branch information
1 parent
7d5ffc1
commit 301db79
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
meta-oe/recipes-support/open-vm-tools/open-vm-tools/CVE-2022-31676.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 86f97ab82b284abd89bdee40ad1255578d205877 Mon Sep 17 00:00:00 2001 | ||
From: Vijay Anusuri <[email protected]> | ||
Date: Thu, 2 Mar 2023 05:57:43 +0000 | ||
Subject: [PATCH] Properly check authorization on incoming guestOps requests. | ||
|
||
Fix public pipe request checks. Only a SessionRequest type should | ||
be accepted on the public pipe. | ||
|
||
Upstream-Status: Backport [https://github.com/vmware/open-vm-tools/commit/70a74758bfe0042c27f15ce590fb21a2bc54d745] | ||
CVE: CVE-2022-31676 | ||
Signed-off-by: Vijay Anusuri <[email protected]> | ||
--- | ||
open-vm-tools/vgauth/serviceImpl/proto.c | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c b/open-vm-tools/vgauth/serviceImpl/proto.c | ||
index ab36dca4..b044eace 100644 | ||
--- open-vm-tools/vgauth/serviceImpl/proto.c | ||
+++ open-vm-tools/vgauth/serviceImpl/proto.c | ||
@@ -1202,6 +1202,10 @@ Proto_SecurityCheckRequest(ServiceConnection *conn, | ||
VGAuthError err; | ||
gboolean isSecure = ServiceNetworkIsConnectionPrivateSuperUser(conn); | ||
|
||
+ if (conn->isPublic && req->reqType != PROTO_REQUEST_SESSION_REQ) { | ||
+ return VGAUTH_E_PERMISSION_DENIED; | ||
+ } | ||
+ | ||
switch (req->reqType) { | ||
/* | ||
* This comes over the public connection; alwsys let it through. | ||
-- | ||
2.18.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters