Skip to content
Heist/ feed
Back to feed
HighFix available

ksmbd: validate session id and tree id in the compound request

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.121, 6.1.36, 6.3.10
CVEs
CVE-2023-3866
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:36 UTC · Revision 1

Source evidence

ksmbd: validate session id and tree id in the compound request

core-osv · Original source

Published 16 Aug 2025, 13:27 UTC

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.

osv:CVE-2023-3866

Kernel

Fixed versions: 5.15.121, 6.1.36, 6.3.10

Complete source record
{
  "id": "14276aa51edbd76ed6ee69a3dded8e27288b7600816774570661c3612ec251fa",
  "url": "https://osv.dev/vulnerability/CVE-2023-3866",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ksmbd: validate session id and tree id in the compound request",
    "summary": "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.",
    "evidence": "osv:CVE-2023-3866",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.121",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.36",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.3.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-3866",
      "aliases": [
        "CVE-2023-3866"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0626e6641f6b467447c81dd7678a69c66f7746cf"
                },
                {
                  "fixed": "eb947403518ea3d93f6d89264bb1f5416bb0c7d0"
                },
                {
                  "fixed": "854156d12caa9d36de1cf5f084591c7686cc8a9d"
                },
                {
                  "fixed": "d1066c1b3663401cd23c0d6e60cdae750ce00c0f"
                },
                {
                  "fixed": "5005bcb4219156f1bf7587b185080ec1da08518e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-3866.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.15.0"
                },
                {
                  "fixed": "5.15.121"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.36"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.3.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-3866.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.754963834Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5005bcb4219156f1bf7587b185080ec1da08518e",
        "https://git.kernel.org/stable/c/854156d12caa9d36de1cf5f084591c7686cc8a9d",
        "https://git.kernel.org/stable/c/d1066c1b3663401cd23c0d6e60cdae750ce00c0f",
        "https://git.kernel.org/stable/c/eb947403518ea3d93f6d89264bb1f5416bb0c7d0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/3xxx/CVE-2023-3866.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-3866",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/3xxx/CVE-2023-3866.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-3866",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497425,
  "published_at": "2025-08-16T13:27:57.332+00:00"
}