Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AA193C818D for ; Mon, 10 Aug 2026 12:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363355; cv=none; b=axKv7Y/8bj0ctGngP7zG9GJ5SKbjQ/LeLypoprrEd9ZwKgP53raOsEK+mrLA1NTXMR1wthuxfSQS6yy9uTQ4ZJN1TqcvOkeHhJazv6epUDrbagqTWww3kOW+YyaJ2+X4KVcBB/ybTXChlTOZYc7cvQNeda37Ep/E9fx23x2SrhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363355; c=relaxed/simple; bh=M7NA+Y3dmq5qSHSARrkAXIViZTuYPL1M9Zu3xBTvcQk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kc1eLv0u7mwXcuqS8bCKzFgQnyLo+vsZN1n9oJBZYxpiqJlaIuk1cYDuG3tSABG6iCsTnzdq+OME0T4u0Es+fETm02vK+0sgfAXXwN+gdmK5ee2seIgb2IvFvMyCfsKraQEGjZ8KQY/8/l0cxkjFy+mvLcXA08GD/Yq0f+lFNrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k/nBbkyJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k/nBbkyJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E3281F000E9; Mon, 10 Aug 2026 12:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363354; bh=0Ytfrny/s1kNtDMKWeieYQqrlrMOx/HSnxnbVoribNM=; h=From:To:Cc:Subject:Date:Reply-To; b=k/nBbkyJhGeq9sU7qoRwpvc1aIDi1J92ffw2dntW9QBx3HPq3Jw0jVv7B5iD+iE1q we0mYHmzwpaoxqRsss30R14WI2q/U7L63x3qYHkKgnSF90uPpMDWse4DEUEdV/RrUn +rUB97cOG4b1oz8Yl5csyYROHuS/VzaDofUCjUB4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68130: ksmbd: defer destroy_previous_session() until after NTLM authentication Date: Mon, 10 Aug 2026 13:57:27 +0200 Message-ID: <2026081058-CVE-2026-68130-e575@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3288; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AoNPZyu7Imatc/dHAikWks9PMezgh3oI4in1k1jltQ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe7p+NiR+cqwv4P1/h1FPTWrKtg2C5oYeqidyK+TX1 fyeV+nSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNh28AwP9zC5UxWYLP8tguv F7Rm25x56RsozjCbdZfIs6I6S4uipPp3sRLf4/0sXnYCAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: defer destroy_previous_session() until after NTLM authentication In ntlm_authenticate(), destroy_previous_session() is called using a user pointer resolved from the client-supplied NTLM blob username field before the NTLMv2 response is validated. An authenticated attacker can set the NTLM blob username to match a victim account and set PreviousSessionId to the victim's session ID; destroy_previous_session() destroys the victim's session while ksmbd_decode_ntlmssp_auth_blob() subsequently rejects the request with -EPERM. Move destroy_previous_session() and the prev_id assignment to after ksmbd_decode_ntlmssp_auth_blob() returns success and use sess->user rather than the pre-authentication lookup result. This matches the ordering already used by krb5_authenticate(), where destroy_previous_session() is called only after ksmbd_krb5_authenticate() returns success. The Linux kernel CVE team has assigned CVE-2026-68130 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.6.148 with commit 5c833074b549e5db125436a6f681af682261f785 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.101 with commit 243f1614ef2aca2d62a744575f1c24b07cd42757 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.42 with commit 18705cace0619fd2123737dcd028147774f38181 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.1.6 with commit 0ff12308c8a6c16ab68f0a487ffa93d69001dc18 Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.2-rc5 with commit c74801ee524f477c174a1899782b6c3b6918d407 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-68130 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/smb/server/smb2pdu.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/5c833074b549e5db125436a6f681af682261f785 https://git.kernel.org/stable/c/243f1614ef2aca2d62a744575f1c24b07cd42757 https://git.kernel.org/stable/c/18705cace0619fd2123737dcd028147774f38181 https://git.kernel.org/stable/c/0ff12308c8a6c16ab68f0a487ffa93d69001dc18 https://git.kernel.org/stable/c/c74801ee524f477c174a1899782b6c3b6918d407