CVE-2026-64389
ksmbd: validate NTLMv2 response before updating session key
Check your servers for CVE-2026-64389
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-64389 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.49%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 43.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before e589e997bddde0a6f45672dd871cba7b3ff28e17 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before a6a951416b55eaf51ea2742f7ba786f240e70137 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before f5d74c186bab26a5d5a025305e67edd0888aa34d affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before b56400364aed5c34d6e1a0b493081290a5328a9c affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 89ca7756d5566ba636bb9092cdbe57dab095e136 affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 954d196bebb2b50151cb96454c72dc113b2af1ac
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.114 up to and including 6.12.* unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.4 up to and including 7.1.* unaffected 7.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-64389 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-64389
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-64389
trivy image --scanners vuln IMAGE | grep CVE-2026-64389
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e589e997bddde0a6f45672dd871cba7b3ff28e17 git.kernel.org
- https://git.kernel.org/stable/c/a6a951416b55eaf51ea2742f7ba786f240e70137 git.kernel.org
- https://git.kernel.org/stable/c/f5d74c186bab26a5d5a025305e67edd0888aa34d git.kernel.org
- https://git.kernel.org/stable/c/b56400364aed5c34d6e1a0b493081290a5328a9c git.kernel.org
- https://git.kernel.org/stable/c/89ca7756d5566ba636bb9092cdbe57dab095e136 git.kernel.org
- https://git.kernel.org/stable/c/954d196bebb2b50151cb96454c72dc113b2af1ac git.kernel.org
Source: the record CVE-2026-64389 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse