Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866227 (CVE-2022-31676, VMSA-2022-0024.1) - <app-emulation/open-vm-tools-12.1.0: local privilege escalation
Summary: <app-emulation/open-vm-tools-12.1.0: local privilege escalation
Status: RESOLVED FIXED
Alias: CVE-2022-31676, VMSA-2022-0024.1
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Security
URL: https://www.vmware.com/security/advis...
Whiteboard: B1 [glsa+]
Keywords:
Depends on: 871927
Blocks:
  Show dependency tree
 
Reported: 2022-08-23 20:51 UTC by John Helmert III
Modified: 2022-10-31 02:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
CVE-2022-31676: backported patch for versions 11.3.5_p18557794 and 12.0.5_p19716617 (1205-Properly-check-authorization-on-incoming-guestOps-re.patch,1.40 KB, patch)
2022-09-19 16:35 UTC, CFuga
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-08-23 20:51:15 UTC
"A malicious actor with local non-administrative access
to the Guest OS can escalate privileges as a root user in the virtual
machine."

Seems like 12.1.0 is in the process of being released:

https://docs.vmware.com/en/VMware-Tools/12.1/rn/VMware-Tools-1210-Release-Notes.html
Comment 1 Nils Freydank 2022-09-09 08:51:06 UTC
FYI, upstream released the version in the mean time and a simple ebuild renaming did build in a test VM (no runtime testing from my side though).
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 14:56:16 UTC
(In reply to Nils Freydank from comment #1)
> FYI, upstream released the version in the mean time and a simple ebuild
> renaming did build in a test VM (no runtime testing from my side though).

Thanks! Could you make a PR?
Comment 3 Larry the Git Cow gentoo-dev 2022-09-09 15:23:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61a49faebd143a946a61929cb81fbf8ab2e8f0f

commit c61a49faebd143a946a61929cb81fbf8ab2e8f0f
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-09-09 15:21:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-09-09 15:22:54 +0000

    app-emulation/open-vm-tools: add 12.1.0
    
    Bug: https://bugs.gentoo.org/866227
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 app-emulation/open-vm-tools/Manifest               |   1 +
 .../open-vm-tools/open-vm-tools-12.1.0.ebuild      | 149 +++++++++++++++++++++
 2 files changed, 150 insertions(+)
Comment 4 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 15:24:33 UTC
Thanks! Please stabilize when ready
Comment 5 CFuga 2022-09-19 16:35:51 UTC
Created attachment 812878 [details, diff]
CVE-2022-31676: backported patch for versions 11.3.5_p18557794 and 12.0.5_p19716617

There's also available this backported patch, from

https://github.com/vmware/open-vm-tools/blob/CVE-2022-31676.patch/1205-Properly-check-authorization-on-incoming-guestOps-re.patch

It cleanly applies to both current versions in Gentoo tree,open-vm-tools-11.3.5_p18557794 and open-vm-tools-12.0.5_p19716617
Comment 6 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-19 16:40:59 UTC
(In reply to CFuga from comment #5)
> Created attachment 812878 [details, diff] [details, diff]
> CVE-2022-31676: backported patch for versions 11.3.5_p18557794 and
> 12.0.5_p19716617
> 
> There's also available this backported patch, from
> 
> https://github.com/vmware/open-vm-tools/blob/CVE-2022-31676.patch/1205-
> Properly-check-authorization-on-incoming-guestOps-re.patch
> 
> It cleanly applies to both current versions in Gentoo
> tree,open-vm-tools-11.3.5_p18557794 and open-vm-tools-12.0.5_p19716617

Hm? Is the patch not included in 12.1.0? Or maybe there's some reason we shouldn't stabilize it?
Comment 7 CFuga 2022-09-19 19:03:25 UTC
(In reply to John Helmert III from comment #6)
> (In reply to CFuga from comment #5)
> > Created attachment 812878 [details, diff] [details, diff] [details, diff]
> > CVE-2022-31676: backported patch for versions 11.3.5_p18557794 and
> > 12.0.5_p19716617
> > 
> > There's also available this backported patch, from
> > 
> > https://github.com/vmware/open-vm-tools/blob/CVE-2022-31676.patch/1205-
> > Properly-check-authorization-on-incoming-guestOps-re.patch
> > 
> > It cleanly applies to both current versions in Gentoo
> > tree,open-vm-tools-11.3.5_p18557794 and open-vm-tools-12.0.5_p19716617
> 
> Hm? Is the patch not included in 12.1.0? Or maybe there's some reason we
> shouldn't stabilize it?

The patch is included in 12.1.0. I suggest to apply it to the other versions available in Gentoo tree, unless you're planning to push to stable the new version and delete the previous ebuilds.
Comment 8 Mike Gilbert gentoo-dev 2022-09-19 19:09:25 UTC
I am not going to backport anything. I am waiting a short time before stabilizing 12.1.0.
Comment 9 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-20 14:27:14 UTC
Please cleanup
Comment 10 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-22 02:25:10 UTC
GLSA request filed, ping for cleanup.
Comment 11 Mike Gilbert gentoo-dev 2022-10-22 03:08:52 UTC
Cleanup done.
Comment 12 Larry the Git Cow gentoo-dev 2022-10-31 01:41:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=fe60e20c56d0864d2ca0dc1449c82174df59e541

commit fe60e20c56d0864d2ca0dc1449c82174df59e541
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2022-10-31 01:23:04 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-10-31 01:40:16 +0000

    [ GLSA 202210-27 ] open-vm-tools: Local Privilege Escalation
    
    Bug: https://bugs.gentoo.org/866227
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 glsa-202210-27.xml | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
Comment 13 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-31 02:18:37 UTC
GLSA released, all done!