5.5
MEDIUM CVSS 3.1
CVE-2023-3866
ksmbd: validate session id and tree id in the compound request
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.

INFO

Published Date :

Aug. 16, 2025, 2:15 p.m.

Last Modified :

Nov. 18, 2025, 5:58 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2023-3866 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Patch the Linux kernel to validate session and tree IDs in compound requests to prevent NULL pointer dereferencing.
  • Update the Linux kernel to a patched version.
  • Apply security patches provided by the Linux distribution.
  • Review and validate session and tree identifiers in requests.
Public PoC/Exploit Available at Github

CVE-2023-3866 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-3866 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-3866 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A collection of links related to Linux kernel security and exploitation

linux-kernel kernel-exploitation exploit privilege-escalation security

Updated: 1 month ago
6208 stars 971 fork 971 watcher
Born at : Nov. 13, 2016, 10:21 p.m. This repo has been linked 314 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-3866 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-3866 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Nov. 18, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-476
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.4:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.4:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 5.15.121 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.36 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.3.10 *cpe:2.3:o:linux:linux_kernel:6.4:rc7:*:*:*:*:*:*
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/5005bcb4219156f1bf7587b185080ec1da08518e Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/854156d12caa9d36de1cf5f084591c7686cc8a9d Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d1066c1b3663401cd23c0d6e60cdae750ce00c0f Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/eb947403518ea3d93f6d89264bb1f5416bb0c7d0 Types: Patch
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 16, 2025

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/5005bcb4219156f1bf7587b185080ec1da08518e
    Added Reference https://git.kernel.org/stable/c/854156d12caa9d36de1cf5f084591c7686cc8a9d
    Added Reference https://git.kernel.org/stable/c/d1066c1b3663401cd23c0d6e60cdae750ce00c0f
    Added Reference https://git.kernel.org/stable/c/eb947403518ea3d93f6d89264bb1f5416bb0c7d0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact