0.0
NA
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 :

Aug. 18, 2025, 8:16 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
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: 21 hours, 50 minutes ago
6121 stars 960 fork 960 watcher
Born at : Nov. 13, 2016, 10:21 p.m. This repo has been linked 302 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.

  • 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
No CVSS metrics available for this vulnerability.