CVE-2026-31409: ksmbd: unset conn->binding on failed binding request
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: unset conn->binding on failed binding request
When a multichannel SMB2_SESSION_SETUP request with SMB2_SESSION_REQ_FLAG_BINDING fails ksmbd sets conn->binding = true but never clears it on the error path. This leaves the connection in a binding state where all subsequent ksmbd_session_lookup_all() calls fall back to the global sessions table. This fix it by clearing conn->binding = false in the error path.
The Linux kernel CVE team has assigned CVE-2026-31409 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.167 with commit d073870dab8f6dadced81d13d273ff0b21cb7f4e Fixed in 6.6.130 with commit 6ebef4a220a1ebe345de899ebb9ae394206fe921 Fixed in 6.12.78 with commit 89afe5e2dbea6e9d8e5f11324149d06fa3a4efca Fixed in 6.18.20 with commit 9feb2d1bf86d9e5e66b8565f37f8d3a7d281a772 Fixed in 6.19.10 with commit 6260fc85ed1298a71d24a75d01f8b2e56d489a60 Fixed in 7.0-rc5 with commit 282343cf8a4a5a3603b1cb0e17a7083e4a593b03
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-31409
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/d073870dab8f6dadced81d13d273ff0b21cb7f4e https://git.kernel.org/stable/c/6ebef4a220a1ebe345de899ebb9ae394206fe921 https://git.kernel.org/stable/c/89afe5e2dbea6e9d8e5f11324149d06fa3a4efca https://git.kernel.org/stable/c/9feb2d1bf86d9e5e66b8565f37f8d3a7d281a772 https://git.kernel.org/stable/c/6260fc85ed1298a71d24a75d01f8b2e56d489a60 https://git.kernel.org/stable/c/282343cf8a4a5a3603b1cb0e17a7083e4a593b03