Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package open-vm-tools for openSUSE:Factory 
checked in at 2026-12-05 19:09:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/open-vm-tools (Old)
 and      /work/SRC/openSUSE:Factory/.open-vm-tools.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "open-vm-tools"

Sat Dec  5 19:09:31 2026 rev:141 rq:1402886 version:13.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/open-vm-tools/open-vm-tools.changes      
2026-10-18 19:22:33.994876176 +0200
+++ /work/SRC/openSUSE:Factory/.open-vm-tools.new.1340718/open-vm-tools.changes 
2026-12-05 19:10:28.687359702 +0100
@@ -1,0 +2,19 @@
+Thu Nov 26 12:34:56 UTC 2026 - [email protected]
+
+- remove stale configure handling
+- remove stale LDFLAGS
+- remove stale pre-SLE12 code
+- remove stale gtk2 comment
+- adjust xmlsec1 configure option
+- move everything related to containerd into a single section
+- build vgauth unconditionally
+- build vmblockfuseservice unconditionally
+- build with _smp_mflags
+- add open-vm-tools-abseil-clang18-102443.patch
+- add open-vm-tools-vmware-user-suid-wrapper.patch
+- fix denial-of-service vulnerability in VGAuth service
+  (bsc#1291191 CVE-2026-123917 bsc#1291192 CVE-2026-123918)
+  CVE-2026-123917-VGAuth-updates.patch
+  CVE-2026-123918-1130-1310-VGAuth-updates.patch
+
+-------------------------------------------------------------------

New:
----
  CVE-2026-123917-VGAuth-updates.patch
  CVE-2026-123918-1130-1310-VGAuth-updates.patch
  open-vm-tools-abseil-clang18-102443.patch
  open-vm-tools-vmware-user-suid-wrapper.patch

----------(New B)----------
  New:  (bsc#1291191 CVE-2026-123917 bsc#1291192 CVE-2026-123918)
  CVE-2026-123917-VGAuth-updates.patch
  CVE-2026-123918-1130-1310-VGAuth-updates.patch
  New:  CVE-2026-123917-VGAuth-updates.patch
  CVE-2026-123918-1130-1310-VGAuth-updates.patch
  New:- build with _smp_mflags
- add open-vm-tools-abseil-clang18-102443.patch
- add open-vm-tools-vmware-user-suid-wrapper.patch
  New:- add open-vm-tools-abseil-clang18-102443.patch
- add open-vm-tools-vmware-user-suid-wrapper.patch
- fix denial-of-service vulnerability in VGAuth service
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ open-vm-tools.spec ++++++
--- /var/tmp/diff_new_pack.47W4w6/_old  2026-12-05 19:10:29.706402675 +0100
+++ /var/tmp/diff_new_pack.47W4w6/_new  2026-12-05 19:10:29.707402717 +0100
@@ -17,20 +17,6 @@
 #
 
 
-# vgauth is enabled for openSUSE Factory, Leap 42.1, SLES12SP1 and later 
releases (which include xml-security-c and xerces-c)
-%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 0120100
-%bcond_without vgauth
-%else
-%bcond_with vgauth
-%endif
-
-# vmblock-fuse.service requires systemd >= 228 which is in openSUSE Factory, 
SLES12SP2 and Leap 42.2 (see bsc#985773)
-%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 0120200
-    %bcond_without vmblockfuseservice
-%else
-    %bcond_with vmblockfuseservice
-%endif
-
 # exclude AMD PCnet32 LANCE pci.id from Supplements list [bnc#397554]
 %define __find_supplements sh -c '/usr/lib/rpm/find-supplements %{name} | grep 
-v pci:v00001022d00002000'
 
@@ -54,7 +40,6 @@
 Source8:        vgauthd.service
 Source9:        vmblock-fuse.service
 BuildRequires:  gcc-c++
-# don't use pkgconfig(gtk+-2.0) so we can build on SLE
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  doxygen
@@ -68,15 +53,6 @@
 BuildRequires:  pam-devel
 BuildRequires:  procps-devel
 %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
-BuildRequires:  containerd-devel
-BuildRequires:  grpc-devel
-BuildRequires:  libcurl-devel
-BuildRequires:  protobuf-devel
-%define         arg_containerinfo --enable-containerinfo=yes
-%else
-%define         arg_containerinfo --enable-containerinfo=no
-%endif
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
 BuildRequires:  glibc >= 2.27
 BuildRequires:  libtirpc-devel
 BuildRequires:  rpcgen
@@ -94,45 +70,14 @@
 %endif
 BuildRequires:  pkgconfig(libdrm)
 BuildRequires:  pkgconfig(libudev)
-%if %{with vgauth}
 # vgauth requires xmlsec1 + libxml2 - or - xerces-c + xml-security-c
 # The preferred combination is xmlsec1 and libxml2
 
 # Use xmlsec1 instead of xml-security-c where available.
 # If using xmlsec1, also need to use libxmlsec1-openssl1
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 0120300
 BuildRequires:  libxml2-devel
 BuildRequires:  pkgconfig(xmlsec1)
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 0150400
 Requires:       libxmlsec1-openssl1 >= 1.2.37
-%else
-%if 0%{?sle_version} == 0120400 || 0%{?sle_version} == 0120500
-Requires:       libxmlsec1-openssl1 >= 1.2.37
-%else
-Requires:       libxmlsec1-openssl1 >= 1.2.28
-%endif
-%endif
-%define         arg_xmlsec1 --enable-xmlsec1
-%else
-# Leap 42.1 and 42.2 supports xmlsec1 and libxmlsec1-openssl1 but 12 SP1 and
-# SP2 do not.
-%if 0%{?is_opensuse} && 0%{?sle_version} >= 0120100
-BuildRequires:  libxml2-devel
-BuildRequires:  pkgconfig(xmlsec1)
-Requires:       libxmlsec1-openssl1
-%define         arg_xmlsec1 --enable-xmlsec1
-%else
-BuildRequires:  xml-security-c-devel
-BuildRequires:  pkgconfig(xerces-c)
-%define         arg_xmlsecurity --enable-xmlsecurity
-%endif
-%endif
-
-%else
-# not using vgauth
-%define arg_xmlsecurity --without-xmlsecurity
-%define arg_xerces --without-xerces
-%endif
 # vmhgfs is always built so fuse is no longer optional
 %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 0150400
 BuildRequires:  fuse3-devel
@@ -163,6 +108,10 @@
 Patch0:         pam-vmtoolsd.patch
 Patch1:         detect-suse-location.patch
 Patch2:         glibc243.patch
+Patch3:         open-vm-tools-vmware-user-suid-wrapper.patch
+Patch102443:    open-vm-tools-abseil-clang18-102443.patch
+Patch1291191:   CVE-2026-123917-VGAuth-updates.patch
+Patch1291192:   CVE-2026-123918-1130-1310-VGAuth-updates.patch
 
 %if 0%{?suse_version} >= 1500
 %systemd_ordering
@@ -245,14 +194,27 @@
 Those are the development headers for libvmtools. They are needed
 if you intend to create own plugins for vmtoolsd.
 
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
+%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150500
 %package        containerinfo
 Summary:        Container Info Plugin
 Group:          System Environment/Libraries
 Requires:       %{name}%{?_isa} = %{version}-%{release}, curl
 
+BuildRequires:  containerd-devel
+BuildRequires:  grpc-devel
+BuildRequires:  libcurl-devel
+BuildRequires:  protobuf-devel
+%define         arg_containerinfo --enable-containerinfo=yes
 %description    containerinfo
 This package interfaces with the container runtime to retrieve a list of 
containers running on a Linux guest
+%post containerinfo
+systemctl try-restart vmtoolsd.service || :
+%postun containerinfo
+systemctl try-restart vmtoolsd.service || :
+%files containerinfo
+%{_libdir}/%{name}/plugins/vmsvc/libcontainerInfo.so
+%else
+%define         arg_containerinfo --enable-containerinfo=no
 %endif
 
 %prep
@@ -266,6 +228,10 @@
 %patch -P 0 -p2
 %patch -P 1 -p2
 %patch -P 2 -p2
+%patch -P 3 -p2
+%patch -P 102443 -p2
+%patch -P 1291191 -p2
+%patch -P 1291192 -p2
 
 %build
 autoreconf -fi
@@ -281,30 +247,17 @@
 # (this is because of 'g_static_mutex_init' usage which is now deprecated)
 export CFLAGS="%{optflags} -Wno-unused-local-typedefs 
-Wno-unused-but-set-variable -Wno-deprecated-declarations 
-Wno-sizeof-pointer-memaccess -Wno-cpp -fPIE"
 export CXXFLAGS="%{optflags} -Wno-unused-local-typedefs 
-Wno-unused-but-set-variable -Wno-deprecated-declarations 
-Wno-sizeof-pointer-memaccess -Wno-cpp -fPIE"
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
-export LDFLAGS="-pie -ltirpc -lgrpc -labsl_synchronization 
-labsl_log_internal_check_op -labsl_log_internal_nullguard 
-labsl_log_internal_message"
-%else
-%if 0%{?sle_version} >= 150300
-export LDFLAGS="-pie -ltirpc"
-%else
-export LDFLAGS="-pie"
-%endif
-%endif
 # Required for version 9.4.0
 export CUSTOM_PROCPS_NAME=procps
 autoreconf -fi
 echo 'HTML_TIMESTAMP=NO' >> docs/api/doxygen.conf
-# In the latest official tarballs, configure is not marked executable
-chmod 755 configure
 %configure \
     --without-kernel-modules \
     --without-root-privileges \
     %{?arg_x} \
     --disable-dependency-tracking \
     --with-gtk3 \
-    %{?arg_xmlsec1} \
-    %{?arg_xmlsecurity} \
-    %{?arg_xerces} \
+    --with-xmlsec1 \
     --with-udev-rules-dir=%{_udevrulesdir} \
     --enable-resolutionkms \
     --enable-servicediscovery \
@@ -312,7 +265,7 @@
     --enable-salt-minion \
     --disable-static \
     %{?arg_containerinfo}
-make
+%make_build
 
 %install
 %make_install
@@ -339,18 +292,11 @@
 # install systemd init scripts and symlinks
 install -p -m 644 -D %{SOURCE2} %{buildroot}%{_unitdir}/vmtoolsd.service
 ln -sf service %{buildroot}%{_sbindir}/rcvmtoolsd
-%if %{with vmblockfuseservice}
 install -p -m 644 -D %{SOURCE9} %{buildroot}%{_unitdir}/vmblock-fuse.service
 ln -sf service %{buildroot}%{_sbindir}/rcvmblock-fuse
-%endif
-%if %{with vgauth}
 install -p -m 644 -D %{SOURCE8} %{buildroot}%{_unitdir}/vgauthd.service
 ln -sf service %{buildroot}%{_sbindir}/rcvgauthd
 mkdir -p %{buildroot}%{_var}/lib/vmware
-%else
-# if vgauth is not enabled, it must be removed from vmtoolsd.service
-sed -i '/vgauth/d' %{buildroot}%{_unitdir}/vmtoolsd.service
-%endif
 
 %if %{with_X}
 # vmware-user is started by vmware-user-suid-wrapper by xdg-autostart
@@ -371,11 +317,6 @@
 
 %endif
 
-# modprobe configuration for vmnics - only include if before SLE-12
-%if 0%{?suse_version} < 1315
-install -D -m 0644 %{SOURCE6} 
%{buildroot}%{_sysconfdir}/modprobe.d/50-vmnics.conf
-%endif
-
 %pre
 %service_add_pre vmtoolsd.service
 %service_add_pre vgauthd.service
@@ -401,27 +342,19 @@
 %verifyscript desktop
 %verify_permissions -e /usr/bin/vmware-user-suid-wrapper
 
-%if %{with vmblockfuseservice}
 %pre desktop
 %service_add_pre vmblock-fuse.service
-%endif
 
 %post desktop
 %set_permissions /usr/bin/vmware-user-suid-wrapper
-%if %{with vmblockfuseservice}
 %service_add_post vmblock-fuse.service
-%endif
 /sbin/ldconfig
 
 %preun desktop
-%if %{with vmblockfuseservice}
 %service_del_preun vmblock-fuse.service
-%endif
 
 %postun desktop
-%if %{with vmblockfuseservice}
 %service_del_postun vmblock-fuse.service
-%endif
 /sbin/ldconfig
 
 %endif
@@ -431,9 +364,7 @@
 
 %preun
 %service_del_preun vmtoolsd.service
-%if %{with vgauth}
 %service_del_preun vgauthd.service
-%endif
 # Tell VMware that open-vm-tools is being uninstalled
 if [ "$1" = "0" -a \
  -e %{_bindir}/vmware-checkvm -a \
@@ -444,9 +375,7 @@
 
 %postun
 %service_del_postun vmtoolsd.service
-%if %{with vgauth}
 %service_del_postun vgauthd.service
-%endif
 /sbin/ldconfig
 
 %postun sdmp
@@ -457,14 +386,6 @@
 
 %postun -n libvmtools0 -p /sbin/ldconfig
 
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
-%post containerinfo
-systemctl try-restart vmtoolsd.service || :
-
-%postun containerinfo
-systemctl try-restart vmtoolsd.service || :
-%endif
-
 %files
 %if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
 %dir %_modulesloaddir
@@ -520,11 +441,6 @@
 %{_udevrulesdir}/99-vmware-scsi-udev.rules
 %config(noreplace) %{_sysconfdir}/vmware-tools/tools.conf
 %config(noreplace) %{_sysconfdir}/vmware-tools/tools.conf.example
-%if 0%{?suse_version} < 1315
-%dir %{_sysconfdir}/modprobe.d
-%config %{_sysconfdir}/modprobe.d/50-vmnics.conf
-%endif
-%if %{with vgauth}
 %dir %{_var}/lib/vmware
 %{_bindir}/VGAuthService
 %{_bindir}/vmware-vgauth-cmd
@@ -533,13 +449,10 @@
 %dir %{_sysconfdir}/vmware-tools/vgauth/schemas
 %config(noreplace) %{_sysconfdir}/vmware-tools/vgauth.conf
 %config(noreplace) %{_sysconfdir}/vmware-tools/vgauth/schemas/*
-%endif
 %{_datadir}/%{name}/
 %{_unitdir}/vmtoolsd.service
-%if %{with vgauth}
 %{_unitdir}/vgauthd.service
 %{_sbindir}/rcvgauthd
-%endif
 %{_sbindir}/rcvmtoolsd
 %exclude %{_libdir}/*.so
 
@@ -553,10 +466,8 @@
 %{_bindir}/vmware-user-autostart-wrapper
 %{_bindir}/vmware-vmblock-fuse
 %{_bindir}/vmwgfxctrl
-%if %{with vmblockfuseservice}
 %{_unitdir}/vmblock-fuse.service
 %{_sbindir}/rcvmblock-fuse
-%endif
 
 %endif
 
@@ -582,9 +493,7 @@
 %{_libdir}/libhgfs.so.*
 %{_libdir}/libDeployPkg.so.*
 %{_libdir}/libguestStoreClient.so.*
-%if %{with vgauth}
 %{_libdir}/libvgauth.so.*
-%endif
 
 %files -n libvmtools-devel
 %doc docs/api/build/*
@@ -594,8 +503,3 @@
 %{_includedir}/libDeployPkg
 %{_libdir}/pkgconfig/libDeployPkg.pc
 
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150300
-%files containerinfo
-%{_libdir}/%{name}/plugins/vmsvc/libcontainerInfo.so
-%endif
-

++++++ CVE-2026-123917-VGAuth-updates.patch ++++++
>From c66746018faa7b9cd9eafb87991be7c77029cbd4 Mon Sep 17 00:00:00 2001
From: Radhika Prabhu Dessai <[email protected]>
Date: Wed, 18 Nov 2026 01:34:20 -0800
Subject: [PATCH] Check for username length and illegal characters at request
 parsing stage

---
 open-vm-tools/vgauth/common/VGAuthProto.h   | 10 ++++++++++
 open-vm-tools/vgauth/common/usercheck.c     | 21 +++++++++++++++++----
 open-vm-tools/vgauth/lib/netPosix.c         |  7 +------
 open-vm-tools/vgauth/serviceImpl/netPosix.c |  7 -------
 open-vm-tools/vgauth/serviceImpl/proto.c    |  6 ++++++
 5 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/open-vm-tools/vgauth/common/VGAuthProto.h 
b/open-vm-tools/vgauth/common/VGAuthProto.h
index 58a84a1c4..1d469ef50 100644
--- a/open-vm-tools/vgauth/common/VGAuthProto.h
+++ b/open-vm-tools/vgauth/common/VGAuthProto.h
@@ -68,6 +68,16 @@
 #define  SUPERUSER_NAME "root"
 #endif
 
+#ifndef _WIN32
+/*
+ * Maximum length (including nul) of a UNIX domain socket path.
+ * For some reason, this is simply hardcoded in sys/un.h
+ */
+#ifndef UNIX_PATH_MAX
+#define UNIX_PATH_MAX   108
+#endif
+#endif
+
 
 /*
  * XXX For readbility/commentary purposes, all element names are
diff --git a/open-vm-tools/vgauth/common/usercheck.c 
b/open-vm-tools/vgauth/common/usercheck.c
index 77f0086c3..5bf04a9c6 100644
--- a/open-vm-tools/vgauth/common/usercheck.c
+++ b/open-vm-tools/vgauth/common/usercheck.c
@@ -25,6 +25,7 @@
 
 #include "usercheck.h"
 #include "VGAuthLog.h"
+#include "VGAuthProto.h"
 
 #ifndef _WIN32
 #include <stdio.h>
@@ -79,7 +80,18 @@
  * Solaris as well, but that path is untested.
  */
 
+#ifdef _WIN32
 #define MAX_USER_NAME_LEN 256
+#else
+/*
+ * On posix systems, username is mapped into its private pipe path as:
+ * SERVICE_PUBLIC_PIPE_NAME + "-" + userName
+ * And the pipe path length must be < UNIX_PATH_MAX.
+ * In below definition, "-1" accounts for the the hyphen ("-") and
+ * sizeof SERVICE_PUBLIC_PIPE_NAME accounts for the terminating NULL.
+ */
+#define MAX_USER_NAME_LEN (UNIX_PATH_MAX - sizeof SERVICE_PUBLIC_PIPE_NAME - 1)
+#endif
 
 /*
  * A single retry works for the LDAP case, but try more often in case NIS
@@ -479,7 +491,8 @@ done:
  ******************************************************************************
  * Usercheck_UsernameIsLegal --                                          */ /**
  *
- * Checks to see if the userName contains any illegal characters.
+ * Checks to see if the userName contains any illegal characters or exceeds
+ * the allowed length.
  *
  * @param[in]   userName        The userName to check.
  *
@@ -492,9 +505,9 @@ gboolean
 Usercheck_UsernameIsLegal(const gchar *userName)
 {
    /*
-    * This catches the stuff that will upset the fileSystem when the
-    * username is used as part of the aliasStore filename.  Note
-    * that this is not a complete list.
+    * This catches the stuff that will upset the fileSystem when the username
+    * is used as part of the aliasStore filename or user private pipe path.
+    * Note that this is not a complete list.
     *
     * Different Linux distros seem to add additonal restrictions. QE has found
     * the following are legal chars in usernames:
diff --git a/open-vm-tools/vgauth/lib/netPosix.c 
b/open-vm-tools/vgauth/lib/netPosix.c
index bac05b9d2..b59391f0d 100644
--- a/open-vm-tools/vgauth/lib/netPosix.c
+++ b/open-vm-tools/vgauth/lib/netPosix.c
@@ -37,6 +37,7 @@
 #include <signal.h>
 #include "VGAuthInt.h"
 #include "VGAuthLog.h"
+#include "VGAuthProto.h"
 
 
 /*
@@ -59,12 +60,6 @@ VGAuth_NetworkConnect(VGAuthContext *ctx)
    int fd;
    int ret;
    struct sockaddr_un sockaddr;
-   /*
-    * For some reason, this is simply hardcoded in sys/un.h
-    */
-#ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX   108
-#endif
 
    sockaddr.sun_family = AF_UNIX;
 
diff --git a/open-vm-tools/vgauth/serviceImpl/netPosix.c 
b/open-vm-tools/vgauth/serviceImpl/netPosix.c
index ec878c8e3..be0d9fa9c 100644
--- a/open-vm-tools/vgauth/serviceImpl/netPosix.c
+++ b/open-vm-tools/vgauth/serviceImpl/netPosix.c
@@ -123,13 +123,6 @@ ServiceNetworkListen(ServiceConnection *conn,            
// IN/OUT
    uid_t uid;
    gid_t gid;
 
-   /*
-    * For some reason, this is simply hardcoded in sys/un.h
-    */
-#ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX   108
-#endif
-
    ASSERT(strlen(conn->pipeName) < UNIX_PATH_MAX);
 
    conn->sock = -1;
diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c 
b/open-vm-tools/vgauth/serviceImpl/proto.c
index 1608c6ab6..d2fdaf24a 100644
--- a/open-vm-tools/vgauth/serviceImpl/proto.c
+++ b/open-vm-tools/vgauth/serviceImpl/proto.c
@@ -712,6 +712,12 @@ Proto_TextContents(GMarkupParseContext *parseContext,
       req->reqData.sessionReq.version = atoi(val);
       break;
    case PARSE_STATE_USERNAME:
+      if (!Usercheck_UsernameIsLegal(val)) {
+         g_set_error(error, G_MARKUP_ERROR_PARSE, VGAUTH_E_INVALID_ARGUMENT,
+                     "Invalid user name (illegal characters or length) '%s'",
+                     val);
+         goto done;
+      }
       switch (req->reqType) {
       case PROTO_REQUEST_SESSION_REQ:
          SET_CHECK_DUP(req->reqData.sessionReq.userName, val);
-- 
2.45.3


++++++ CVE-2026-123918-1130-1310-VGAuth-updates.patch ++++++
>From 1e3dac5fd1e255242c1fd212dca24d70925583f0 Mon Sep 17 00:00:00 2001
From: Radhika Prabhu Dessai <[email protected]>
Date: Wed, 18 Nov 2026 02:00:54 -0800
Subject: [PATCH] Limit total data read per VGAuth request

---
 open-vm-tools/vgauth/serviceImpl/proto.c | 29 ++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c 
b/open-vm-tools/vgauth/serviceImpl/proto.c
index 1608c6ab6..bf0a4f756 100644
--- a/open-vm-tools/vgauth/serviceImpl/proto.c
+++ b/open-vm-tools/vgauth/serviceImpl/proto.c
@@ -38,6 +38,17 @@
 /* cranks up parser debugging */
 #define VGAUTH_PROTO_TRACE 0
 
+/*
+ * Maximum size of a single request on public pipe.
+ * Only SessionRequest is allowed.
+ */
+#define VGAUTH_MAX_PUBLIC_CONN_REQUEST_SIZE   512
+
+/*
+ * Maximum size of a single request on user private pipe.
+ */
+#define VGAUTH_MAX_PRIVATE_CONN_REQUEST_SIZE   (10 * 1024 * 1024)
+
 /*
  * Request types
  */
@@ -95,6 +106,11 @@ struct ProtoRequest {
 
    ProtoParseState parseState;
 
+   /*
+    * Total size of data read off the wire for this request.
+    */
+   gsize totalSize;
+
    union {
       struct {
          int version;
@@ -1112,6 +1128,8 @@ ServiceProtoReadAndProcessRequest(ServiceConnection *conn)
    gsize len;
    gboolean bRet;
    GError *gErr = NULL;
+   gsize maxReqSize = conn->isPublic ? VGAUTH_MAX_PUBLIC_CONN_REQUEST_SIZE
+                                     : VGAUTH_MAX_PRIVATE_CONN_REQUEST_SIZE;
 
    /*
     * If nothing is currently being processed start a fresh one.
@@ -1141,6 +1159,17 @@ ServiceProtoReadAndProcessRequest(ServiceConnection 
*conn)
       if (err != VGAUTH_E_OK) {
          goto quit;
       }
+
+      if (len > maxReqSize - req->totalSize) {
+         err = VGAUTH_E_COMM;
+         Warning("%s: connection %d request size %" G_GSIZE_FORMAT " exceeds "
+                 "maximum allowed size %" G_GSIZE_FORMAT "\n",
+                 __FUNCTION__, conn->connId, req->totalSize + len, maxReqSize);
+         g_free(data);
+         goto quit;
+      }
+      req->totalSize += len;
+
 #if VGAUTH_PROTO_TRACE
       if (req->rawData) {
          req->rawData = g_strdup_printf("%s%s", req->rawData, data);
-- 
2.45.3


++++++ open-vm-tools-abseil-clang18-102443.patch ++++++
https://github.com/llvm/llvm-project/issues/102443
--- a/open-vm-tools/services/plugins/containerInfo/Makefile.am
+++ b/open-vm-tools/services/plugins/containerInfo/Makefile.am
@@ -61,7 +61,7 @@ libcontainerInfo_la_SOURCES += containers.grpc.pb.cc
 libcontainerInfo_la_SOURCES += containerInfo_grpc.cc
 
 libcontainerInfo_la_CPPFLAGS += ${grpcxx_CFLAGS}
-libcontainerInfo_la_LIBADD += -lprotobuf
+libcontainerInfo_la_LIBADD += -lprotobuf -labsl_synchronization 
-labsl_log_internal_check_op -labsl_log_internal_nullguard 
-labsl_log_internal_message
 libcontainerInfo_la_LIBADD += ${grpcxx_LIBS}
 
 tasks.grpc.pb.cc containers.grpc.pb.cc: %.grpc.pb.cc : %.proto %.pb.cc

++++++ open-vm-tools-vmware-user-suid-wrapper.patch ++++++
--- a/open-vm-tools/vmware-user-suid-wrapper/Makefile.am
+++ b/open-vm-tools/vmware-user-suid-wrapper/Makefile.am
@@ -24,6 +24,7 @@ vmware_user_suid_wrapper_SOURCES =
 vmware_user_suid_wrapper_SOURCES += main.c
 vmware_user_suid_wrapper_SOURCES += wrapper-@[email protected]
 
+vmware_user_suid_wrapper_LDFLAGS = -pie
 vmware_user_suid_wrapper_LDADD =
 vmware_user_suid_wrapper_LDADD += ../lib/vmSignal/libVmSignal.la
 

Reply via email to