CVE-2023-3865
published high CVSS 3.1 · 8.1ksmbd: fix out-of-bound read in smb2_write
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 3813eee5154d6a4c5875cb4444cb2b63bac8947f · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < c86211159bc3178b891e0d60e586a32c7b6a231b · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 58a9c41064df27632e780c5a3ae3e0e4284957d1 · e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 5fe7f7b78290638806211046a99f031ff26164e1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.121 through 5.15.* (unaffected · semver) · 6.1.36 through 6.1.* (unaffected · semver) · 6.3.10 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1047 | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1047 | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1047 | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1049 | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1049 | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1049 | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1049.56~20.04.1.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1030-gkeop | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1040-ibm | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1043-intel-iotg | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1044-gcp | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1045-oracle | Advisory build | 5.15.0-1045.51~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1047-aws | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1049-azure | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-86-generic | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-86-generic-64k | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-86-generic-lpae | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-86-lowlatency | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-86-lowlatency-64k | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1030-gkeop | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1043-intel-iotg | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1047-aws | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1049-azure | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-86-generic | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-86-lowlatency | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1044 | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1044 | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gkeop-5.15 | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gkeop-5.15-cloud-tools-5.15.0-1030 | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gkeop-5.15-headers-5.15.0-1030 | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-gkeop-5.15-tools-5.15.0-1030 | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-1030-gkeop | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-1040-ibm | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-1043-intel-iotg | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-headers-5.15.0-1044-gcp | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-1045-oracle | Advisory build | 5.15.0-1045.51~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-headers-5.15.0-1047-aws | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-1049-azure | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-86-generic | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-headers-5.15.0-86-generic-64k | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-headers-5.15.0-86-generic-lpae | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-headers-5.15.0-86-lowlatency | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-headers-5.15.0-86-lowlatency-64k | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-86 | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-86 | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-source-5.15.0 | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-86 | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-common | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-host | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1040 | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1040 | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-5.15.0-86-generic | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-image-5.15.0-86-generic-lpae | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1030-gkeop | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1040-ibm | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1043-intel-iotg | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1044-gcp | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1045-oracle | Advisory build | 5.15.0-1045.51~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1047-aws | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1049-azure | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1049-azure-fde | Advisory build | 5.15.0-1049.56~20.04.1.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-86-generic | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-86-generic-64k | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-86-lowlatency | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-86-lowlatency-64k | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1043 | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1043 | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1043 | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-86 | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-86 | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-86 | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-common | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-host | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-1030-gkeop | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-1040-ibm | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-1043-intel-iotg | Advisory build | 5.15.0-1043.49~20.04.1 | USN-6445-2 |
| Ubuntu | focal | linux-modules-5.15.0-1044-gcp | Advisory build | 5.15.0-1044.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-1045-oracle | Advisory build | 5.15.0-1045.51~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-modules-5.15.0-1047-aws | Advisory build | 5.15.0-1047.52~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-1049-azure | Advisory build | 5.15.0-1049.56~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-86-generic | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-modules-5.15.0-86-generic-64k | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-modules-5.15.0-86-generic-lpae | Advisory build | 5.15.0-86.96~20.04.1 | USN-6416-2 |
| Ubuntu | focal | linux-modules-5.15.0-86-lowlatency | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-5.15.0-86-lowlatency-64k | Advisory build | 5.15.0-86.95~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1030-gkeop | Advisory build | 5.15.0-1030.35~20.04.1 | USN-6416-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1040-ibm | Advisory build | 5.15.0-1040.43~20.04.1 | USN-6416-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:N - ksmbd is an in-kernel SMB server reachable over TCP/445; the bug is triggered by crafting SMB2 WRITE request fields (NextCommand/Length) sent from a remote SMB client. AC:L - The attacker fully controls NextCommand and Length in the SMB2 header/PDU and can reliably pass ksmbd_smb2_check_message by making them agree, with no race or other conditions outside attacker control. PR:L - smb2_write requires a valid SMB session, tree connect to a writable share, and an open file handle with write access; guest/basic share credentials suffice, but this is not a pre-authentication path. UI:N - Exploitation requires only attacker-sent SMB traffic; no victim user action such as opening a file or mounting a share is needed. S:U - Impact is confined to the host kernel running ksmbd; the vulnerability does not cross a VM, IOMMU, or other security authority boundary by itself. C:H - Oversized Length with a forged NextCommand causes smb2_write to kernel_write attacker-chosen lengths of memory past the request buffer into a share file the attacker can then read back, leaking large amounts of kernel memory (documented up to 64KiB). I:N - This is an out-of-bounds read only; it does not corrupt kernel memory or provide a write primitive into kernel structures. A:H - A large read past the kvmalloc'd request buffer can touch unmapped memory and cause a kernel oops/panic, or otherwise disrupt the ksmbd worker path.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 3813eee5154d6a4c5875cb4444cb2b63bac8947f (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < c86211159bc3178b891e0d60e586a32c7b6a231b (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 58a9c41064df27632e780c5a3ae3e0e4284957d1 (affected · git)e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 5fe7f7b78290638806211046a99f031ff26164e1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.121 through 5.15.* (unaffected · semver)6.1.36 through 6.1.* (unaffected · semver)6.3.10 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
ksmbd: fix out-of-bound read in smb2_write
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8221e3e3eba49fa44f269102050f2bd4db0cb414912123a7420a246ead83a68d
- Ingested
- 23 Sep 2026, 08:11:05 UTC
- Source record
- Official CVE record