[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025081601-CVE-2023-3865-95e5@gregkh>
Date: Sat, 16 Aug 2025 15:28:02 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-3865: ksmbd: fix out-of-bound read in smb2_write
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bound read in smb2_write
ksmbd_smb2_check_message doesn't validate hdr->NextCommand. If
->NextCommand is bigger than Offset + Length of smb2 write, It will
allow oversized smb2 write length. It will cause OOB read in smb2_write.
The Linux kernel CVE team has assigned CVE-2023-3865 to this issue.
Affected and fixed versions
===========================
Fixed in 5.15.121 with commit 3813eee5154d6a4c5875cb4444cb2b63bac8947f
Fixed in 6.1.36 with commit c86211159bc3178b891e0d60e586a32c7b6a231b
Fixed in 6.3.10 with commit 58a9c41064df27632e780c5a3ae3e0e4284957d1
Fixed in 6.4 with commit 5fe7f7b78290638806211046a99f031ff26164e1
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-3865
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/3813eee5154d6a4c5875cb4444cb2b63bac8947f
https://git.kernel.org/stable/c/c86211159bc3178b891e0d60e586a32c7b6a231b
https://git.kernel.org/stable/c/58a9c41064df27632e780c5a3ae3e0e4284957d1
https://git.kernel.org/stable/c/5fe7f7b78290638806211046a99f031ff26164e1
Powered by blists - more mailing lists