Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E385748F84B for ; Fri, 25 Sep 2026 10:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331870; cv=none; b=Njto0KgYr73XtTlzgfPFRlVa2zA19KvGOlbY99bETM9yi1yl5eC8j4MeDKQDQ2ZgIcC01GUdA50n3ppYadLZNSnc+5Pz35I55IQ9g55PvYXKHuFVOrxFSIdZf83JTYO9qqRrRCQTXWM+Yj25x4ByLtZpyz5dbFDyaW4A1jw5mQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331870; c=relaxed/simple; bh=/5qwTpUGqs7x48bLxYG9foxMjCuMuCd0HKZo+HVblMw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MVOKA7rYZ7sunyVBDbWOqCWvO4RXwdHJm9qCVkO3Tw4WHxBi/EbXjIeAThF73/dBIutuGBn4LlUcfqrPI02XSOnh5mPHCmGN7sIPHrsVms8YoQLz7a0dSk1M41QOd9pL9i+m2phrL0cabLhtOhadI38tlU2aFvnwlva1AGalGEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JkWmN2GU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JkWmN2GU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3328D1F000FF; Fri, 25 Sep 2026 10:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331868; bh=WnQTl0dWuBbbLAerrn4jOE48HNZBwgecegMDuIcJqvM=; h=From:To:Cc:Subject:Date:Reply-To; b=JkWmN2GU1AukrNcYiyozJC9FN0Hyrk7Fb1p8Ejig0nGcxsp6Hzyc7u313IqRn2H63 Rs1hRM/Qf2a/R3Icx3Z0kGZr9lVnFD667yC4SHuHC/YuFUho9bFB8kcRYMjbVPnMW7 ZobZyQBnuivWfCIc1EuhLG8L2Y9HtwE+jwrM3O5c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97561: smb: client: honor forceuid/forcegid when mapping SIDs to uid/gid Date: Fri, 25 Sep 2026 12:22:21 +0200 Message-ID: <2026092552-CVE-2026-97561-7535@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2497; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YCW5B2wqvlwOVpDj4kP/0kZIuG2D4uYAaNCyKyAV9NI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvB1smMSn7+POO70w/FTUzJtTGQMeznh49dSFzbtv/ t5ysaXkb0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMxEOGYX4R57tA15cTGh9u WD5tsvaBWp3+hHkM8yyY2AIL7zeJy/w38X5WaTzpPU/pMQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: smb: client: honor forceuid/forcegid when mapping SIDs to uid/gid When the administrator mounts with forceuid or forcegid (uid=/gid= mount options), they expect all files to appear owned by the specified user/group. However, several code paths unconditionally called sid_to_id() to overwrite cf_uid/cf_gid with server-provided values, ignoring the administrator's explicit override: - smb311_posix_info_to_fattr() (stat via POSIX extensions) - cifs_posix_to_fattr() (readdir via POSIX extensions) - parse_sec_desc() (CIFS ACL ownership mapping) This allowed an untrusted server to dictate local file ownership even when the mount was configured to force specific uid/gid values. Fix all three call sites to check CIFS_MOUNT_OVERR_UID and CIFS_MOUNT_OVERR_GID before calling sid_to_id(), following the same pattern already used by cifs_unix_basic_to_fattr() for unix extensions. The Linux kernel CVE team has assigned CVE-2026-97561 to this issue. Affected and fixed versions =========================== Fixed in 7.2.7 with commit e1b74f8f8c1d13190b09fe623b729d36b7ac22a8 Fixed in 7.3-rc3 with commit 18a72975e9f35aadecc75b031f693f2d1f49308f Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97561 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/client/cifsacl.c fs/smb/client/inode.c fs/smb/client/readdir.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/e1b74f8f8c1d13190b09fe623b729d36b7ac22a8 https://git.kernel.org/stable/c/18a72975e9f35aadecc75b031f693f2d1f49308f