CVE-2023-3866
published high CVSS 3.1 · 7.5ksmbd: validate session id and tree id in the compound request
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < eb947403518ea3d93f6d89264bb1f5416bb0c7d0 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 854156d12caa9d36de1cf5f084591c7686cc8a9d · 0626e6641f6b467447c81dd7678a69c66f7746cf to < d1066c1b3663401cd23c0d6e60cdae750ce00c0f · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 5005bcb4219156f1bf7587b185080ec1da08518e · 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: validate session id and tree id in the compound request This patch validate session id and tree id in compound request. If first operation in the compound is SMB2 ECHO request, ksmbd bypass session and tree validation. So work->sess and work->tcon could be NULL. If secound request in the compound access work->sess or tcon, It cause NULL pointer dereferecing error.
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
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - The vulnerable code is in ksmbd (fs/smb/server/), the in-kernel SMB server reachable over TCP/445; a remote attacker triggers it by sending a crafted compound SMB2 request to a listening ksmbd instance. AC:L - The attacker fully controls the compound PDU layout and can reliably place SMB2_ECHO (or NEGOTIATE/SESSION_SETUP) first so session/tree validation is skipped for subsequent commands; no race or attacker-uncontrollable condition is required. PR:N - SMB2_ECHO/NEGOTIATE/SESSION_SETUP bypass smb2_check_user_session() without credentials, and with work->sess left NULL signing checks are also skipped, so the crash path is reachable pre-authentication over the network. UI:N - Exploitation requires only attacker-sent SMB2 compound packets to an already-running ksmbd listener; no victim user or administrator action is needed. S:U - Impact is confined to the host kernel/ksmbd security authority (kernel oops/DoS on the SMB server host); this is not a VM escape, IOMMU bypass, or other cross-authority boundary change. C:N - The defect is a pure NULL pointer dereference (e.g. tcon->share_conf with tcon NULL in smb2_open); it does not provide an information-disclosure or arbitrary-read primitive. I:N - The bug yields a NULL dereference crash rather than an out-of-bounds write, UAF, or other integrity/control-flow corruption primitive. A:H - Subsequent compound commands dereference NULL session/tree pointers, causing a kernel oops that an unauthenticated remote attacker can retrigger at will, denying service to ksmbd and potentially the host.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < eb947403518ea3d93f6d89264bb1f5416bb0c7d0 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 854156d12caa9d36de1cf5f084591c7686cc8a9d (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < d1066c1b3663401cd23c0d6e60cdae750ce00c0f (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 5005bcb4219156f1bf7587b185080ec1da08518e (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: validate session id and tree id in the compound request
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 22f71ebef363562162639f453aa3dfbdb5de1c288e41d18da5e673e34762776a
- Ingested
- 23 Sep 2026, 08:11:05 UTC
- Source record
- Official CVE record