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 A407C28C2BF for ; Tue, 30 Dec 2025 12:10:23 +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=1767096623; cv=none; b=DKAEw6kRelDRKu/WKdgfxmTagCmTFi5D3XHYG5hGaC5PwEzEC6QP/zssOFd+OKkLyoOYNTvfcNwfVDsRllbadYq6JsxPEeJFl8IaACL3j/Zjog0erKQmut0BTP6UJaMsJXyMBsIbXkTZsKIKY9sphCLeWO9r/SAGXtzvwfUr/m8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096623; c=relaxed/simple; bh=H165vTkB8gCm2bKV/tE1sJEaTpceaaGDDtXc3ElyAhA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fNZ5zuzC2mf2kr4oiMtLGJheGw8UqByyDN1n30GUl+NHGHyLfL6jgTLCp5F0ilgPmtEv+EbiXwi+Ov5SC+vT2PC5A6Kv/phR2MUvyd3FrCbKJDv6cG9GnW7pUwOwKPVaw6VohTyyg74QYUwSG72AYEen+5Y4mkwT77Q4zJRfQdU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rMYhkqRJ; 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="rMYhkqRJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 349B8C4CEFB; Tue, 30 Dec 2025 12:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096623; bh=H165vTkB8gCm2bKV/tE1sJEaTpceaaGDDtXc3ElyAhA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rMYhkqRJSBng3ws3ySNw9rYf2wfzbKiNXncm2/uY1YLcQsEKlDGOtjaUBTpOGNmcX mtr0N9qFjVFbiTUtWla4MGNcN9QAsQjXfITb4TEYe+t7vvvQpx3DfdizicMZ+LOjDu iClbPYk2o4jvP5uRyyszzMYdmezC7pUnPh0Kmvz8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54168: RDMA/mlx4: Prevent shift wrapping in set_user_sq_size() Date: Tue, 30 Dec 2025 13:09:36 +0100 Message-ID: <2025123020-CVE-2023-54168-eba2@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=3413; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UwxC6hqCklR3b7JGZzaT3McZgHvnb3snPYG+kpSyqiY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBz50KvnOsPDZeCj7pW5LYXb+F4aI5gCt+q/1LXrcx +9urj3cEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP538IwPyLTOl39dFrxqqw1 6i++XgsLuhfXybDgZkLtljD3gjBmxhQtsb9fOPfMTI8CAA== 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/mlx4: Prevent shift wrapping in set_user_sq_size() The ucmd->log_sq_bb_count variable is controlled by the user so this shift can wrap. Fix it by using check_shl_overflow() in the same way that it was done in commit 515f60004ed9 ("RDMA/hns: Prevent undefined behavior in hns_roce_set_user_sq_size()"). The Linux kernel CVE team has assigned CVE-2023-54168 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 4.19.283 with commit 3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 5.4.243 with commit 8feca625900777e02a449e53fe4121339934c38a Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 5.10.180 with commit 9ad3221c86cc9c6305594b742d4a72dfbd4ea579 Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 5.15.111 with commit 9911be2155720221a4f1f722b22bd0e2388d8bcf Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 6.1.28 with commit 3ce0df3493277b9df275cb8455d9c677ae701230 Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 6.2.15 with commit 196a6df08b08699ace4ce70e1efcdd9081b6565f Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 6.3.2 with commit a183905869e692b6b7805b7472235585eff8e429 Issue introduced in 2.6.24 with commit 839041329fd3410e07d614f81e75bb43367d8f89 and fixed in 6.4 with commit d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb 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-2023-54168 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/mlx4/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/3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff https://git.kernel.org/stable/c/8feca625900777e02a449e53fe4121339934c38a https://git.kernel.org/stable/c/9ad3221c86cc9c6305594b742d4a72dfbd4ea579 https://git.kernel.org/stable/c/9911be2155720221a4f1f722b22bd0e2388d8bcf https://git.kernel.org/stable/c/3ce0df3493277b9df275cb8455d9c677ae701230 https://git.kernel.org/stable/c/196a6df08b08699ace4ce70e1efcdd9081b6565f https://git.kernel.org/stable/c/a183905869e692b6b7805b7472235585eff8e429 https://git.kernel.org/stable/c/d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb