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 79067BA3D for ; Tue, 9 Dec 2025 00:04:36 +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=1765238676; cv=none; b=Av0taXdtNveGJJsNIeV/psnPDqA78m5k0QZ0m5CHbVA87bC1wAtsug0nU6KG836w3KPUrSOsw731i6pD7SkU2BJFiSYfSQkie+kZ7D2wRsqWFmeC2sfdHDNEnjwa79GXwHYTgCputjUexQMwRjLpaLuUWb7kfomPe6b5joID5jg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765238676; c=relaxed/simple; bh=V4Tll9a46uAhK/Th3C43cMD7V3VcecEKmwGNKA/Eslg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Baljl/3eCta7iVo7rTERlwpzUIqseIgDfxZSz5kg+YSwxJPl1JIMX96VfDm5FLl2cAxzPUiV9ji9Q3MKNHXZ5yQQg4ujxMm/ym796dgNA8mPQRlexelTbDZRkhbOuLeN8MKdwfW14lrSXASvayPAJgA7qhLjlEuf3Bf54x/knHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XRYdRuvL; 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="XRYdRuvL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EF39C4CEF1; Tue, 9 Dec 2025 00:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765238676; bh=V4Tll9a46uAhK/Th3C43cMD7V3VcecEKmwGNKA/Eslg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=XRYdRuvLT9T0Imc34ZM7HKubElPXhvfYk21L5K5TmFRYL8QfY33VuVuIsRCen1e9i JAWw5d5XrswDrpPreIfRVRpMt2nWxgpotmEhNmmHU3fY7a6sgNWX4RQfeD2F1BwJSO GgFPherlbvxxEEYaMr+/ZUFHKf0sSkWmfO8xvDC0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53811: RDMA/irdma: Cap MSIX used to online CPUs + 1 Date: Tue, 9 Dec 2025 09:02:32 +0900 Message-ID: <2025120944-CVE-2023-53811-dc26@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=4439; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n1BWvlG6ohpYq1X4bbbalrty/JhbEAUijVLItR286Qk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnmaS/SHG2V7zLcMM4WZD/qNF9WqeBZp8uhKc9yVtRXT mItkObuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm0RDLMU2FQW+6gPC33Urtu aeMpYa3c1iOcDAt6PD4nL0l8zzo3mzPP4QAbX/Py9b4A 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: Cap MSIX used to online CPUs + 1 The irdma driver can use a maximum number of msix vectors equal to num_online_cpus() + 1 and the kernel warning stack below is shown if that number is exceeded. The kernel throws a warning as the driver tries to update the affinity hint with a CPU mask greater than the max CPU IDs. Fix this by capping the MSIX vectors to num_online_cpus() + 1. WARNING: CPU: 7 PID: 23655 at include/linux/cpumask.h:106 irdma_cfg_ceq_vector+0x34c/0x3f0 [irdma] RIP: 0010:irdma_cfg_ceq_vector+0x34c/0x3f0 [irdma] Call Trace: irdma_rt_init_hw+0xa62/0x1290 [irdma] ? irdma_alloc_local_mac_entry+0x1a0/0x1a0 [irdma] ? __is_kernel_percpu_address+0x63/0x310 ? rcu_read_lock_held_common+0xe/0xb0 ? irdma_lan_unregister_qset+0x280/0x280 [irdma] ? irdma_request_reset+0x80/0x80 [irdma] ? ice_get_qos_params+0x84/0x390 [ice] irdma_probe+0xa40/0xfc0 [irdma] ? rcu_read_lock_bh_held+0xd0/0xd0 ? irdma_remove+0x140/0x140 [irdma] ? rcu_read_lock_sched_held+0x62/0xe0 ? down_write+0x187/0x3d0 ? auxiliary_match_id+0xf0/0x1a0 ? irdma_remove+0x140/0x140 [irdma] auxiliary_bus_probe+0xa6/0x100 __driver_probe_device+0x4a4/0xd50 ? __device_attach_driver+0x2c0/0x2c0 driver_probe_device+0x4a/0x110 __driver_attach+0x1aa/0x350 bus_for_each_dev+0x11d/0x1b0 ? subsys_dev_iter_init+0xe0/0xe0 bus_add_driver+0x3b1/0x610 driver_register+0x18e/0x410 ? 0xffffffffc0b88000 irdma_init_module+0x50/0xaa [irdma] do_one_initcall+0x103/0x5f0 ? perf_trace_initcall_level+0x420/0x420 ? do_init_module+0x4e/0x700 ? __kasan_kmalloc+0x7d/0xa0 ? kmem_cache_alloc_trace+0x188/0x2b0 ? kasan_unpoison+0x21/0x50 do_init_module+0x1d1/0x700 load_module+0x3867/0x5260 ? layout_and_allocate+0x3990/0x3990 ? rcu_read_lock_held_common+0xe/0xb0 ? rcu_read_lock_sched_held+0x62/0xe0 ? rcu_read_lock_bh_held+0xd0/0xd0 ? __vmalloc_node_range+0x46b/0x890 ? lock_release+0x5c8/0xba0 ? alloc_vm_area+0x120/0x120 ? selinux_kernel_module_from_file+0x2a5/0x300 ? __inode_security_revalidate+0xf0/0xf0 ? __do_sys_init_module+0x1db/0x260 __do_sys_init_module+0x1db/0x260 ? load_module+0x5260/0x5260 ? do_syscall_64+0x22/0x450 do_syscall_64+0xa5/0x450 entry_SYSCALL_64_after_hwframe+0x66/0xdb The Linux kernel CVE team has assigned CVE-2023-53811 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 44d9e52977a1b90b0db1c7f8b197c218e9226520 and fixed in 5.15.99 with commit 87674a359ad173a3b8cd484e92e4f1901666da4c Issue introduced in 5.14 with commit 44d9e52977a1b90b0db1c7f8b197c218e9226520 and fixed in 6.1.16 with commit b3bd44bf20cb3a6a47aa4373e1817147efb4be04 Issue introduced in 5.14 with commit 44d9e52977a1b90b0db1c7f8b197c218e9226520 and fixed in 6.2.3 with commit 209e4aa9a7b636d8aaa1297e1d089ee2ed91d73f Issue introduced in 5.14 with commit 44d9e52977a1b90b0db1c7f8b197c218e9226520 and fixed in 6.3 with commit 9cd9842c46996ef62173c36619c746f57416bcb0 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-53811 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/hw.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/87674a359ad173a3b8cd484e92e4f1901666da4c https://git.kernel.org/stable/c/b3bd44bf20cb3a6a47aa4373e1817147efb4be04 https://git.kernel.org/stable/c/209e4aa9a7b636d8aaa1297e1d089ee2ed91d73f https://git.kernel.org/stable/c/9cd9842c46996ef62173c36619c746f57416bcb0