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 E35AE4B44DB for ; Thu, 17 Sep 2026 16:17:17 +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=1789661839; cv=none; b=Ks3Hixf3aiJxe3pmzYnz9xl/8hAAjMlk3DIz+k/91UWntt4jYzkvY7cIA+ZkgdK/1OfFuXoo0E2QYTql3ewxiIH1DSL75gAaNO+Ec1HLC+u2gmPTtcn7jvcg1dJlDCqVlq8TgvgzpXxT99Nt3MqWk5Si7+H+ZJCMqhBNearQhhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661839; c=relaxed/simple; bh=h9TNHKuTZyLv3MYieS8c3wGycdiafC7CwaFfKy2/K7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U7TzBLoIMm8ToGZvRPim67D85nSBDMUEQ0cP9iu4kjHNXNst6yLC3aL3L1cx0aoZWJySJ9GXz3t/rrLb/aLiAOoQHUp4FOzwtHTHFlrTZSPcNKkIOr498EybIP2q0ewFetlVSm6fM1ApdzhbbDijH8GFiaLf6DokGGRhodA8QBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y+e26fLy; 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="Y+e26fLy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46F3D1F000FF; Thu, 17 Sep 2026 16:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661837; bh=IEfHy3yxqk+5IhlFa4gPty7nR4kSucAx7lizYx+xzqc=; h=From:To:Cc:Subject:Date:Reply-To; b=Y+e26fLywNHzeQy88tirUnU6TjBxRh4dNHBLoPmXQl3uWlQAXjJaFs6yQDV444Q3a LBQ820H6sJaeHVCx9XeOxs94kPQXmLrcH4GodkfEBzqIPaoT+ZPdHJ/tiQa+lq7VW6 SBsmiw8JD+sVXJMSocJsjgWvOWIoPPeoJStV5FE4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90152: smb/server: fix session leak in ksmbd_session_register() Date: Thu, 17 Sep 2026 17:09:42 +0100 Message-ID: <2026091723-CVE-2026-90152-9535@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=3031; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ksTaN/wLO2X7kz9/0n2R9XXKvxPNo0fynIX3BiC7DGo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBCpW6IUWWRmlvpKfs+zqu3nyzK9za1c9ytu+cFOYz zTVCLXXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRNyEM85RmidnaX2sxuFKn cXKqbcIq93srVzAsOKJnxMe9JvOsgskejrADu899WyqmCAA= 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: smb/server: fix session leak in ksmbd_session_register() See the procedure below: smb2_sess_setup ksmbd_smb2_session_create __session_create atomic_set(&sess->refcnt, 2) hash_add(sessions_table, &sess->hlist, sess->id) ksmbd_session_register xa_store(&conn->sessions, sess->id, sess) // fail ksmbd_user_session_put atomic_dec(&sess->refcnt) // refcnt is 1, session is not freed Remove the session from sessions_table and drop its table reference if xa_store() fails. The Linux kernel CVE team has assigned CVE-2026-90152 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit f5c779b7ddbda30866cf2a27c63e34158f858c73 and fixed in 6.12.110 with commit 03a22a003f41b182245e6c71fe565e277cff7094 Issue introduced in 6.4 with commit f5c779b7ddbda30866cf2a27c63e34158f858c73 and fixed in 6.18.52 with commit b967a595fb735d313a8676b2ca6a4cba38506482 Issue introduced in 6.4 with commit f5c779b7ddbda30866cf2a27c63e34158f858c73 and fixed in 7.2.6 with commit 55c677619084f9c9fa4146d933cc8ccafc924c87 Issue introduced in 6.4 with commit f5c779b7ddbda30866cf2a27c63e34158f858c73 and fixed in 7.3-rc1 with commit 99b25b046e47e4904373cfeb445c5483f1633d88 Issue introduced in 5.15.145 with commit 708c304b583d789957399dd8237f212cf8ad1e4d Issue introduced in 6.1.29 with commit f623f627ad2b1dc215ab3b0df53fb05cfd3a1c3b Issue introduced in 6.2.16 with commit d270631c21e68fb8016d6e231d022d7023a2df6f Issue introduced in 6.3.2 with commit 02f41d88f15d6b7d523e52cc3f87488f57e9265b 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-90152 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/mgmt/user_session.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/03a22a003f41b182245e6c71fe565e277cff7094 https://git.kernel.org/stable/c/b967a595fb735d313a8676b2ca6a4cba38506482 https://git.kernel.org/stable/c/55c677619084f9c9fa4146d933cc8ccafc924c87 https://git.kernel.org/stable/c/99b25b046e47e4904373cfeb445c5483f1633d88