CVE-2026-64389
ksmbd: validate NTLMv2 response before updating session key
Reported by linux · Published July 25, 2026
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate NTLMv2 response before updating session key ksmbd_auth_ntlmv2() derives the NTLMv2 session key into sess->sess_key before it verifies the NTLMv2 response. ksmbd_decode_ntlmssp_auth_blob() then continues into KEY_XCH even when ksmbd_auth_ntlmv2() failed. With SMB3 multichannel binding, the failed authentication operates on an existing session and the session setup error path does not expire binding sessions. A client can send a binding session setup with a bad NT proof and KEY_XCH and still modify sess->sess_key before STATUS_LOGON_FAILURE is returned. Relevant path: smb2_sess_setup() -> conn->binding = true -> ntlm_authenticate() -> session_user() -> ksmbd_decode_ntlmssp_auth_blob() -> ksmbd_auth_ntlmv2() -> calc_ntlmv2_hash() -> hmac_md5_usingrawkey(..., sess->sess_key) -> crypto_memneq() returns mismatch -> KEY_XCH arc4_crypt(..., sess->sess_key, ...) -> out_err without expiring the binding session Derive the base session key into a local buffer and copy it to sess->sess_key only after the proof matches. Return immediately on authentication failure so KEY_XCH is only processed after successful authentication.
EPSS 0.49% · 42.7th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 7.1.4, 6.18.40 |
| Linux | Linux | f5d74c186bab26a5d5a025305e67edd0888aa34d, e589e997bddde0a6f45672dd871cba7b3ff28e17, b56400364aed5c34d6e1a0b493081290a5328a9c, a6a951416b55eaf51ea2742f7ba786f240e70137, 954d196bebb2b50151cb96454c72dc113b2af1ac, 89ca7756d5566ba636bb9092cdbe57dab095e136 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 |
| Linux | Linux | 5.15, 0, 6.1.191 |
| Linux | Linux | 7.2, 0, 6.1.191 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
Timeline
- Jul 25, 2026 EPSS Score (30 in total, the first dated here)
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (20 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64389
vulnetix vdb fixes CVE-2026-64389
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64389/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart