Vulnerability · Published Aug 16, 2025 · Assigned by Linux
CVE-2023-3866ksmbd: validate session id and tree id in the compound request
High 7.5
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 12.6% (higher than 96% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.37-1 | DEBIAN-CVE-2023-3866 |
| Debian:13 | linux | 6.3.11-1 | DEBIAN-CVE-2023-3866 |
| Debian:14 | linux | 6.3.11-1 | DEBIAN-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux | 5.15.0-86.96 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-86.96 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1047.52 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1047.52 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | 6.2.0-1015.15~22.04.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | 6.2.0-1015.15~22.04.1 | USN-6464-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1049.56 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1049.56 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | 6.2.0-1016.16~22.04.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | 6.2.0-1016.16~22.04.1 | USN-6464-1 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1049.56.1 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1049.56.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | 6.2.0-1016.16~22.04.1.1 | USN-6464-1 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | 6.2.0-1016.16~22.04.1.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1044.52 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1044.52 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | 6.2.0-1018.20~22.04.1 | USN-6464-1 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | 6.2.0-1018.20~22.04.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1044.49 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1044.49 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1030.35 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1030.35 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | 6.2.0-36.37~22.04.1 | USN-6464-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | 6.2.0-36.37~22.04.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1040.43 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1040.43 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1043.49 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1043.49 | USN-6445-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1044.49 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1044.49 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-86.95 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-86.95 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | 6.2.0-1016.16~22.04.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | 6.2.0-1016.16~22.04.1 | USN-6464-1 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1037.37 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1037.37 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | 6.2.0-1011.11 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | 6.2.0-1011.11 | USN-6466-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1018.18 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1005.5 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | 6.1.0-1019.19 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1045.51 | USN-6416-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1045.51 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1040.43 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1040.43 | USN-6416-3 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | 6.2.0-1009.10~22.04.1 | UBUNTU-CVE-2023-3866 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | 6.2.0-1009.10~22.04.1 | USN-6520-1 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1025.29 | UBUNTU-CVE-2023-3866 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf – before eb947403518ea3d93f6d89264bb1f5416bb0c7d00626e6641f6b467447c81dd7678a69c66f7746cf – before 854156d12caa9d36de1cf5f084591c7686cc8a9d0626e6641f6b467447c81dd7678a69c66f7746cf – before d1066c1b3663401cd23c0d6e60cdae750ce00c0f0626e6641f6b467447c81dd7678a69c66f7746cf – before 5005bcb4219156f1bf7587b185080ec1da08518e |
| Linux | Linux | 5.15 |