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 BC233334695 for ; Wed, 24 Dec 2025 12:27:34 +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=1766579254; cv=none; b=Xd+DCHWIVoeNySAbMm3X/X5T70spUyM+NhwuyBHbrKlhUuvZC5BzlkzaqAuDOB/Kx5eYHEGORISNZtkVRt3pS1sJefHhZijn5uf3a0KHClx4bIcV63f8EfSkrJMtTwWQOdhvf0FO58Wjcot0VeNut25nE0APGyu8HU+eZ4acxt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579254; c=relaxed/simple; bh=W+vN/fi47DH6WxNG2OwMLNk3n5lueTrzgDQJxk4O9Eo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Lgg0+K0YfrzOhLIMEy3CBel6FRAt75JbnpbFZaMedC1eFW//U1wuUEuCD37SiNcNbYe8IDBWSKvQpMgHPF0Gvwh/x27x78Ld2MpiiTjKQ6mnic6uanZbnPP1xUlpw7hNE5OPppaO5nUQPw7SoCGGWSPQV/OVxDSMepX2MhQX1LA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aIOXkd1j; 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="aIOXkd1j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0290BC4CEFB; Wed, 24 Dec 2025 12:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579254; bh=W+vN/fi47DH6WxNG2OwMLNk3n5lueTrzgDQJxk4O9Eo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=aIOXkd1jkqHhCPqHVXLbE1Gsx5MY6oZYLesTkwomHGCB+9Nqolc4YwVyCfRjA1dxM UTQLfV9tOfNt+WbZtv0235sLsTJo/YX12IguDSuNZpD1lMHROEJd8i1/co8a+V+msA U4B8uk1XnPB3hOydfJ4V14uQprODfMT7zI5gLkwU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50736: RDMA/siw: Fix immediate work request flush to completion queue Date: Wed, 24 Dec 2025 13:26:35 +0100 Message-ID: <2025122422-CVE-2022-50736-1cb3@gregkh> X-Mailer: git-send-email 2.52.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=3422; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BbZei0c1zc3lQXpL3aXBuozo9h9G1X1NMeobAoheES4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet995bFj85En47kB5nSs7OiL8vnccsXF8lnGO40e48 oU4L5GujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIgjKGBZu38S9piI+ZqNnz eC/3rIb3e0Ur1jMsmHstKFztcPhuB7cQw4d8mxfVzjLVBAA= 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/siw: Fix immediate work request flush to completion queue Correctly set send queue element opcode during immediate work request flushing in post sendqueue operation, if the QP is in ERROR state. An undefined ocode value results in out-of-bounds access to an array for mapping the opcode between siw internal and RDMA core representation in work completion generation. It resulted in a KASAN BUG report of type 'global-out-of-bounds' during NFSoRDMA testing. This patch further fixes a potential case of a malicious user which may write undefined values for completion queue elements status or opcode, if the CQ is memory mapped to user land. It avoids the same out-of-bounds access to arrays for status and opcode mapping as described above. The Linux kernel CVE team has assigned CVE-2022-50736 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b and fixed in 5.4.229 with commit 6af043089d3f1210776d19b6fdabea610d4c7699 Issue introduced in 5.3 with commit 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b and fixed in 5.10.163 with commit 75af03fdf35acf15a3977f7115f6b8d10dff4bc7 Issue introduced in 5.3 with commit 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b and fixed in 5.15.86 with commit f8d8fbd3b6d6cc3f25790cca5cffe8ded512fef6 Issue introduced in 5.3 with commit 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b and fixed in 6.0.16 with commit 355d2eca68c10d713a42f68e62044b3d1c300471 Issue introduced in 5.3 with commit 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b and fixed in 6.1.2 with commit f3d26a8589dfdeff328779b511f71fb90b10005e Issue introduced in 5.3 with commit 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b and fixed in 6.2 with commit bdf1da5df9da680589a7f74448dd0a94dd3e1446 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-50736 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/sw/siw/siw_cq.c drivers/infiniband/sw/siw/siw_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/6af043089d3f1210776d19b6fdabea610d4c7699 https://git.kernel.org/stable/c/75af03fdf35acf15a3977f7115f6b8d10dff4bc7 https://git.kernel.org/stable/c/f8d8fbd3b6d6cc3f25790cca5cffe8ded512fef6 https://git.kernel.org/stable/c/355d2eca68c10d713a42f68e62044b3d1c300471 https://git.kernel.org/stable/c/f3d26a8589dfdeff328779b511f71fb90b10005e https://git.kernel.org/stable/c/bdf1da5df9da680589a7f74448dd0a94dd3e1446