In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix out-of-bound read in smb2_write
ksmbdsmb2checkmessage 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 smb2write.
[
{
"id": "CVE-2023-3865-114985fa",
"target": {
"file": "fs/smb/server/smb2misc.c"
},
"digest": {
"line_hashes": [
"65861777456873217949548936954018488448",
"194818727358481069214870902578106303554",
"147814911490503710360716464222567326102",
"328559044649179413152225796598263802584",
"72330297102624744193736805501399492316",
"122402358743054881596345628497648659300"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5fe7f7b78290638806211046a99f031ff26164e1"
},
{
"id": "CVE-2023-3865-1679ca4f",
"target": {
"file": "fs/ksmbd/smb2misc.c"
},
"digest": {
"line_hashes": [
"65861777456873217949548936954018488448",
"194818727358481069214870902578106303554",
"147814911490503710360716464222567326102",
"328559044649179413152225796598263802584",
"72330297102624744193736805501399492316",
"122402358743054881596345628497648659300"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3813eee5154d6a4c5875cb4444cb2b63bac8947f"
},
{
"id": "CVE-2023-3865-1afb2cee",
"target": {
"file": "fs/ksmbd/smb2misc.c"
},
"digest": {
"line_hashes": [
"65861777456873217949548936954018488448",
"194818727358481069214870902578106303554",
"147814911490503710360716464222567326102",
"328559044649179413152225796598263802584",
"72330297102624744193736805501399492316",
"122402358743054881596345628497648659300"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58a9c41064df27632e780c5a3ae3e0e4284957d1"
},
{
"id": "CVE-2023-3865-373103c3",
"target": {
"function": "ksmbd_smb2_check_message",
"file": "fs/ksmbd/smb2misc.c"
},
"digest": {
"length": 1847.0,
"function_hash": "158883956343731350605146585512394491142"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c86211159bc3178b891e0d60e586a32c7b6a231b"
},
{
"id": "CVE-2023-3865-9d2eca83",
"target": {
"function": "ksmbd_smb2_check_message",
"file": "fs/ksmbd/smb2misc.c"
},
"digest": {
"length": 1847.0,
"function_hash": "158883956343731350605146585512394491142"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58a9c41064df27632e780c5a3ae3e0e4284957d1"
},
{
"id": "CVE-2023-3865-c3c62a49",
"target": {
"function": "ksmbd_smb2_check_message",
"file": "fs/ksmbd/smb2misc.c"
},
"digest": {
"length": 1847.0,
"function_hash": "158883956343731350605146585512394491142"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3813eee5154d6a4c5875cb4444cb2b63bac8947f"
},
{
"id": "CVE-2023-3865-d4526ef0",
"target": {
"file": "fs/ksmbd/smb2misc.c"
},
"digest": {
"line_hashes": [
"65861777456873217949548936954018488448",
"194818727358481069214870902578106303554",
"147814911490503710360716464222567326102",
"328559044649179413152225796598263802584",
"72330297102624744193736805501399492316",
"122402358743054881596345628497648659300"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c86211159bc3178b891e0d60e586a32c7b6a231b"
},
{
"id": "CVE-2023-3865-df43687c",
"target": {
"function": "ksmbd_smb2_check_message",
"file": "fs/smb/server/smb2misc.c"
},
"digest": {
"length": 1847.0,
"function_hash": "158883956343731350605146585512394491142"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5fe7f7b78290638806211046a99f031ff26164e1"
}
]