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 1BC753E4C99 for ; Wed, 27 May 2026 12:22:34 +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=1779884555; cv=none; b=rfrZTHyj16rPeFZPPe0+X3QoYzzzVIxzQttPLTxC21ONuJPW7uCsBoI10MjYV1LRF2I170S8xj14Xn7/hWY7zrncr6VIx6fIpRukyGMzX2DCk4alsW2f/8E1pxZmO+76tuZVIlwA/34RXh7dYKK5um+GY5UY5P2OQmnrsftr5KA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884555; c=relaxed/simple; bh=B9xiOT0YvtKpdKicYFBewzcFXKlraENDmIZRi1Vu+A0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ru5fkWY5aVgqzNPA6iCwMnaKGoOhsTY+ZLWk4GUDEMkPJKNZvyuVIVmYVYEEYs0eGsetfvqzP+kQLjQxYXFhQwXDjaF00N6iDTKUsiMV8W4hzvtINxAZChPUGhpucNTbuP+nFG8iVnBqF1siMLbBAmtANo7h/rBvx3yDdLNSKy0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UvX3ZxSE; 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="UvX3ZxSE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E0A91F000E9; Wed, 27 May 2026 12:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884554; bh=j3FbWvtDM4KFkPRf58leLT//bPBYwhjr2iAHhabUV+k=; h=From:To:Cc:Subject:Date:Reply-To; b=UvX3ZxSEuAGBdyUyCgNCUIH4irADP6kEx5TtcClrlhQua8pfHAHfdykfAUSgtfNij NDLWQpzmNEr/tZd+F/fo4nDadU9ioLKws6U2ZeHmXkevd2OGxWS/kNQBu/Z5Wj00Jr 9Gw8lI5UnqnkOwVvt7QFsK+tO9PE47xPdlmTbyNc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45898: RDMA/iwcm: Fix workqueue list corruption by removing work_list Date: Wed, 27 May 2026 14:19:00 +0200 Message-ID: <2026052719-CVE-2026-45898-3b64@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=5464; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xhKGr3hd7TYzqEeah5KZo2AfR4AeyUOQSbp0v+mEbBE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD7kZbL9FOKS9+bKmmZn/rFO29uO5M1hqV5rM7Jj/9 LQsN+/qjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE9gQLk4BmIjQJob5XjyHF8yRO+Eky1Yc 7um2VDh96T5ZhrkyN09u4c92WaCVvPiSZ798vdxKnQcA 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/iwcm: Fix workqueue list corruption by removing work_list The commit e1168f0 ("RDMA/iwcm: Simplify cm_event_handler()") changed the work submission logic to unconditionally call queue_work() with the expectation that queue_work() would have no effect if work was already pending. The problem is that a free list of struct iwcm_work is used (for which struct work_struct is embedded), so each call to queue_work() is basically unique and therefore does indeed queue the work. This causes a problem in the work handler which walks the work_list until it's empty to process entries. This means that a single run of the work handler could process item N+1 and release it back to the free list while the actual workqueue entry is still queued. It could then get reused (INIT_WORK...) and lead to list corruption in the workqueue logic. Fix this by just removing the work_list. The workqueue already does this for us. This fixes the following error that was observed when stress testing with ucmatose on an Intel E830 in iWARP mode: [ 151.465780] list_del corruption. next->prev should be ffff9f0915c69c08, but was ffff9f0a1116be08. (next=ffff9f0a15b11c08) [ 151.466639] ------------[ cut here ]------------ [ 151.466986] kernel BUG at lib/list_debug.c:67! [ 151.467349] Oops: invalid opcode: 0000 [#1] SMP NOPTI [ 151.467753] CPU: 14 UID: 0 PID: 2306 Comm: kworker/u64:18 Not tainted 6.19.0-rc4+ #1 PREEMPT(voluntary) [ 151.468466] Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 151.469192] Workqueue: 0x0 (iw_cm_wq) [ 151.469478] RIP: 0010:__list_del_entry_valid_or_report+0xf0/0x100 [ 151.469942] Code: c7 58 5f 4c b2 e8 10 50 aa ff 0f 0b 48 89 ef e8 36 57 cb ff 48 8b 55 08 48 89 e9 48 89 de 48 c7 c7 a8 5f 4c b2 e8 f0 4f aa ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 90 90 90 [ 151.471323] RSP: 0000:ffffb15644e7bd68 EFLAGS: 00010046 [ 151.471712] RAX: 000000000000006d RBX: ffff9f0915c69c08 RCX: 0000000000000027 [ 151.472243] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff9f0a37d9c600 [ 151.472768] RBP: ffff9f0a15b11c08 R08: 0000000000000000 R09: c0000000ffff7fff [ 151.473294] R10: 0000000000000001 R11: ffffb15644e7bba8 R12: ffff9f092339ee68 [ 151.473817] R13: ffff9f0900059c28 R14: ffff9f092339ee78 R15: 0000000000000000 [ 151.474344] FS: 0000000000000000(0000) GS:ffff9f0a847b5000(0000) knlGS:0000000000000000 [ 151.474934] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 151.475362] CR2: 0000559e233a9088 CR3: 000000020296b004 CR4: 0000000000770ef0 [ 151.475895] PKRU: 55555554 [ 151.476118] Call Trace: [ 151.476331] [ 151.476497] move_linked_works+0x49/0xa0 [ 151.476792] __pwq_activate_work.isra.46+0x2f/0xa0 [ 151.477151] pwq_dec_nr_in_flight+0x1e0/0x2f0 [ 151.477479] process_scheduled_works+0x1c8/0x410 [ 151.477823] worker_thread+0x125/0x260 [ 151.478108] ? __pfx_worker_thread+0x10/0x10 [ 151.478430] kthread+0xfe/0x240 [ 151.478671] ? __pfx_kthread+0x10/0x10 [ 151.478955] ? __pfx_kthread+0x10/0x10 [ 151.479240] ret_from_fork+0x208/0x270 [ 151.479523] ? __pfx_kthread+0x10/0x10 [ 151.479806] ret_from_fork_asm+0x1a/0x30 [ 151.480103] The Linux kernel CVE team has assigned CVE-2026-45898 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit e1168f09b3314992f1c5251f3793102035da7237 and fixed in 6.12.75 with commit 38c5b49fffa1b760959af74f11806eeb3ef4706d Issue introduced in 6.11 with commit e1168f09b3314992f1c5251f3793102035da7237 and fixed in 6.18.14 with commit eb715133e0ae12514bba4d2d5ce1dee774476056 Issue introduced in 6.11 with commit e1168f09b3314992f1c5251f3793102035da7237 and fixed in 6.19.4 with commit a6b9e793e74e372daa266fd0d58b751305877897 Issue introduced in 6.11 with commit e1168f09b3314992f1c5251f3793102035da7237 and fixed in 7.0 with commit 7874eeacfa42177565c01d5198726671acf7adf2 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-45898 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/core/iwcm.c drivers/infiniband/core/iwcm.h 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/38c5b49fffa1b760959af74f11806eeb3ef4706d https://git.kernel.org/stable/c/eb715133e0ae12514bba4d2d5ce1dee774476056 https://git.kernel.org/stable/c/a6b9e793e74e372daa266fd0d58b751305877897 https://git.kernel.org/stable/c/7874eeacfa42177565c01d5198726671acf7adf2