qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] QGA installer fixes
@ 2023-02-21 11:21 Konstantin Kostiuk
  2023-02-21 11:21 ` [PATCH v2 1/2] qga/win32: Remove change action from MSI installer Konstantin Kostiuk
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Konstantin Kostiuk @ 2023-02-21 11:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Daniel P . Berrangé, Philippe Mathieu-Daudé, Bin Meng,
	Stefan Weil, Yonggang Luo, Markus Armbruster, Alex Bennée,
	Peter Maydell, Gerd Hoffmann, Michael S. Tsirkin, Thomas Huth,
	Marc-André Lureau, Michael Roth, Mauro Matteo Cascella,
	Yan Vugenfirer, Evgeny Iakovlev, Andrey Drobyshev, Xuzhou Cheng,
	brian.wiltse

resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2167423
fixes: CVE-2023-0664

CVE Technical details: The cached installer for QEMU Guest Agent in c:\windows\installer
(https://github.com/qemu/qemu/blob/master/qga/installer/qemu-ga.wxs),
can be leveraged to begin a repair of the installation without validation
that the repair is being performed by an administrative user. The MSI repair
custom action "RegisterCom" and "UnregisterCom" is not set for impersonation
which allows for the actions to occur as the SYSTEM account
(LINE 137 AND 145 of qemu-ga.wxs). The custom action also leverages cmd.exe
to run qemu-ga.exe in line 134 and 142 which causes an interactive command
shell to spawn even though the MSI is set to be non-interactive on line 53.

v1: https://lists.nongnu.org/archive/html/qemu-devel/2023-02/msg05661.html
v1 -> v2:
  Add explanation into commit messages

Konstantin Kostiuk (2):
  qga/win32: Remove change action from MSI installer
  qga/win32: Use rundll for VSS installation

 qga/installer/qemu-ga.wxs | 11 ++++++-----
 qga/vss-win32/install.cpp |  9 +++++++++
 qga/vss-win32/qga-vss.def |  2 ++
 3 files changed, 17 insertions(+), 5 deletions(-)

--
2.25.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-05  3:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 11:21 [PATCH v2 0/2] QGA installer fixes Konstantin Kostiuk
2023-02-21 11:21 ` [PATCH v2 1/2] qga/win32: Remove change action from MSI installer Konstantin Kostiuk
2023-02-21 11:21 ` [PATCH v2 2/2] qga/win32: Use rundll for VSS installation Konstantin Kostiuk
2023-02-21 11:41 ` [PATCH v2 0/2] QGA installer fixes Philippe Mathieu-Daudé
2023-02-27  8:18   ` Konstantin Kostiuk
2023-02-28 22:48     ` Brian Wiltse
2023-03-02 11:06       ` Philippe Mathieu-Daudé
2023-03-05  3:01         ` Brian Wiltse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).