CVE-2023-52442
JSON

9.1critical

ksmbd: validate session id and tree id in compound request

Severity
9.1critical CVSS:3.1 by Linux
Exploit likelihood
29.6% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 0626e6641f6b467447c81dd7678a69c66f7746cf before 017d85c94f02090a87f4a473dbe0d6ee0da72693, from 0626e6641f6b467447c81dd7678a69c66f7746cf before becb5191d1d5fdfca0198a2e37457bbbf4fe266f, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 4c2b350b2e269e3fd17bbfa42de1b42775b777ac, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3df0411e132ee74a87aa13142dfd2b190275332e, 5.15
Not affected: before 5.15, from 5.15.145 up to 5.15.*, from 6.1.53 up to 6.1.*, from 6.4.16 up to 6.4.*, from 6.5 up to *
CVE List
linux linux_kernelfrom 5.15 before 5.15.145, from 5.16 before 6.1.53, from 6.2 before 6.4.16, 6.5NVD

All scores

Linux9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ksmbd: validar la identificación de la sesión y la identificación del árbol en la solicitud compuesta `smb2_get_msg()` en smb2_get_ksmbd_tcon() y smb2_check_user_session() siempre devolverá el encabezado smb2 de la primera solicitud en una solicitud compuesta. si `SMB2_TREE_CONNECT_HE` es el primer comando en la solicitud compuesta, devolverá 0, es decir, se omite la verificación de identificación del árbol. Este parche usa ksmbd_req_buf_next() para obtener el comando actual en compuesto.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52442 changed 2026-08-05CVE Terms of Use
NVDCVE-2023-52442 changed 2026-08-04Public domain