Skip to contentSkip to conversation

CVE-2023-3867: ksmbd: fix out of bounds read in smb2_sess_setup

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 16, 2025

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: fix out of bounds read in smb2_sess_setup

ksmbd does not consider the case of that smb2 session setup is in compound request. If this is the second payload of the compound, OOB read issue occurs while processing the first payload in the smb2_sess_setup().

The Linux kernel CVE team has assigned CVE-2023-3867 to this issue.

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

	Fixed in 5.15.145 with commit 676392184785ace61e939831e7ca44a03d438c3b
	Fixed in 6.1.40 with commit ef572ffa8eb44111eed2925fbb2adca78bdcbf61
	Fixed in 6.4.5 with commit 2ba03cecb12ac7ac9e0170e251543c56832d9959
	Fixed in 6.5 with commit 98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8

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-2023-3867

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/676392184785ace61e939831e7ca44a03d438c3b
	https://git.kernel.org/stable/c/ef572ffa8eb44111eed2925fbb2adca78bdcbf61
	https://git.kernel.org/stable/c/2ba03cecb12ac7ac9e0170e251543c56832d9959
	https://git.kernel.org/stable/c/98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8