{"id":"CVE-2026-64389","published":"2026-07-25T08:50:36Z","modified":"2026-10-30T12:27:50Z","title":"ksmbd: validate NTLMv2 response before updating session key","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate NTLMv2 response before updating session key\n\nksmbd_auth_ntlmv2() derives the NTLMv2 session key into\nsess->sess_key before it verifies the NTLMv2 response.\nksmbd_decode_ntlmssp_auth_blob() then continues into KEY_XCH even\nwhen ksmbd_auth_ntlmv2() failed.\n\nWith SMB3 multichannel binding, the failed authentication operates on\nan existing session and the session setup error path does not expire\nbinding sessions. A client can send a binding session setup with a\nbad NT proof and KEY_XCH and still modify sess->sess_key before\nSTATUS_LOGON_FAILURE is returned.\n\nRelevant path:\n\n  smb2_sess_setup()\n    -> conn->binding = true\n    -> ntlm_authenticate()\n       -> session_user()\n       -> ksmbd_decode_ntlmssp_auth_blob()\n          -> ksmbd_auth_ntlmv2()\n             -> calc_ntlmv2_hash()\n             -> hmac_md5_usingrawkey(..., sess->sess_key)\n             -> crypto_memneq() returns mismatch\n          -> KEY_XCH arc4_crypt(..., sess->sess_key, ...)\n    -> out_err without expiring the binding session\n\nDerive the base session key into a local buffer and copy it to\nsess->sess_key only after the proof matches. Return immediately on\nauthentication failure so KEY_XCH is only processed after successful\nauthentication.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00682,"percentile":0.47645,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e589e997bddde0a6f45672dd871cba7b3ff28e17","tags":[]},{"url":"https://git.kernel.org/stable/c/a6a951416b55eaf51ea2742f7ba786f240e70137","tags":[]},{"url":"https://git.kernel.org/stable/c/f5d74c186bab26a5d5a025305e67edd0888aa34d","tags":[]},{"url":"https://git.kernel.org/stable/c/b56400364aed5c34d6e1a0b493081290a5328a9c","tags":[]},{"url":"https://git.kernel.org/stable/c/89ca7756d5566ba636bb9092cdbe57dab095e136","tags":[]},{"url":"https://git.kernel.org/stable/c/954d196bebb2b50151cb96454c72dc113b2af1ac","tags":[]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.53},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < e589e997bddde0a6f45672dd871cba7b3ff28e17",">= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a6a951416b55eaf51ea2742f7ba786f240e70137",">= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < f5d74c186bab26a5d5a025305e67edd0888aa34d",">= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < b56400364aed5c34d6e1a0b493081290a5328a9c",">= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 89ca7756d5566ba636bb9092cdbe57dab095e136",">= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 954d196bebb2b50151cb96454c72dc113b2af1ac"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2026-48933","exploited":false,"provenance":"source"}}