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 9500613C3FE for ; Wed, 17 Apr 2024 10:31:06 +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=1713349866; cv=none; b=blXY0iKw+JbujymONmYQTU66XGs76SPL4uHQBBYdwS45KOdpCeEhbyhgoGLzv2TWQn2+3TLFxWyfHRTLjZRRC0d2b/YhWpkhxi6kBQt/TKI+rdFeYivWBvIiTv4HAzflsqSkEez05tuGesHFD7FhGTh59ctrW0g1MURMUyAE40k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349866; c=relaxed/simple; bh=ChAVZEOaxyPJsgz++ofsaPPFe734Mmcco0rcBjbDZo8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pcvIWGPqItROtkxKfypT40hHjEUFnVL70ivGKYVyLtjAEM5mAIS6AEdXDhSFm3FL9BKUlG680wfGX6r9+MePdn+yz/TN+w6dSSZuaXTno/5w0mxfkdidHcOli0yuXwRi2YatS1qMSEX1Q8jBjrfOr+g/O/C1CSkrhf4b+hCeuwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ux9YVxDS; 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="ux9YVxDS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC232C072AA; Wed, 17 Apr 2024 10:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713349866; bh=ChAVZEOaxyPJsgz++ofsaPPFe734Mmcco0rcBjbDZo8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ux9YVxDSF6c963Uu6C9Mel/iZOVJEaeloTXpocx/gl7aTgNZ8riC274imS7StJMBM Die1WfS7auvoFOp/qgcgmJzAcFqmMCZBEhbg6fTe4PwZL68t28ec2ZooYXpef8c4rZ ELMi+UD6xNpXiJyn5RDvfZu8UHvn5f/ouwvVkcXE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26872: RDMA/srpt: Do not register event handler until srpt device is fully setup Date: Wed, 17 Apr 2024 12:28:47 +0200 Message-ID: <2024041738-CVE-2024-26872-2d38@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=2897; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ChAVZEOaxyPJsgz++ofsaPPFe734Mmcco0rcBjbDZo8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyS8L0BE8lV33xfpSydd2xQu0pu9+2fin7+nzjBC4vv Vj/vXFfO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibPsZFpw6qOl/VlOt0vn8 72fufC8L2e0MLRkWnPh9Nf+sfs6TAHNjF3vPTBPuT9suAQA= 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/srpt: Do not register event handler until srpt device is fully setup Upon rare occasions, KASAN reports a use-after-free Write in srpt_refresh_port(). This seems to be because an event handler is registered before the srpt device is fully setup and a race condition upon error may leave a partially setup event handler in place. Instead, only register the event handler after srpt device initialization is complete. The Linux kernel CVE team has assigned CVE-2024-26872 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 5.10.214 with commit bdd895e0190c Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 5.15.153 with commit 6413e78086ca Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 6.1.83 with commit e362d0072949 Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 6.6.23 with commit 85570b91e482 Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 6.7.11 with commit 7104a00fa37a Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 6.8.2 with commit ec77fa12da41 Issue introduced in 3.3 with commit a42d985bd5b2 and fixed in 6.9-rc1 with commit c21a8870c986 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-26872 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/srpt/ib_srpt.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/bdd895e0190c464f54f84579e7535d80276f0fc5 https://git.kernel.org/stable/c/6413e78086caf7bf15639923740da0d91fdfd090 https://git.kernel.org/stable/c/e362d007294955a4fb929e1c8978154a64efdcb6 https://git.kernel.org/stable/c/85570b91e4820a0db9d9432098778cafafa7d217 https://git.kernel.org/stable/c/7104a00fa37ae898a827381f1161fa3286c8b346 https://git.kernel.org/stable/c/ec77fa12da41260c6bf9e060b89234b980c5130f https://git.kernel.org/stable/c/c21a8870c98611e8f892511825c9607f1e2cd456