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 EAD6E51EE08 for ; Thu, 17 Sep 2026 16:31:25 +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=1789662687; cv=none; b=rUlU1aiSIWclmWP37b24P0Hc9VXbBm5mTV2wXYAFt62K05JYjmkBcECCgZzdC6nMTqjeu6Rlhd1Yqj1UWRcbLcHSS6yM/iKKRH11vzP4K3P0yy3AAZ4HH5eq1lDnZDWtShJt7UWrN8A5PC1myYPxy2ot8w5JKiRtLCoG6qpwFCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662687; c=relaxed/simple; bh=SJVRjvQEbAhRD9kPQCO9kHFUVCXAs3Ze0Oj4saqdT4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=clUJnr8VxevYPDZ9rAqLSwJ4vKlfiMfw+4Hh+eA8DrXf35+am3583KvSZwv7QHc2GSf8U9yZ+9GUQwqlFwL0cXoZsRc0nHotJuzw6dx5wAHXRuxg8TtrBOeRluMHlSZMq0dCUGThvneQIiWrliUy1zh9oua8hm/tp5Xmp64SyHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=c18IiRSO; 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="c18IiRSO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EDBD1F000FF; Thu, 17 Sep 2026 16:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662685; bh=vMUvIM2RpTUZVlGvkAI7/cmRuf1gjFC9qSv6SF3wZwY=; h=From:To:Cc:Subject:Date:Reply-To; b=c18IiRSOXeY05dcqVLYm5BQZ8ZAha7hPK9GOtA4/+sveNaupz/MTGh739i15w5Bxo Cc3hJ7Z4se0qYLvbg2AbzK5sCrY+7cJC6xoAdrE6T7+Otbs9tJIG43btVVNAV0W9Pt YykEs4CV1Lo9m3wPJ2Zo8DwwLGqL3wgxUvE0W55s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90435: RDMA/mlx5: Fix integer overflow of user QP buffer size Date: Thu, 17 Sep 2026 17:14:25 +0100 Message-ID: <2026091721-CVE-2026-90435-2f89@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=3757; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kxly2IbfcfwcM8PyZBKeZOWM+mMKk/23Qn4Xqh+6NQU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBDauZ70jwOXKMWe+0po+uYKvkws8GpYtUuDlUFj3w iiB8/X+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIQgLDfJ/0RM01GhNdQ09f /HA1IGnJ7TtXnBkWzC+b2Hdj4x7j+Pj1/7IaimNna1+wAwA= 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 integer overflow of user QP buffer size set_user_buf_size() computes the QP buffer size by left-shifting the user-supplied rq.wqe_cnt and rq.wqe_shift values as signed integers. A sufficiently large rq.wqe_cnt causes signed integer overflow, which is undefined behavior, and yields a small or negative buf_size, causing ib_umem_get() to map a buffer smaller than the hardware will actually write into. Replace the shifts and addition with check_shl_overflow() and check_add_overflow(), rejecting invalid user inputs. Moreover, guard the identical shift computing qp->sq.offset in _create_user_qp() before set_user_buf_size() is reached. The Linux kernel CVE team has assigned CVE-2026-90435 to this issue. Affected and fixed versions =========================== Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 5.10.270 with commit ccce6b7ef1d7efc59ccba3421e1339c6e63a3d20 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 5.15.221 with commit d99622e40aaa910ade681dfd4dc0fa240a011331 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.1.188 with commit c845e5e05140ea1bc64a5b1107942d93c876034d Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.6.157 with commit 42fb8aefffff5b458aaa66803364a16e0ea44129 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.12.110 with commit d7fa2ff72ad1861eac194a4e0075d504ba8c246e Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 6.18.52 with commit 5b6cfc6d7ff0959dd9766fdc24286a253b59ca77 Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 7.2.6 with commit f917707f0de0832b8ab582391b1f64e549995c6c Issue introduced in 3.11 with commit e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c and fixed in 7.3-rc1 with commit dec47e4b0fe34afdf38caa72b4408ba95502e5de 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-90435 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/ccce6b7ef1d7efc59ccba3421e1339c6e63a3d20 https://git.kernel.org/stable/c/d99622e40aaa910ade681dfd4dc0fa240a011331 https://git.kernel.org/stable/c/c845e5e05140ea1bc64a5b1107942d93c876034d https://git.kernel.org/stable/c/42fb8aefffff5b458aaa66803364a16e0ea44129 https://git.kernel.org/stable/c/d7fa2ff72ad1861eac194a4e0075d504ba8c246e https://git.kernel.org/stable/c/5b6cfc6d7ff0959dd9766fdc24286a253b59ca77 https://git.kernel.org/stable/c/f917707f0de0832b8ab582391b1f64e549995c6c https://git.kernel.org/stable/c/dec47e4b0fe34afdf38caa72b4408ba95502e5de