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 57AEC2EC571 for ; Fri, 25 Sep 2026 13:07:18 +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=1790341639; cv=none; b=dOD0/Jb1KVJbjNSoGPkVaFlW3WRuVAJjec61wIsiLYsDpVl01TgMoOS69alD6QuFYAUmiOwTsK1wUSWF+nzs8G4gm19R7mKXsFQXvT63UWaWIZZRleF9g+YdqaXtlotw7W2xg3u9/RvogwCw4XbMRzX567HaOCJHVDVnZq4qBV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790341639; c=relaxed/simple; bh=hhNydkgKKORjHDJkMqTZW/OAnSF9eKGAFAwr1NAFX6s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nbcIrxZXEUyLfG4pvhtdU7qUEbxq//fImPRp+bVL+rz9GFUjQqymwb/KPNNkhdAiZdBB7jfnm1/P26DvVfB1MfvwwjV57cXzGtngL2w6j6ARMmkKsR4bZIFt27kbXeer6zU4Tmut/ZKvs6mqk9Ot379SebpYzqwfS+WVSycRrSo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rllhp3aT; 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="rllhp3aT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7064E1F00893; Fri, 25 Sep 2026 13:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790341638; bh=n845CSNzDEtG6ABtG3t/DkLfb+QccMrwuCq0CEcipDM=; h=From:To:Cc:Subject:Date:Reply-To; b=rllhp3aTofwY2uIY698F5oiNLocZxDCfU4yvOIcJErNVjbMe087B2q9vEI3lEjDR6 Y3P0dkvQ5/4XEosGi8im+wJytllM4Jvi+5mWuQ0GZHUX0XDeyTmR7F2zCj2j2PvVyn Fa8KQmBrpowCDkPO1ImQh33FikVbswaHErd3HJu0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98162: smb/server: fix tree connection leak in smb2_tree_connect() Date: Fri, 25 Sep 2026 15:07:07 +0200 Message-ID: <2026092558-CVE-2026-98162-fc53@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=2339; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lwIF+NsRrdVzH9+AA+J8ZHTN6OCaLMlIYmZlZH5PPhs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbCj+lrXqbmVY/+aCH0wHu6U5xCXeaH96srSoLe5yq2 Xhxy5ttHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR6LUM84zXJEY+fuQ5p+VZ Ic/s30uu6Vgo2TLMz5kl/Zg7l0FoRtocyy6+Gh6X7sRtAA== 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 tree connection leak in smb2_tree_connect() See the procedure below: smb2_tree_connect ksmbd_tree_conn_connect xa_store(&sess->tree_conns, tree_conn->id, tree_conn) ksmbd_counter_inc(KSMBD_COUNTER_TREE_CONNS) ksmbd_share_tree_conn_inc(sc) ksmbd_iov_pin_rsp // fail status.ret = KSMBD_TREE_CONN_STATUS_NOMEM // do not disconnect tree_conn Disconnect the new tree connection if ksmbd_iov_pin_rsp() fails. The Linux kernel CVE team has assigned CVE-2026-98162 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d and fixed in 7.2.6 with commit a6c88e5e3a75f1e4a98ad4bc4037465ccd7925bc Issue introduced in 6.6 with commit e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d and fixed in 7.3-rc1 with commit 39f2032096715daae5f6fd0f587ca7a474b019df Issue introduced in 5.15.145 with commit f2283680a80571ca82d710bc6ecd8f8beac67d63 Issue introduced in 6.1.71 with commit 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 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-98162 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/a6c88e5e3a75f1e4a98ad4bc4037465ccd7925bc https://git.kernel.org/stable/c/39f2032096715daae5f6fd0f587ca7a474b019df