{"id":"CVE-2026-53383","aliases":["CVE-2026-53383"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: reject non-VALID session in compound request branch","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: reject non-VALID session in compound request branch\n\nsmb2_check_user_session() takes a shortcut for any operation that is not\nthe first in a COMPOUND request: it reuses work->sess (the session bound by\nthe first operation) and validates only the SessionId, then returns\n\"valid\". It never re-checks work->sess->state == SMB2_SESSION_VALID, and a\nSessionId of 0xFFFFFFFFFFFFFFFF (ULLONG_MAX, the MS-SMB2 related-operation\nvalue) skips even the id comparison. The standalone path\n(ksmbd_session_lookup_all() plus the SESSION_SETUP state machine) does\nenforce the VALID state; the compound branch bypasses all of it.\n\nA SESSION_SETUP carrying only an NTLM Type-1 (NtLmNegotiate) blob publishes\na fresh SMB2_SESSION_IN_PROGRESS session whose sess->user is still NULL\n(->user is assigned later, by ntlm_authenticate()). Used as operation 1 of\na COMPOUND with operation 2 = TREE_CONNECT (related, SessionId=ULLONG_MAX,\n\\\\host\\IPC$), the tree-connect then runs on that IN_PROGRESS session and\nreaches ksmbd_ipc_tree_connect_request(), which dereferences\nuser_name(sess->user) with sess->user == NULL (transport_ipc.c:687/701/704)\n-> remote NULL-pointer dereference and a kernel Oops that wedges the ksmbd\nworker for all clients.\n\nReject any non-first compound operation that lands on a session which is\nnot SMB2_SESSION_VALID, mirroring the validity the standalone lookup path\nenforces. SESSION_SETUP itself legitimately runs on an IN_PROGRESS session,\nbut it is never carried as a non-first compound operation, so multi-leg\nauthentication is unaffected by this check.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: reject non-VALID session in compound request branch\n\nsmb2_check_user_session() takes a shortcut for any operation that is not\nthe first in a COMPOUND request: it reuses work->sess (the session bound by\nthe first operation) and validates only the SessionId, then returns\n\"valid\". It never re-checks work->sess->state == SMB2_SESSION_VALID, and a\nSessionId of 0xFFFFFFFFFFFFFFFF (ULLONG_MAX, the MS-SMB2 related-operation\nvalue) skips even the id comparison. The standalone path\n(ksmbd_session_lookup_all() plus the SESSION_SETUP state machine) does\nenforce the VALID state; the compound branch bypasses all of it.\n\nA SESSION_SETUP carrying only an NTLM Type-1 (NtLmNegotiate) blob publishes\na fresh SMB2_SESSION_IN_PROGRESS session whose sess->user is still NULL\n(->user is assigned later, by ntlm_authenticate()). Used as operation 1 of\na COMPOUND with operation 2 = TREE_CONNECT (related, SessionId=ULLONG_MAX,\n\\\\host\\IPC$), the tree-connect then runs on that IN_PROGRESS session and\nreaches ksmbd_ipc_tree_connect_request(), which dereferences\nuser_name(sess->user) with sess->user == NULL (transport_ipc.c:687/701/704)\n-> remote NULL-pointer dereference and a kernel Oops that wedges the ksmbd\nworker for all clients.\n\nReject any non-first compound operation that lands on a session which is\nnot SMB2_SESSION_VALID, mirroring the validity the standalone lookup path\nenforces. SESSION_SETUP itself legitimately runs on an IN_PROGRESS session,\nbut it is never carried as a non-first compound operation, so multi-leg\nauthentication is unaffected by this check.","source":"cvelist"}],"published":"2026-07-19T11:59:31.616Z","modified":"2026-08-17T05:17:12.240Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"eb947403518ea3d93f6d89264bb1f5416bb0c7d0","fixed":"25ff12b82a376ff5c4583102a63d2456a6b9ebb9","status":"affected"},{"type":"git","introduced":"854156d12caa9d36de1cf5f084591c7686cc8a9d","fixed":"fc578523a72cb8b329d32070b95898e81613cc3f","status":"affected"},{"type":"git","introduced":"5005bcb4219156f1bf7587b185080ec1da08518e","fixed":"d2bbbb6c55812220fee5d801c275cc267ea3cbeb","status":"affected"},{"type":"git","introduced":"5005bcb4219156f1bf7587b185080ec1da08518e","fixed":"8f0302fb691537d33ec8f668565257ea9d340ffe","status":"affected"},{"type":"git","introduced":"5005bcb4219156f1bf7587b185080ec1da08518e","fixed":"7cad3ceaf679c55bc9946685dacafce78ce6b51a","status":"affected"},{"type":"git","introduced":"5005bcb4219156f1bf7587b185080ec1da08518e","fixed":"06e1f05a1dbe8bbd054c0927b17fc0a61cc8bef7","status":"affected"},{"type":"git","introduced":"5005bcb4219156f1bf7587b185080ec1da08518e","fixed":"5f983b864d3d473ac533b2f4f44a1bbe5dcbccf4","status":"affected"},{"type":"git","introduced":"5005bcb4219156f1bf7587b185080ec1da08518e","fixed":"609ca17d869d04ba249e32cdcbf13c0b1c66f43c","status":"affected"},{"type":"git","version":"d1066c1b3663401cd23c0d6e60cdae750ce00c0f","status":"affected"},{"type":"semver","introduced":"5.15.121","fixed":"5.15.211","status":"affected"},{"type":"semver","introduced":"6.1.36","fixed":"6.1.177","status":"affected"},{"type":"semver","introduced":"6.3.10","fixed":"6.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"5.15.211","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.177","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.144","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.95","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.37","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.14","lastAffected":"7.0.*","status":"unaffected"},{"type":"semver","introduced":"7.1.2","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.121","fixed":"5.15.211"},{"status":"affected","introduced":"6.1.36","fixed":"6.1.177"},{"status":"affected","introduced":"6.3.10","fixed":"6.4"},{"status":"affected","introduced":"6.4.1","fixed":"6.6.144"},{"status":"affected","introduced":"6.7","fixed":"6.12.95"},{"status":"affected","introduced":"6.13","fixed":"6.18.37"},{"status":"affected","introduced":"6.19","fixed":"7.0.14"},{"status":"affected","introduced":"7.1","fixed":"7.1.2"},{"status":"affected","version":"6.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/25ff12b82a376ff5c4583102a63d2456a6b9ebb9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc578523a72cb8b329d32070b95898e81613cc3f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2bbbb6c55812220fee5d801c275cc267ea3cbeb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f0302fb691537d33ec8f668565257ea9d340ffe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7cad3ceaf679c55bc9946685dacafce78ce6b51a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/06e1f05a1dbe8bbd054c0927b17fc0a61cc8bef7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f983b864d3d473ac533b2f4f44a1bbe5dcbccf4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/609ca17d869d04ba249e32cdcbf13c0b1c66f43c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53383","url":"https://www.cve.org/CVERecord?id=CVE-2026-53383","licence":"CVE Terms of Use","modified":"2026-08-17T04:50:33.785Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53383","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53383","licence":"Public domain","modified":"2026-08-17T05:17:12.240Z"}],"updatedAt":"2026-11-25T22:59:28.686Z","epss":{"score":0.00664,"percentile":0.53004,"date":"2026-12-01T12:00:22.000Z"}}