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 387293AF674 for ; Thu, 28 May 2026 09:39:25 +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=1779961167; cv=none; b=pKGxctIr7RFAyQ9/nkqZCEqLS3+CrkpOiUgx8GEuZkNoYjtWIl7WOxKMrorsu1GuCVXfME4xzULgclpbyeUS0QOsFFwpGogiF4+gaNq5yYjL1lCrNxORY9S1C5kCnQi4WFAENUMmVb5QFfXGxLjBMjJueaN07PNKPXxuqXIDsro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961167; c=relaxed/simple; bh=VYQMHX+W0ElIq/sQ5slRebaC/7pPQtXfmT/m9KNg0Ks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GeElWL8qaWoSwx2d82g8SMfnm0yqvg6OdY3NeuknDkxDeHzaTW3X+aHJ2HvlqI7vAycYIQAVelHFvejsmC9eshu3SobQn8ECWvNv2LbbiSCCa0JoaMsuELkfhI1FcBuYtDZv+3ffxHiTwJpuuoOuHKXQvX4Nad5C4u8kL0zdLSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K/3Ta3CC; 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="K/3Ta3CC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D94D71F00A3A; Thu, 28 May 2026 09:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961164; bh=mhtJv0EFuoz41u2OUOZtXOY5SkqDO45W+hlK4Btfi34=; h=From:To:Cc:Subject:Date:Reply-To; b=K/3Ta3CC8pdHyF+ID/uVkov6VDfElhHwc8a7PJ9zizFPdENm+/6a8xvf2Of3SVtXi 2YzCdPJK3HNpyeTT0diR0gOgnbDvGu3dPMqpgZWV/WdwOa2/6t6TvXssfrs9k3YjEV 4P7QsoztX1Us3JQjhgM16+jpRvq3mY/UjOV+m/vQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46112: RDMA/hns: Fix unlocked call to hns_roce_qp_remove() Date: Thu, 28 May 2026 11:36:17 +0200 Message-ID: <2026052813-CVE-2026-46112-3dff@gregkh> X-Mailer: git-send-email 2.54.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=2718; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zD5NyxqZF7Y/9wGZ8teGvZ5gduPY8lVEqMrUFL8Llmk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPL2ZrobFYQ9m1sWs9WMI2ilewLMm48cETd8DsRrvm ZeJ1TZ2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESORjHML6l5VRJ3bq75F+2J Gl6Fwl4vTKu4GRZM6d327lmB+zlfB8OVnx7FZG8zVnwDAA== 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: RDMA/hns: Fix unlocked call to hns_roce_qp_remove() Sashiko points out that hns_roce_qp_remove() requires the caller to hold locks. The error flow in hns_roce_create_qp_common() doesn't hold those locks for the error unwind so it risks corrupting memory. Grab the same locks the other two callers use. The Linux kernel CVE team has assigned CVE-2026-46112 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit e088a685eae94a0607b8f7b99949a0e14d748813 and fixed in 6.6.140 with commit fb4ae739811d467409bd07d0e36cfd4140f3d26a Issue introduced in 4.17 with commit e088a685eae94a0607b8f7b99949a0e14d748813 and fixed in 6.12.88 with commit fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb Issue introduced in 4.17 with commit e088a685eae94a0607b8f7b99949a0e14d748813 and fixed in 6.18.30 with commit 1912f78798505dc9c637081bbddfbf1c22494c49 Issue introduced in 4.17 with commit e088a685eae94a0607b8f7b99949a0e14d748813 and fixed in 7.0.7 with commit 615d9d260c32bb678504ca96f29ae46f9d745155 Issue introduced in 4.17 with commit e088a685eae94a0607b8f7b99949a0e14d748813 and fixed in 7.1-rc3 with commit 0c99acbc8b6c6dd526ae475a48ee1897b61072fb 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-46112 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/hns/hns_roce_qp.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/fb4ae739811d467409bd07d0e36cfd4140f3d26a https://git.kernel.org/stable/c/fcf6a832c0d5b2bc5398d6996c5570d3ee7993fb https://git.kernel.org/stable/c/1912f78798505dc9c637081bbddfbf1c22494c49 https://git.kernel.org/stable/c/615d9d260c32bb678504ca96f29ae46f9d745155 https://git.kernel.org/stable/c/0c99acbc8b6c6dd526ae475a48ee1897b61072fb