Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1089C3DE430 for ; Fri, 24 Apr 2026 14:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041887; cv=none; b=X1W8cdh9tGlvrDPKxVv3/eHaqzaFcRIvme4g0Nazx01whWJ9vGV9wRnIc2ymjVN3GVyIxxwNyUqYScDOqiCaBieHq7sCeM33IaDaNbbmTvytFMWBqP6t0aBPwg+xBwXGE1Cw/pPLvjKbNN2PpvXx5Y8ThAwlK0bbzEWdMkmmTAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041887; c=relaxed/simple; bh=R5crIJaiXzH7sXzREi8qeZquTTje68ygvmZDH/nEXZ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B8/PCbK0Ao+udDiqhL0eY3/4GjdGspUOipaBaKvMbbSbxZyE4hQuYCyBtFvuaWbDM/rEXvOa/2DSPy/t5K/oJYKCt9F0faNgEVRZS55DfEGTEr7MPgt00KCEXG5SxW5i2t7ODTJal+Meq/wDJRoiVPqD0nBFiXu5L41pfblit+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OQiR+nfI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OQiR+nfI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F787C19425; Fri, 24 Apr 2026 14:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041886; bh=R5crIJaiXzH7sXzREi8qeZquTTje68ygvmZDH/nEXZ4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OQiR+nfImicyxsK3bLh0G91jpRxkeinvDUwyT6Haq2th+zMpWGZG3fMRCEy1XwB5t BFgpbP1lV/cLJL1G8DVd/HfpcD+BhT3b9+QNB6mwHAMfzuwOcqGjTWUGH2RXcVFh6V AufE+U2PPOt4Pkh09OR80lrduqaXMVd/fs/UwdKU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31611: ksmbd: require 3 sub-authorities before reading sub_auth[2] Date: Fri, 24 Apr 2026 16:43:47 +0200 Message-ID: <2026042422-CVE-2026-31611-6396@gregkh> X-Mailer: git-send-email 2.53.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=2689; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1r71ub4+4gFoYsqrUSLlhFysp0lB63Jchbv8XbqU0ek=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG7ueOjW0J+Y6lHxhe21wwjhncXS207U3a6dOqfvRL C7RvtC8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayKpphftrnnZJJX2xn7hLZ +d4k4XGF5IPrkxjmh776OfPYqZNb5V5erzdYqv9n9rzFswE= 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: ksmbd: require 3 sub-authorities before reading sub_auth[2] parse_dacl() compares each ACE SID against sid_unix_NFS_mode and on match reads sid.sub_auth[2] as the file mode. If sid_unix_NFS_mode is the prefix S-1-5-88-3 with num_subauth = 2 then compare_sids() compares only min(num_subauth, 2) sub-authorities so a client SID with num_subauth = 2 and sub_auth = {88, 3} will match. If num_subauth = 2 and the ACE is placed at the very end of the security descriptor, sub_auth[2] will be 4 bytes past end_of_acl. The out-of-band bytes will then be masked to the low 9 bits and applied as the file's POSIX mode, probably not something that is good to have happen. Fix this up by forcing the SID to actually carry a third sub-authority before reading it at all. The Linux kernel CVE team has assigned CVE-2026-31611 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 08f9e6d899b5c834bbcc239eae1bed58d9b15d2c Fixed in 6.18.24 with commit d2454f4a002d08560a60f214f392e6491cf11560 Fixed in 6.19.14 with commit 46bbcd3ebfb3549c8da1838fc4493e79bd3241e7 Fixed in 7.0.1 with commit 9401f86a224f37b50e6a3ccf1d46a70d5ef8af0a 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-31611 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/server/smbacl.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/08f9e6d899b5c834bbcc239eae1bed58d9b15d2c https://git.kernel.org/stable/c/d2454f4a002d08560a60f214f392e6491cf11560 https://git.kernel.org/stable/c/46bbcd3ebfb3549c8da1838fc4493e79bd3241e7 https://git.kernel.org/stable/c/9401f86a224f37b50e6a3ccf1d46a70d5ef8af0a https://git.kernel.org/stable/c/53370cf9090777774e07fd9a8ebce67c6cc333ab