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 7E8DD3E95BF for ; Wed, 22 Apr 2026 13:58:26 +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=1776866306; cv=none; b=DVPxHZ/wxQskv92Q4VbHk/DdNC2CV5XB6xQpLxn+ZG+mYiJ4hdRMjfK0vR8hK3gwitv10L7pbT30t6eY1CbHQRScYX2VYGvUQe3mYnH3bI5Hq3VMx6VenjRgzSkGLs3tETlT4F3/xrc1FCGar+kfWwPl3J+qKSbuEJkwsr7v3jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866306; c=relaxed/simple; bh=bG7imRZCJ73EUw9geCTCGg82YXz568ryz+RHk3Ink2Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tLowPO4yw3gNec4+08UtJMOz9nW37phAb3xkb2EPuc60OqWepXbrJSH4ba3gh8fj1SzjaIyhWJMny3UPJTaP64ohzfhK2zlJ9OyKzY34UI7Z7cZT9WxxbMB5NMTjbSrDs59cpyOm+kCmQM275Ms9I6bkCpmhI12uhnExPxDmDJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1r2CE8CR; 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="1r2CE8CR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1478EC19425; Wed, 22 Apr 2026 13:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866306; bh=bG7imRZCJ73EUw9geCTCGg82YXz568ryz+RHk3Ink2Y=; h=From:To:Cc:Subject:Date:Reply-To:From; b=1r2CE8CRypL4dHIRbGbu+2clB1K+vF1G/zHAqm6luJnH1cuV99QxHcrVSE9hb0N5E qLzTUNd+78+p73y3E+t0UoLH1BYmxFkLHv/Z4on21g7eBQnYi/HQ9nUTwwrfJIXfbp MggGjNFYWJYXfpr0oga1EgVZmntuvZyQCNGS4N2U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31491: RDMA/irdma: Harden depth calculation functions Date: Wed, 22 Apr 2026 15:54:37 +0200 Message-ID: <2026042201-CVE-2026-31491-e599@gregkh> X-Mailer: git-send-email 2.54.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=2266; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WwsjPWzCDV6HGWcRv6gR5tFio41EWQLNT1FYNimZo9Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv28+0521grTPbruCz1KUw6LxG03/fzkz4UZgTKx/ 6K4jHjudMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE+vgY5mkxFMrsvGRoceil 8RrzVCHmP0+CZzAs2GF2ePUsMdlTpqpM/cJ2Fx4E5dj/BQA= 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: Harden depth calculation functions An issue was exposed where OS can pass in U32_MAX for SQ/RQ/SRQ size. This can cause integer overflow and truncation of SQ/RQ/SRQ depth returning a success when it should have failed. Harden the functions to do all depth calculations and boundary checking in u64 sizes. The Linux kernel CVE team has assigned CVE-2026-31491 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 563e1feb5f6ed579acb55850f1bbb831aecf645a and fixed in 6.18.21 with commit 3f08351de5ca4f2f724b86ad252fbc21289467e1 Issue introduced in 6.18 with commit 563e1feb5f6ed579acb55850f1bbb831aecf645a and fixed in 6.19.11 with commit cbd852f5700eb3f64392452faf693ac45cae8281 Issue introduced in 6.18 with commit 563e1feb5f6ed579acb55850f1bbb831aecf645a and fixed in 7.0 with commit e37afcb56ae070477741fe2d6e61fc0c542cce2d 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-31491 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/uk.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/3f08351de5ca4f2f724b86ad252fbc21289467e1 https://git.kernel.org/stable/c/cbd852f5700eb3f64392452faf693ac45cae8281 https://git.kernel.org/stable/c/e37afcb56ae070477741fe2d6e61fc0c542cce2d