Skip to contentSkip to conversation

CVE-2026-99536: ksmbd: prevent session binding in compound requests

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: prevent session binding in compound requests

A failed multichannel binding can retain its target session on the work item so that the error response can be signed. Subsequent compound commands can then use that session together with a tree connection left over from an earlier command.

Limit binding SESSION_SETUP requests to standalone messages during message validation, before smb2_sess_setup() can replace work->sess. Check both NextCommand and the current request offset to cover binding in the first, middle and last positions of a compound. The existing validation error path returns STATUS_INVALID_PARAMETER and stops processing the remaining commands.

This intentionally limits support for compounded binding. It is not a protocol requirement that binding be standalone. Standalone binding and non-binding compounds retain their existing behavior, without changing session, tree or response encryption handling.

The Linux kernel CVE team has assigned CVE-2026-99536 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.2 with commit 4b706360ffb7e459cb3d3edae30b06a584f6eddd and fixed in 7.3.2 with commit 4f148586c9cb18ad47b5f41153139d0fefa596d3
	Issue introduced in 7.2 with commit 4b706360ffb7e459cb3d3edae30b06a584f6eddd and fixed in 7.4-rc1 with commit 19f8fd6b5ced33b02a083759e6901f9d6e8076df
	Issue introduced in 7.1.5 with commit a1f2ada2e4d33d316939dedefbfd2e7d94a0c61f

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-99536

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/smb2misc.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/4f148586c9cb18ad47b5f41153139d0fefa596d3
	https://git.kernel.org/stable/c/19f8fd6b5ced33b02a083759e6901f9d6e8076df