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 3F1EE285C9C for ; Wed, 18 Jun 2025 11:13:39 +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=1750245219; cv=none; b=iv2uFHmNNz6BzfTftpxGei3EyS0DJh/qoXaDU4xmux2MLuyer2oTAxoxkmfhiMo5oB4HRjbkMvs4Dg7XvcxW4O/h7jOrGDBPdlhx/TzfZU8ZdoFfJB8/ydmoXo6EKJn1drQmv51JBF+Hh+6DOua7hqwdTKnwvZ/adIHVNVIQhII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245219; c=relaxed/simple; bh=wdJiNdVcbtHBQ4vcu5h4nl1tEXfyuSGItHrZxhANsII=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SZGbGWNYzP6QZRJwJMi1nCbXQZ8P0zi+eH/G3UDnf6Jd/Bts3e+nNJRlRoVS65sHyylCPtzjTlxYjP+ndiw/TNXt2a3MPgX79l2vBOXRd2+XqZwoIoM3gYNMiPizIQj954lN40JWqNEVDl3EUhFbQFB4VnU/PTrdsRlSz++0Tc0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dwqi+BPS; 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="dwqi+BPS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99673C4CEE7; Wed, 18 Jun 2025 11:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245219; bh=wdJiNdVcbtHBQ4vcu5h4nl1tEXfyuSGItHrZxhANsII=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dwqi+BPStmMHCYIXjg8kw4iP/e1z2y7TkVcVxuQkTzTr/YdGVQMUGiYd4zk2QU0Xf Qkqsa/oebxd3e0MFDWtl4YpyxwSfRvnfpQDQM56wgu3iNaMkd23o17yuoFWtco6aBL M5OFaMI+SKkw6cW4LfarHyyxmwh3gENqFLaiGTNc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50137: RDMA/irdma: Fix a window for use-after-free Date: Wed, 18 Jun 2025 13:03:22 +0200 Message-ID: <2025061817-CVE-2022-50137-c539@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=2461; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ruquThebkUCTNWc5UZwtrgWI9NcDW5R04nEO71wjE9Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc2qlb3ieDHk2W1giO0it43Vn8Xnmq8nbDyd5nvqs3 ORqUPenI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay4g/DPG2p13z5h2Ovujw7 Mp9tUedB16QlUxgW7Fr6/3bLqt0/1ilcSfmoGX/E28p0IQA= 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/irdma: Fix a window for use-after-free During a destroy CQ an interrupt may cause processing of a CQE after CQ resources are freed by irdma_cq_free_rsrc(). Fix this by moving the call to irdma_cq_free_rsrc() after the irdma_sc_cleanup_ceqes(), which is called under the cq_lock. The Linux kernel CVE team has assigned CVE-2022-50137 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 5.15.61 with commit 92520864ef9f912f38b403d172a0ded020683d55 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 5.18.18 with commit 0abf2eef80295923b819ce89ff9edc1fe61be17c Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 5.19.2 with commit 350ac793a03c8a30a3f2b27fc282cd1c67070763 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.0 with commit 8ecef7890b3aea78c8bbb501a4b5b8134367b821 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-50137 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/verbs.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/92520864ef9f912f38b403d172a0ded020683d55 https://git.kernel.org/stable/c/0abf2eef80295923b819ce89ff9edc1fe61be17c https://git.kernel.org/stable/c/350ac793a03c8a30a3f2b27fc282cd1c67070763 https://git.kernel.org/stable/c/8ecef7890b3aea78c8bbb501a4b5b8134367b821