CVE-2026-143080: ksmbd: refuse reauthentication of an expired session as another user
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: refuse reauthentication of an expired session as another user
When a Kerberos session expires, its owner can reauthenticate it. For an NTLM reauthentication, ntlmauthenticate() only compares the new user with sess->user when the session is still valid. An expired session is in SMB2SESSIONINPROGRESS during the reauthentication, so it takes the other branch and simply sets sess->user to the new user:
- the session's open files, tree connects and other state, created under the original user's identity, now belong to whichever user just authenticated, and a later Kerberos reauthentication is compared against that user rather than the original one; - the original struct ksmbduser is overwritten without being freed.
krb5authenticate() already refuses a different user in this case, and the valid-session branch of ntlmauthenticate() does too. Do the same for an expired session: compare with the existing user and refuse a different one with -EKEYREJECTED, freeing the newly looked-up user either way.
An AI assistant was used to find and fix this and as an independent reviewer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ksmbd NTLM reauthentication, compare the newly authenticated user with the existing session user; if the expired session is reauthenticated as a different user, reject it with -EKEYREJECTED and free the newly looked-up user.