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 5F9543B9950 for ; Tue, 6 Oct 2026 08:46:50 +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=1791276411; cv=none; b=M+DwwtZCHNY45uHXCHrGbIJ8GYSMmZdwZeZEuGCfouaaYMDlsKTCcXzyYpsJR8IdYm+1nMtlFEbPbDk461A7YelDcdOZH0lwVJRKy1Qn6YKVtW6oMvUAoE5XILoFqkzLeHhp3YojknAUFhDd/6kX33AivNJOx5ytEZgtTqJMa5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276411; c=relaxed/simple; bh=nbPTM7+Ro1mtOL5ZZiH2UyBH7p4WhIhykQsl0lpFWjI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iQAjbN3aAgbP++feKU/2W7er8x4xiUeWSjdK6JYynsylY1CLUdDYZ6DwrWafdiwmIstq9hdm+IT9VQDSti+w8bc6pqcOlZ0DxVQ6HsOKr9GJQdWrqIzjVqAUcL3xsKX6b1Wu/sY6qRTs0BPqZqx+wF0ZGTTPnZdYHqr88q3TvG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HN3zx0vj; 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="HN3zx0vj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDDB71F000FF; Tue, 6 Oct 2026 08:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276410; bh=/Z3rCtWIuh/6Q7ayfiDdDCK7mA1WAgQsIN4DZzDhfMw=; h=From:To:Cc:Subject:Date:Reply-To; b=HN3zx0vj/NEg/F7QrczsvQ3YuviETMFedhjHqgFBN2MTP1wyWUsgClLbCbVuaGccR VEhTYVXB3lcPJPSMH9qZeiXk8kwoiNLBiL6rQyO6Fp67D7lVuxTOxK1pyASfz264iq nKwBBACzyFnckmBFQObgso1nket90hsFBdn9ZF58= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98172: smb: client: fix smbd_connection leak on cifs_get_tcp_session() error Date: Tue, 6 Oct 2026 10:44:33 +0200 Message-ID: <2026100631-CVE-2026-98172-645c@gregkh> X-Mailer: git-send-email 2.56.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=3124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NMr/4utP5/o3Aa0HPddStwVnhNjpPVDz5mQasaHwPRY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtrxnWX7fdNKx3rSqZWdTQpQlRZQWuBy1VrL1Yom5P DeITc+9I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaieJphfqX/uRtZ+xqm1s9L ZX7YmNsxXW2GDMNcgS9X1GIunri1T3JVT/Vh0TuM/jfmAAA= 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: client: fix smbd_connection leak on cifs_get_tcp_session() error When an RDMA connection is successfully established via smbd_get_connection() but cifs_get_tcp_session() later fails (e.g. kthread_create() returns an error), the error path frees tcp_ses without first destroying the smbd_connection. Fix this by calling smbd_destroy() in the out_err cleanup path before kfree(tcp_ses). smbd_destroy() safely handles the case where smbd_conn is NULL, so it can be called unconditionally. The Linux kernel CVE team has assigned CVE-2026-98172 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 2f8946464b11822169b9f10c7cf58a2440b51d54 and fixed in 6.1.189 with commit 3164402c58940ff58a3cecdb026405f07b0253af Issue introduced in 4.16 with commit 2f8946464b11822169b9f10c7cf58a2440b51d54 and fixed in 6.6.158 with commit e3344bb0ff5ec8a276f42239e140f5442841ef23 Issue introduced in 4.16 with commit 2f8946464b11822169b9f10c7cf58a2440b51d54 and fixed in 6.12.112 with commit 5c908e49d349266dff0c86dda6a05df0ff19b824 Issue introduced in 4.16 with commit 2f8946464b11822169b9f10c7cf58a2440b51d54 and fixed in 6.18.54 with commit 928edc4bd6a617caabeb575fc13c254d9df623c4 Issue introduced in 4.16 with commit 2f8946464b11822169b9f10c7cf58a2440b51d54 and fixed in 7.2.8 with commit b26a3fcf2f1c2cadba400290b639f01395db8fc8 Issue introduced in 4.16 with commit 2f8946464b11822169b9f10c7cf58a2440b51d54 and fixed in 7.3-rc4 with commit e75c96157d45e498970158c8f7373d90102e33b9 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-98172 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/client/connect.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/3164402c58940ff58a3cecdb026405f07b0253af https://git.kernel.org/stable/c/e3344bb0ff5ec8a276f42239e140f5442841ef23 https://git.kernel.org/stable/c/5c908e49d349266dff0c86dda6a05df0ff19b824 https://git.kernel.org/stable/c/928edc4bd6a617caabeb575fc13c254d9df623c4 https://git.kernel.org/stable/c/b26a3fcf2f1c2cadba400290b639f01395db8fc8 https://git.kernel.org/stable/c/e75c96157d45e498970158c8f7373d90102e33b9