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 312A93D1CCF for ; Wed, 22 Apr 2026 13:55:52 +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=1776866152; cv=none; b=MXQfI+QWyKK4jagBlxhoiYZbBztO8sZI5cbR5252fbJiNzNX+ozGFoW+l8EycnD4Hw1uUhkq80NruyJdVLM5yH6VC+BalRPyWT/RnysuI7tjhqq9L1E47QmM2suyZdV50KOHswGtyjYTbcGBnAaMhvPhUBYItSKSTR29r5LC2UI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866152; c=relaxed/simple; bh=W/Mic7cE1gtj5uCZ82RnvA8w6LinyKDq7CcDmrrQ2Sk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SC5FaIphZpzcza74mBlB3QLKE3V5YS8xbOi/77HJOfSz5ixjadozzReFPJHp2CV/rCY3Gbmrb8aNTCGF6u62pemMHSUVSZmKaWOyNe44C7dj/HIwCb4BuEO95g+LE3G7kL0RbaV0gElIHP6mKcrvF5XRu7Hi3I+eS6aQ10hyJAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nny0LJFP; 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="nny0LJFP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91443C19425; Wed, 22 Apr 2026 13:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866151; bh=W/Mic7cE1gtj5uCZ82RnvA8w6LinyKDq7CcDmrrQ2Sk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nny0LJFPSg/31zkg9ZwKtu2ORhCSTLhS3gfsWXPfB6VFi7L0P5DdMDJmXLQkmCcrO /rP3QrkQl72LTtPwWX+t98AK4GXalu94az2kRu4Hi4A6P/eaBIUE4P2zCd3v929j0J pWo0mWMYh48u/H8MT/YBJzH8gxugpPeS0b4J9Snc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31476: ksmbd: do not expire session on binding failure Date: Wed, 22 Apr 2026 15:54:22 +0200 Message-ID: <2026042256-CVE-2026-31476-bb58@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=2874; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iyF7zuxOQ/Q0UdVSgiYUGnoQZJvh8VcmI4ob/FI83SU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLn1hMjIwem3BXDP/zgdxS31+7ikZ9zcl1J9p+T3l+ H6/e8W/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAidk4M8zT3P4td8YZ19qpv Z6P8dZhaLVX/3WJY0CMltDo6lN3m/hejaJG2vbEOor1zAQ== 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: do not expire session on binding failure When a multichannel session binding request fails (e.g. wrong password), the error path unconditionally sets sess->state = SMB2_SESSION_EXPIRED. However, during binding, sess points to the target session looked up via ksmbd_session_lookup_slowpath() -- which belongs to another connection's user. This allows a remote attacker to invalidate any active session by simply sending a binding request with a wrong password (DoS). Fix this by skipping session expiration when the failed request was a binding attempt, since the session does not belong to the current connection. The reference taken by ksmbd_session_lookup_slowpath() is still correctly released via ksmbd_user_session_put(). The Linux kernel CVE team has assigned CVE-2026-31476 to this issue. Affected and fixed versions =========================== Fixed in 6.1.168 with commit f5300690c23c5ac860499bb37dbc09cf43fd62e6 Fixed in 6.6.131 with commit 6fafc4c4238e538969f1375f9ecdc6587c53f1cc Fixed in 6.12.80 with commit 1d1888b4a7aec518b707f6eca0bf08992c0e8da3 Fixed in 6.18.21 with commit a897064a457056acb976e20e3007cdf553de340f Fixed in 6.19.11 with commit e0e5edc81b241c70355217de7e120c97c3429deb Fixed in 7.0 with commit 9bbb19d21ded7d78645506f20d8c44895e3d0fb9 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-31476 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/smb2pdu.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/f5300690c23c5ac860499bb37dbc09cf43fd62e6 https://git.kernel.org/stable/c/6fafc4c4238e538969f1375f9ecdc6587c53f1cc https://git.kernel.org/stable/c/1d1888b4a7aec518b707f6eca0bf08992c0e8da3 https://git.kernel.org/stable/c/a897064a457056acb976e20e3007cdf553de340f https://git.kernel.org/stable/c/e0e5edc81b241c70355217de7e120c97c3429deb https://git.kernel.org/stable/c/9bbb19d21ded7d78645506f20d8c44895e3d0fb9