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 96E1EE573 for ; Sun, 21 Jun 2026 06:18:57 +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=1782022738; cv=none; b=gNUTeOB0Siail2oW2V+BEW97YX3n/WopHAOsK9m3XvNkumVtgvBenhGqGgj0VkXhmc9ekjuUhZ/k2tMizj4qwpO7wavP3vMmZ57N2mW2aZOxbM28o9vJ+PMriuUrTJW+xvr/L+CAc/lp+2bmQa8vxW7EkPWdh8096mcCVDURI9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782022738; c=relaxed/simple; bh=GptzsQgDzk4iQtChkTP5x4MnFJ2d0oRDNIESDDu7mfc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uIGB6KE2H31z2YlfTzGXNS4MC4hcRdgb5bWHENMu3tc1otA11RYahDO2K91SrwBdkLsEtX9B9k6Pcf7f9np9jzPck6cEctUmXc7PSOMBondiVSVVnyy0KyKhXKSNLLbe4p1A7Qw/SDP70t4J8Kf0/uPg9dWi/ImXWeSaMWGG6LE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SYy3adIR; 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="SYy3adIR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 956AA1F000E9; Sun, 21 Jun 2026 06:18:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782022737; bh=epSrJyhV/0Km9ASWBjPqmXMzGdCzIyNDnOnsSiFHIEs=; h=From:To:Cc:Subject:Date:Reply-To; b=SYy3adIRMG+4umgpO6dRtJrciJVM+LbPdEhv/hdFra9EYlOmwz7lJqohs8b39NpZ/ 1S03vih/j5qEL4ICYGhoaiqmabfVERzHucAa+SRBt1pZ+OSJ+yxLex4uGxoShTWKfI ozlT7O8f6J6kTUtIJqoGgY2z7vQP31MO0y4fUT1g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52911: ksmbd: scope conn->binding slowpath to bound sessions only Date: Sun, 21 Jun 2026 08:17:47 +0200 Message-ID: <2026062146-CVE-2026-52911-fab1@gregkh> X-Mailer: git-send-email 2.54.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=3942; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JaheLM24iaszqyfx3vzzi64EKjh8WMibGwqtyOS9cSY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnmTdwr15cIXOpr3bzB2axG4s/BzUe7Ou0mqbzqvMTst Fnz3lSujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIvQvDHI53srqle76eiok1 4RI2qvb58vcwO8OCrkNPWUx8DFeGflgjb2Z0xlXaWGwjAA== 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: scope conn->binding slowpath to bound sessions only When the binding SESSION_SETUP sets conn->binding = true, the flag stays set after the call so that the global session lookup in ksmbd_session_lookup_all() can find the session, which was not added to conn->sessions. Because the flag is connection-wide, the global lookup path will also resolve any other session by id if asked. Tighten the global lookup so that the returned session must have this connection registered in its channel xarray (sess->ksmbd_chann_list). The channel entry is installed by the existing binding_session path in ntlm_authenticate()/krb5_authenticate() when a SESSION_SETUP completes successfully, so this condition is a strict equivalent of "this connection has been accepted as a channel of this session". Connections that have not bound to a given session cannot reach it via the global table. The existing conn->binding gate for entering the slowpath is preserved so that non-binding connections keep the fast-path-only behavior, and the session->state check is unchanged. The Linux kernel CVE team has assigned CVE-2026-52911 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 5.15.209 with commit e74c00c6af428a39e564cdc5bd3a3648c6d8de87 Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.1.175 with commit e3a93ce6e25757b8f375e38b8f91e1d9da4edc1a Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.6.141 with commit 1ff46c9915c1cbf454db58a8cb87f7cac818e6a6 Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.12.91 with commit 974c1c224e85549dc3459f3bb2255bbbdd2b9372 Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 6.18.33 with commit 2cc8a4db633b10715450b291c1343859a4b2c509 Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 7.0.10 with commit 1e2bec062c5c9ec282636715166056d0998d746d Issue introduced in 5.15 with commit f5a544e3bab78142207e0242d22442db85ba1eff and fixed in 7.1 with commit b0da97c034b6107d14e537e212d4ce8b22109a58 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-52911 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/mgmt/user_session.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/e74c00c6af428a39e564cdc5bd3a3648c6d8de87 https://git.kernel.org/stable/c/e3a93ce6e25757b8f375e38b8f91e1d9da4edc1a https://git.kernel.org/stable/c/1ff46c9915c1cbf454db58a8cb87f7cac818e6a6 https://git.kernel.org/stable/c/974c1c224e85549dc3459f3bb2255bbbdd2b9372 https://git.kernel.org/stable/c/2cc8a4db633b10715450b291c1343859a4b2c509 https://git.kernel.org/stable/c/1e2bec062c5c9ec282636715166056d0998d746d https://git.kernel.org/stable/c/b0da97c034b6107d14e537e212d4ce8b22109a58