CVE-2023-3866

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

MEDIUM
5.5
CVSS Score
Published: August 16, 2025 at 01:27 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 12%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.1215.15 ≤ v < 6.1.365.15 ≤ v < 6.3.105.15 ≤ v < 6.45.16 ≤ v < 6.1.366.2 ≤ v < 6.3.106.4 rc16.4 rc26.4 rc36.4 rc46.4 rc56.4 rc66.4 rc7626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 5005bcb4219156f1bf7587b185080ec1da08518e (fixed)
Vendor states this is fixed in 854156d12caa9d36de1cf5f084591c7686cc8a9d (fixed)
Vendor states this is fixed in d1066c1b3663401cd23c0d6e60cdae750ce00c0f (fixed)
Vendor states this is fixed in eb947403518ea3d93f6d89264bb1f5416bb0c7d0 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.121 (unaffected)
Vendor states this is fixed in 6.1.36 (unaffected)
Vendor states this is fixed in 6.3.10 (unaffected)
Vendor states this is fixed in 6.4 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5005bcb4219156f1bf7587b185080ec1da08518e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/854156d12caa9d36de1cf5f084591c7686cc8a9d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d1066c1b3663401cd23c0d6e60cdae750ce00c0f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/eb947403518ea3d93f6d89264bb1f5416bb0c7d0

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card