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 B548D1DED57 for ; Wed, 16 Apr 2025 14:16:49 +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=1744813009; cv=none; b=plYYVjppP2kaudumEszuM+e63LAGVLS1tlKZNYXPWdP+kL2Snj2aqcY65URWoJJt3LAFjm+crHx2pMOhIVIRCZwO9X/GxHkr1qsUODN0hfl6bXGBDDfjUNQHWy0Z02am2QRE4PKv+K8GYhGDjHwlXGvUNrCbIlxyREL2p5ZPmrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813009; c=relaxed/simple; bh=2WRO1Uc6tTJwc7w22trfo4LEGraXroufUU8rT57pvwU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BQyJx/pKuUVRNSXUGRlV3f8O64E0NyFPaAUtm8OyqvZjxEQxkY8eXYDPKFc2Fq7JwSvu0J2+SiL/vje4ufsXV/F/zxm0a+0//j/w22meiILUeLR5UzGZjnzXHeX8ynHXwHC9RKiAxRPS2lJw23KLNyqToekwDldkgkCsHf/Klho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a2ibvWF5; 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="a2ibvWF5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44E36C4CEE2; Wed, 16 Apr 2025 14:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813009; bh=2WRO1Uc6tTJwc7w22trfo4LEGraXroufUU8rT57pvwU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a2ibvWF5OtzN7P/ahrnWpeBqL0Gs+Z9M8h5spqw7QIkRNDjN2cAxss6d1wvjr+FOt xPVUyd7c9A8tAaiIVujMVT1FvN4N5ka6hne9Ni92Ar7oL3M4MTU3PjbtikzaZ3EYKx DchIRqUdWYupoYoOccg1dHtGy2iTqbtZYI0W4UQI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22088: RDMA/erdma: Prevent use-after-free in erdma_accept_newconn() Date: Wed, 16 Apr 2025 16:12:59 +0200 Message-ID: <2025041616-CVE-2025-22088-ae2e@gregkh> X-Mailer: git-send-email 2.49.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=2837; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2WRO1Uc6tTJwc7w22trfo4LEGraXroufUU8rT57pvwU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/dx1gPrCCw+r5PiutAwxhT76+uWvqm/rS1FOnUUHty kJvlym1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARk2UMc4WYFDbc1PVcNHHd s4cCrzxN7x7b38SwYEu0S6h4yy4na6X1aQdV74vUuc06DgA= 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/erdma: Prevent use-after-free in erdma_accept_newconn() After the erdma_cep_put(new_cep) being called, new_cep will be freed, and the following dereference will cause a UAF problem. Fix this issue. The Linux kernel CVE team has assigned CVE-2025-22088 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 920d93eac8b97778fef48f34f10e58ddf870fc2a and fixed in 6.1.134 with commit bc1db4d8f1b0dc480d7d745a60a8cc94ce2badd4 Issue introduced in 6.0 with commit 920d93eac8b97778fef48f34f10e58ddf870fc2a and fixed in 6.6.87 with commit 667a628ab67d359166799fad89b3c6909599558a Issue introduced in 6.0 with commit 920d93eac8b97778fef48f34f10e58ddf870fc2a and fixed in 6.12.23 with commit a114d25d584c14019d31dbf2163780c47415a187 Issue introduced in 6.0 with commit 920d93eac8b97778fef48f34f10e58ddf870fc2a and fixed in 6.13.11 with commit 78411a133312ce7d8a3239c76a8fd85bca1cc10f Issue introduced in 6.0 with commit 920d93eac8b97778fef48f34f10e58ddf870fc2a and fixed in 6.14.2 with commit 7aa6bb5276d9fec98deb05615a086eeb893854ad Issue introduced in 6.0 with commit 920d93eac8b97778fef48f34f10e58ddf870fc2a and fixed in 6.15-rc1 with commit 83437689249e6a17b25e27712fbee292e42e7855 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-2025-22088 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/hw/erdma/erdma_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/bc1db4d8f1b0dc480d7d745a60a8cc94ce2badd4 https://git.kernel.org/stable/c/667a628ab67d359166799fad89b3c6909599558a https://git.kernel.org/stable/c/a114d25d584c14019d31dbf2163780c47415a187 https://git.kernel.org/stable/c/78411a133312ce7d8a3239c76a8fd85bca1cc10f https://git.kernel.org/stable/c/7aa6bb5276d9fec98deb05615a086eeb893854ad https://git.kernel.org/stable/c/83437689249e6a17b25e27712fbee292e42e7855