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 3C32E481D1 for ; Fri, 3 May 2024 17:46:31 +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=1714758391; cv=none; b=ITvHfT3JuMPrUlcfYeDjyIl9Hccjn99Y3OC3xLacxz14wU0GuuAni53CpsctLLuWdF/1hMpSGfSm9s28GcO8d9ka4gAE/LMpb5d8W3gI40WMc2Gvsa1DpNtqkSnzdNzjJvI+XakwUoH3h8afZO5+UzKv9OPMbO2/hSrl3zEZXzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758391; c=relaxed/simple; bh=sFdTe+y3HfUMU7m+IVyB/JpBsPphr0H5zWTU2a0i304=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uHBSSWvyHgKVRB/0X/M+uuDQ9tIgHSD+qHG6Vd2FPKvVPOhMS0YK3lpbIRdQyhSWTJhlUFisAMkkuHuKbPCZRJ2MO4k3TlCGgGBI2fR9V8H9DGl6T6MTeIKxYZj9hHTe92LdEFKS1aBprmmOFLYITf1dAM8JhDKqmwPldk7Z/Tk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GDBY9fnS; 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="GDBY9fnS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE510C116B1; Fri, 3 May 2024 17:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714758391; bh=sFdTe+y3HfUMU7m+IVyB/JpBsPphr0H5zWTU2a0i304=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GDBY9fnSBG5biEZufKnF0krIZ0CBGl1TsGCkAM93u/ShSuXlSxtImp6TrusHC9z4x WBsU3QiAGRgn7vsMtwAW9XYe2bnFJvMFYXeusj38YOAeAckyXAMAKvx6GDrEl7cRBh r45NO7JVVlWhVODUjHRzbjYIXN2WR9x85NcDnjzI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48694: RDMA/irdma: Fix drain SQ hang with no completion Date: Fri, 3 May 2024 19:45:50 +0200 Message-ID: <2024050347-CVE-2022-48694-f0e8@gregkh> X-Mailer: git-send-email 2.45.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=3218; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sFdTe+y3HfUMU7m+IVyB/JpBsPphr0H5zWTU2a0i304=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmmSqcVTCzPhMh+iretXnz5yNy9q2YIdiR9axVcaHp7K qt25hPpjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI0kuGBfP6Pv5sPzjB7OpS 97/Z5g46fv/6/zIsmO56VqN/Zmh17oMzgYtFJRIV1yw6CQA= 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/irdma: Fix drain SQ hang with no completion SW generated completions for outstanding WRs posted on SQ after QP is in error target the wrong CQ. This causes the ib_drain_sq to hang with no completion. Fix this to generate completions on the right CQ. [ 863.969340] INFO: task kworker/u52:2:671 blocked for more than 122 seconds. [ 863.979224] Not tainted 5.14.0-130.el9.x86_64 #1 [ 863.986588] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 863.996997] task:kworker/u52:2 state:D stack: 0 pid: 671 ppid: 2 flags:0x00004000 [ 864.007272] Workqueue: xprtiod xprt_autoclose [sunrpc] [ 864.014056] Call Trace: [ 864.017575] __schedule+0x206/0x580 [ 864.022296] schedule+0x43/0xa0 [ 864.026736] schedule_timeout+0x115/0x150 [ 864.032185] __wait_for_common+0x93/0x1d0 [ 864.037717] ? usleep_range_state+0x90/0x90 [ 864.043368] __ib_drain_sq+0xf6/0x170 [ib_core] [ 864.049371] ? __rdma_block_iter_next+0x80/0x80 [ib_core] [ 864.056240] ib_drain_sq+0x66/0x70 [ib_core] [ 864.062003] rpcrdma_xprt_disconnect+0x82/0x3b0 [rpcrdma] [ 864.069365] ? xprt_prepare_transmit+0x5d/0xc0 [sunrpc] [ 864.076386] xprt_rdma_close+0xe/0x30 [rpcrdma] [ 864.082593] xprt_autoclose+0x52/0x100 [sunrpc] [ 864.088718] process_one_work+0x1e8/0x3c0 [ 864.094170] worker_thread+0x50/0x3b0 [ 864.099109] ? rescuer_thread+0x370/0x370 [ 864.104473] kthread+0x149/0x170 [ 864.109022] ? set_kthread_struct+0x40/0x40 [ 864.114713] ret_from_fork+0x22/0x30 The Linux kernel CVE team has assigned CVE-2022-48694 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 81091d7696ae and fixed in 5.19.9 with commit 5becc531a3fa Issue introduced in 5.19 with commit 81091d7696ae and fixed in 6.0 with commit ead54ced6321 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-2022-48694 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/irdma/utils.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/14d148401c5202fec3a071e24785481d540b22c3 https://git.kernel.org/stable/c/5becc531a3fa8da75158a8993f56cc3e0717716e https://git.kernel.org/stable/c/ead54ced6321099978d30d62dc49c282a6e70574