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 44EA61FCC70 for ; Mon, 21 Oct 2024 19:41:46 +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=1729539706; cv=none; b=LWfaGDVFmrV3GprVYUuH2d9KWbB8TMiov0A/2lUtSDEZ9KFa/PWGQ7f//8GVkUkGFCgC1yEniW7Dp6sZfd8vTs35XX3jNneDI7cIjVEO/Ax5UTxVCAFHLc/9ynziFvDyYgJKx9ooXQ7ibF0CxMdvyM2esg0od57WtMZrVzgGG68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539706; c=relaxed/simple; bh=7z1/iwPiKbUyNS8rEZh/OaxyNvjEk+OinS/RcmSVdCs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yn+NdD/mNloPwoOhgq8GxdoqrahRjzMV931OhjVKH+UsgBMr60GVAXWVJmBQSVm/1Oc/mZ2A8b9GQzMuB9CTaBUsmEPa5YiP3IJNwnwqvAARNjjDKJDlzX9TmB995N9/jPzXJovVLVAAlYFJ3DOkkJfe/h9IPUE9zKl4yXWI/js= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P3ROPyzS; 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="P3ROPyzS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7BD8C4CEC3; Mon, 21 Oct 2024 19:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539706; bh=7z1/iwPiKbUyNS8rEZh/OaxyNvjEk+OinS/RcmSVdCs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P3ROPyzST2HFBPJP0AOWmmn7O280xmLeLH8oAJ7kmfo4hphcM8dMyWzSg4xjekgkR mJaB/xgS2ThA/2+94xJHcVl+QbV4/Q1PC7KV+MYU24YhssjFnD4PBg5adN9P1XrI+j IAiAo70XZq7t3DGbiQ0qvOScWc/blVxUGjPHIK6E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50062: RDMA/rtrs-srv: Avoid null pointer deref during path establishment Date: Mon, 21 Oct 2024 21:40:03 +0200 Message-ID: <2024102136-CVE-2024-50062-1ea1@gregkh> X-Mailer: git-send-email 2.47.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=2401; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7z1/iwPiKbUyNS8rEZh/OaxyNvjEk+OinS/RcmSVdCs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlia384V/35qh6005Azbv8e162VLhub37nGSm9IepP55 alnRsfljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIwGWGOfzR+l1PWnYYmbzz eiAU5KzG07bSjGHB1ofzfexbl+yOO37ohtI3o6X7fPKPAAA= 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/rtrs-srv: Avoid null pointer deref during path establishment For RTRS path establishment, RTRS client initiates and completes con_num of connections. After establishing all its connections, the information is exchanged between the client and server through the info_req message. During this exchange, it is essential that all connections have been established, and the state of the RTRS srv path is CONNECTED. So add these sanity checks, to make sure we detect and abort process in error scenarios to avoid null pointer deref. The Linux kernel CVE team has assigned CVE-2024-50062 to this issue. Affected and fixed versions =========================== Fixed in 5.15.168 with commit 394b2f4d5e01 Fixed in 6.1.113 with commit b5d407666446 Fixed in 6.6.57 with commit ccb8e44ae3e2 Fixed in 6.11.4 with commit b720792d7e85 Fixed in 6.12-rc1 with commit d0e62bf7b575 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-2024-50062 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/ulp/rtrs/rtrs-srv.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/394b2f4d5e014820455af3eb5859eb328eaafcfd https://git.kernel.org/stable/c/b5d4076664465487a9a3d226756995b12fb73d71 https://git.kernel.org/stable/c/ccb8e44ae3e2391235f80ffc6be59bec6b889ead https://git.kernel.org/stable/c/b720792d7e8515bc695752e0ed5884e2ea34d12a https://git.kernel.org/stable/c/d0e62bf7b575fbfe591f6f570e7595dd60a2f5eb