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 2CADE383304 for ; Sat, 15 Aug 2026 06:35:35 +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=1786775736; cv=none; b=c1RruynLDMlbJhF8U0cM2PX2dDHD9TWpcTXGi3Rq7WqysU6/DvqT/mnX/uRWS7vYNd7rEm31Wf2b0pNEycPaivxHYFyGoxC/m7DmXHiBesptq4NB7XS9jNSVRfwRh9skK2vBba0QzC3E/7O3dgfi50ghXbeyLhstiVWy3iToA/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775736; c=relaxed/simple; bh=AWOLfsHSMIX2vMpo833SG+jga2dxpH/1O8qYOnFxmRo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ml2QiQzfwU7Pv8VC/cuwCiZLhehvVo7ckNbktPeYeQpZCUcqiKrmrNkgACHPyGnrMdu7MZPR6z6tPO8whtHejM/EZ3rzypx+IUwrTwaoZ+ktdlY34LVqPbIQ/o0+SAOEBVTgDeqUuibLYWdfeF17t1NR7jAnNQHiC5IuhmZYKIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EzE53JWQ; 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="EzE53JWQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8464E1F000E9; Sat, 15 Aug 2026 06:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775735; bh=z6DLSF4jxTqEWs6kDxj2SQbMIL0x7rQuhQccLmRJkas=; h=From:To:Cc:Subject:Date:Reply-To; b=EzE53JWQCoV5QgyyxHXSwWbqIgCaMvP2w39he9xo1jQ5XbbPyU29hUX7Ai/DPeCke OWzGG5O+XYA9qbBaqYCR9yWNXCoPL15ti8jjZlKY1LvVn/GdDbfpdf5g9pVDmgXn7W QQ6K6LzbOBsCvwT6wVOcDqPFIf422gktsSQ6GwUw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74297: RDMA/mlx5: Fix undefined shift of user RQ WQE size Date: Sat, 15 Aug 2026 15:10:24 +0900 Message-ID: <2026081549-CVE-2026-74297-4454@gregkh> X-Mailer: git-send-email 2.55.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=3494; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GT2VFNJ757l4UIYPIxCLCIpBKZO0vjd1X4E0KFObrkY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjJz8knONLtg6C1yaIvf8Q9ylbX7M2zN1D7D1Cy0/F 5W8Qli/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyNZBhrpj+10tSu7n3iLZd E7gzoyBpqnnSPoZ5akVnfP7PO70x2CDTZtKW9sPit/9KAAA= 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/mlx5: Fix undefined shift of user RQ WQE size set_rq_size() computes the RQ WQE size as "1 << rq_wqe_shift" based on the user-provided rq_wqe_shift, which is only checked to be greater than 32, so shifts of 32 are still accepted. A shift of 31 also overflows a signed integer, leading to undefined behavior. Use check_shl_overflow() to compute the RQ WQE size and reject any invalid values. The Linux kernel CVE team has assigned CVE-2026-74297 to this issue. Affected and fixed versions =========================== Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 5.10.261 with commit 9fff54929cc00849d738faa99f06c32399aeb026 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 5.15.212 with commit b746f949c2ac2b041102836095d6d4a2ef21fa75 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.1.178 with commit c1dbf52d24a8cb1aa56780ba51b72e7d495f258c Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.6.145 with commit 6fc874fdfb366bfb11c62e6af9a831c8be59ddda Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.12.97 with commit 42f3d2c8c18b92ea33e506a38b64f1a8986c2823 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.18.40 with commit 4b87a2497276a72fd63028e7419abf0fb7ed837b Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 7.1.5 with commit b732db02a2b04cde393638df19de6251ce62a74e Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 7.2-rc1 with commit d881d60223aac8fdc12b227d89c76e131e92a9cd 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-74297 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/mlx5/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/9fff54929cc00849d738faa99f06c32399aeb026 https://git.kernel.org/stable/c/b746f949c2ac2b041102836095d6d4a2ef21fa75 https://git.kernel.org/stable/c/c1dbf52d24a8cb1aa56780ba51b72e7d495f258c https://git.kernel.org/stable/c/6fc874fdfb366bfb11c62e6af9a831c8be59ddda https://git.kernel.org/stable/c/42f3d2c8c18b92ea33e506a38b64f1a8986c2823 https://git.kernel.org/stable/c/4b87a2497276a72fd63028e7419abf0fb7ed837b https://git.kernel.org/stable/c/b732db02a2b04cde393638df19de6251ce62a74e https://git.kernel.org/stable/c/d881d60223aac8fdc12b227d89c76e131e92a9cd