CVE-2023-52442

ksmbd: validate session id and tree id in compound request

MEDIUM
5.5
CVSS Score
Published: February 21, 2024 at 07:21 AM 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 30%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate session id and tree id in compound request `smb2_get_msg()` in smb2_get_ksmbd_tcon() and smb2_check_user_session() will always return the first request smb2 header in a compound request. if `SMB2_TREE_CONNECT_HE` is the first command in compound request, will return 0, i.e. The tree id check is skipped. This patch use ksmbd_req_buf_next() to get current command in compound.

Affected

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

5.15 ≤ v < 5.15.1455.15 ≤ v < 6.1.535.15 ≤ v < 6.4.165.15 ≤ v < 6.55.16 ≤ v < 6.1.536.2 ≤ v < 6.4.166.5 rc16.5 rc26.5 rc3626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 017d85c94f02090a87f4a473dbe0d6ee0da72693 (fixed)
Vendor states this is fixed in 3df0411e132ee74a87aa13142dfd2b190275332e (fixed)
Vendor states this is fixed in 4c2b350b2e269e3fd17bbfa42de1b42775b777ac (fixed)
Vendor states this is fixed in becb5191d1d5fdfca0198a2e37457bbbf4fe266f (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.145 (unaffected)
Vendor states this is fixed in 6.1.53 (unaffected)
Vendor states this is fixed in 6.4.16 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/017d85c94f02090a87f4a473dbe0d6ee0da72693
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3df0411e132ee74a87aa13142dfd2b190275332e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4c2b350b2e269e3fd17bbfa42de1b42775b777ac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/becb5191d1d5fdfca0198a2e37457bbbf4fe266f

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

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

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

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