]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2025-0620: smbd: smbd doesn't pick up group membership changes when re-authentica...
authorRalph Boehme <slow@samba.org>
Fri, 23 May 2025 06:47:06 +0000 (08:47 +0200)
committerJule Anger <janger@samba.org>
Mon, 2 Jun 2025 15:10:30 +0000 (15:10 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15707

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Jule Anger <janger@samba.org>
Autobuild-Date(master): Mon Jun  2 15:10:30 UTC 2025 on atb-devel-224

source3/smbd/conn.c

index 4e7e1ce012765de4fea89d87955cc789930ee37e..0e4d78237876e0b109bb202ff29b96cdd17f72f7 100644 (file)
@@ -173,8 +173,8 @@ static void conn_clear_vuid_cache(connection_struct *conn, uint64_t vuid)
 
        for (i=0; i<VUID_CACHE_SIZE; i++) {
                ent = &conn->vuid_cache->array[i];
-               if (ent->vuid != vuid) {
-                       continue;
+               if (ent->vuid == vuid) {
+                       break;
                }
        }
        if (i == VUID_CACHE_SIZE) {