{"id":"CVE-2023-52442","summary":"ksmbd: validate session id and tree id in compound request","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate session id and tree id in compound request\n\n`smb2_get_msg()` in smb2_get_ksmbd_tcon() and smb2_check_user_session()\nwill always return the first request smb2 header in a compound request.\nif `SMB2_TREE_CONNECT_HE` is the first command in compound request, will\nreturn 0, i.e. The tree id check is skipped.\nThis patch use ksmbd_req_buf_next() to get current command in compound.","modified":"2026-04-02T09:42:45.669586Z","published":"2024-02-21T07:21:01.814Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52442.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/017d85c94f02090a87f4a473dbe0d6ee0da72693"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3df0411e132ee74a87aa13142dfd2b190275332e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4c2b350b2e269e3fd17bbfa42de1b42775b777ac"},{"type":"WEB","url":"https://git.kernel.org/stable/c/becb5191d1d5fdfca0198a2e37457bbbf4fe266f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52442.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52442"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"017d85c94f02090a87f4a473dbe0d6ee0da72693"},{"fixed":"becb5191d1d5fdfca0198a2e37457bbbf4fe266f"},{"fixed":"4c2b350b2e269e3fd17bbfa42de1b42775b777ac"},{"fixed":"3df0411e132ee74a87aa13142dfd2b190275332e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52442.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}