{"id":"CVE-2026-143080","state":"PUBLISHED","title":"ksmbd: refuse reauthentication of an expired session as another user","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: refuse reauthentication of an expired session as another user\n\nWhen a Kerberos session expires, its owner can reauthenticate it. For an\nNTLM reauthentication, ntlm_authenticate() only compares the new user with\nsess->user when the session is still valid. An expired session is in\nSMB2_SESSION_IN_PROGRESS during the reauthentication, so it takes the\nother branch and simply sets sess->user to the new user:\n\n- the session's open files, tree connects and other state, created under\n  the original user's identity, now belong to whichever user just\n  authenticated, and a later Kerberos reauthentication is compared\n  against that user rather than the original one;\n- the original struct ksmbd_user is overwritten without being freed.\n\nkrb5_authenticate() already refuses a different user in this case, and\nthe valid-session branch of ntlm_authenticate() does too. Do the same for\nan expired session: compare with the existing user and refuse a different\none with -EKEYREJECTED, freeing the newly looked-up user either way.\n\nAn AI assistant was used to find and fix this and as an independent\nreviewer.","publishedAt":"2026-12-03T09:19:00.957Z","updatedAt":"2026-12-03T09:19:00.957Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a47634cd729b42dfe372048b056d98ba4e128eaa","status":"affected","lessThan":"600269bdd8ba81e105b8306b79251e8b0a624dbd","versionType":"git"},{"version":"a47634cd729b42dfe372048b056d98ba4e128eaa","status":"affected","lessThan":"265709f9dc271693d1a261a62242db652fcc471d","versionType":"git"},{"version":"3fc762f881c98426154f5cb2088ddbe7661583fd","status":"affected","versionType":"git"},{"version":"7.2.6","status":"affected","lessThan":"7.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/600269bdd8ba81e105b8306b79251e8b0a624dbd","https://git.kernel.org/stable/c/265709f9dc271693d1a261a62242db652fcc471d"],"weaknesses":[],"ingestedAt":"2026-12-03T09:28:04.553Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143080.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143080","state":"PUBLISHED","datePublished":"2026-12-03T09:19:00.957Z","dateUpdated":"2026-12-03T09:19:00.957Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.347Z"},"containers":{"cna":{"title":"ksmbd: refuse reauthentication of an expired session as another user","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: refuse reauthentication of an expired session as another user\n\nWhen a Kerberos session expires, its owner can reauthenticate it. For an\nNTLM reauthentication, ntlm_authenticate() only compares the new user with\nsess->user when the session is still valid. An expired session is in\nSMB2_SESSION_IN_PROGRESS during the reauthentication, so it takes the\nother branch and simply sets sess->user to the new user:\n\n- the session's open files, tree connects and other state, created under\n  the original user's identity, now belong to whichever user just\n  authenticated, and a later Kerberos reauthentication is compared\n  against that user rather than the original one;\n- the original struct ksmbd_user is overwritten without being freed.\n\nkrb5_authenticate() already refuses a different user in this case, and\nthe valid-session branch of ntlm_authenticate() does too. Do the same for\nan expired session: compare with the existing user and refuse a different\none with -EKEYREJECTED, freeing the newly looked-up user either way.\n\nAn AI assistant was used to find and fix this and as an independent\nreviewer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a47634cd729b42dfe372048b056d98ba4e128eaa","status":"affected","lessThan":"600269bdd8ba81e105b8306b79251e8b0a624dbd","versionType":"git"},{"version":"a47634cd729b42dfe372048b056d98ba4e128eaa","status":"affected","lessThan":"265709f9dc271693d1a261a62242db652fcc471d","versionType":"git"},{"version":"3fc762f881c98426154f5cb2088ddbe7661583fd","status":"affected","versionType":"git"},{"version":"7.2.6","status":"affected","lessThan":"7.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/600269bdd8ba81e105b8306b79251e8b0a624dbd"},{"url":"https://git.kernel.org/stable/c/265709f9dc271693d1a261a62242db652fcc471d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:00.957Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}