Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D6FD62BB0A for ; Sat, 2 Mar 2024 21:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416415; cv=none; b=BctYJpO9uMaigySjyUw92nVttP8+6naPgVdpChBnpY8AmvkiwZFKy1uYLWCUmq/gG/MKI/uGoklpQc5mxGGImVXoqa5L+j14SDJLfNm9wHU5SlNcwe+Gm8iJ8iQWpsBZualkhdlchvFKuMAjev3QcWua9YBAhplFHNl6XsxUwvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416415; c=relaxed/simple; bh=H+k0hemxAW40HLZx1Om9Q/5y7CfGr90iCh9ITxcfM/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n0qQT9pIv2wvWmN7aIzvtYPViF8CfGUqGuSDeKR5JECksDlxh5OKgjv1YLhRAkgSg9YBjACbgf+Y840YFun7SbxQJGBSIQrlqZCYtSTGemEgYdpOMBVHBlvx9abKrbWo6/VRomMjS5SydqMdGU0Ko2nlXxiZsnpo6dnlFlm3N68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kDqS/aHN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kDqS/aHN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52E71C433F1; Sat, 2 Mar 2024 21:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416415; bh=H+k0hemxAW40HLZx1Om9Q/5y7CfGr90iCh9ITxcfM/o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kDqS/aHN4pT3f/F0475GR7l5+SPygxiC9N+7Lp03UtWE1zl5ThK4LZN0gJBiyyVYD a7fxOI312bnVP7DajQnH0VnPTf6VeSIn8+XH07opBvMoSyEW+LOhdmLVeMt7qfzAPs vr6IQcpdBxnn17U4nH6A6DAh6Sf/QmaS+hip19pk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52513: RDMA/siw: Fix connection failure handling Date: Sat, 2 Mar 2024 22:52:58 +0100 Message-ID: <2024030251-CVE-2023-52513-5224@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2955; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H+k0hemxAW40HLZx1Om9Q/5y7CfGr90iCh9ITxcfM/o=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmP52+etPGrStCLdN1HuVxt65o9f1QJvU04K8WT0/E+U URf3flrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEdAPD/MibHEte9l3Lnhvh ZMg8/bTCzFfpBxjmR+yqZWhfzTjxzonzV5ufWwaK3PGZDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Fix connection failure handling In case immediate MPA request processing fails, the newly created endpoint unlinks the listening endpoint and is ready to be dropped. This special case was not handled correctly by the code handling the later TCP socket close, causing a NULL dereference crash in siw_cm_work_handler() when dereferencing a NULL listener. We now also cancel the useless MPA timeout, if immediate MPA request processing fails. This patch furthermore simplifies MPA processing in general: Scheduling a useless TCP socket read in sk_data_ready() upcall is now surpressed, if the socket is already moved out of TCP_ESTABLISHED state. The Linux kernel CVE team has assigned CVE-2023-52513 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 6c52fdc244b5 and fixed in 5.4.258 with commit 6e26812e289b Issue introduced in 5.3 with commit 6c52fdc244b5 and fixed in 5.10.198 with commit 0d520cdb0cd0 Issue introduced in 5.3 with commit 6c52fdc244b5 and fixed in 5.15.135 with commit 81b7bf367eea Issue introduced in 5.3 with commit 6c52fdc244b5 and fixed in 6.1.57 with commit 5cf38e638e5d Issue introduced in 5.3 with commit 6c52fdc244b5 and fixed in 6.5.7 with commit eeafc50a77f6 Issue introduced in 5.3 with commit 6c52fdc244b5 and fixed in 6.6 with commit 53a3f7770497 Please see https://www.kernel.org or 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-2023-52513 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: drivers/infiniband/sw/siw/siw_cm.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/6e26812e289b374c17677d238164a5a8f5770594 https://git.kernel.org/stable/c/0d520cdb0cd095eac5d00078dfd318408c9b5eed https://git.kernel.org/stable/c/81b7bf367eea795d259d0261710c6a89f548844d https://git.kernel.org/stable/c/5cf38e638e5d01b68f9133968a85e8b3fd1ecf2f https://git.kernel.org/stable/c/eeafc50a77f6a783c2c44e7ec3674a7b693e06f8 https://git.kernel.org/stable/c/53a3f777049771496f791504e7dc8ef017cba590