From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187543; b=gvYJu9WpiEXc3MqHLcOuhr/ThEPF+cnIpg/dhWeb6CWV/7druiaJ+B2rtVSpKNO955ae 2/epI6Q/9yK1UKOLRP1lq9CkfbUN6K7U1+O8rCfk8DEmt16hNkx2VTAJ7dOvOtY6cgHV4 +UazWeJd//RVbouGkZ49vgwE+i/XMIsmbxtjk83ojf4zt72BHTnp7FRfb8E8Ru6qoji65 m0qqP6MW/c79DV3ypQ4jryso3A6mEajrSs8P384Kg/1k3MP0mdxXLF41dBKES8tu2Qcde x7ZV4GUCmlGiWKpgHGyuljdLvO7aNYQNQ3r3uVX5B3v37kXSe/gPXs+5HhbUy0oiOJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187543; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=HY22vIoi2/lLBtVrc4cKZmgcGOEf0BpejhBWGbd4hJ4=; b=qkimceCYUvBcCDANPxbMtdbqqRK/oMQxgV8qH4y0FQk4e3OvCY9ZJHMafGWF7ovL3PgJ ZOHk4FbmvWH9IsBeKkMPLFiJkkw99nTnCAWhZbGnEJvme8aQ5OteguUXYINs64FmIV/Tp kOKVJE4MF1HoO7G0OS/MsHRBuV4XEDkD6bM4Ee6Jza5I8mpOPfe9PD4I02MjEDloP96aH +vjeo+cHwyHSNhQsTnqdNPOr1z1jA1u6jKNunmmIPByWF6yjXhXARA6oHLvp2auuJ/UjN 9ZhI4PgNUmiD2rpQ1ZqruQdVA9cXx7Ush3duWUUPds2YXaf5RqHEDon9lNaOP/ptJFw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MI7wx4Ju; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F00F606A31A for ; Wed, 28 Oct 2026 11:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=MI7wx4Ju Received: by smtp.kernel.org (Postfix) with ESMTPSA id 662A21F01825; Wed, 28 Oct 2026 11:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187543; bh=HY22vIoi2/lLBtVrc4cKZmgcGOEf0BpejhBWGbd4hJ4=; h=From:To:Cc:Subject:Date:Reply-To; b=MI7wx4JuyiA89aBttv2BT0Igal058lyZqy9F2diMgLYMdjp8n955qOqZpe/GaV6tw zYv1f++qSCXzt8onkUTtXvIc6BZPzqOS9m+nNh/m4Fm5nS4l8j+TKuGzW5Nw9+j/ia 0F5najIoa90S3DVH4ZH50HQ4CkH1Z2L6sNBypsVg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99152: scsi: libiscsi: Validate the task named by a management response Date: Wed, 28 Oct 2026 11:35:39 +0100 Message-ID: <2026102803-CVE-2026-99152-d7da@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4948; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6pF2YI0KZD6hb3ZZtVixmrP5jvnygBIn2PCQlUuFA2g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1/3Kb25ycZPt5+/JDTZ9tS8fWlVCRv412+6q391T aufp+bVjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/D6GuSLHtCPEuIsXzZoX WBi+7sYGrVM7MhgW3LCpXnBr5TbLeOYNovqeHxg6mlRkAA== 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: scsi: libiscsi: Validate the task named by a management response __iscsi_complete_pdu() fetches the task for five response types from one place and checks only that the index resolved: case ISCSI_OP_LOGOUT_RSP: case ISCSI_OP_LOGIN_RSP: case ISCSI_OP_TEXT_RSP: case ISCSI_OP_SCSI_TMFUNC_RSP: case ISCSI_OP_NOOP_IN: task = iscsi_itt_to_task(conn, hdr->itt); if (!task) return ISCSI_ERR_BAD_ITT; iscsi_itt_to_task() bounds the index against cmds_max and looks at nothing else, so a target can name any slot in the pool, including one that has never been used. task->conn is then NULL, and both iscsi_nop_out_rsp() and iscsi_complete_task() dereference it. One unsolicited NOP-In is enough; a Text Response carrying the same ITT crashes in iscsi_complete_task() instead. Require the task to be in flight and not a SCSI command, the way iscsi_itt_to_ctask() does for the command opcodes. [ 6.298634] Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI [ 6.298642] KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] [ 6.298652] CPU: 1 UID: 0 PID: 111 Comm: iscsistart Not tainted 7.2.0-rc5-ISCSI1-gf5098b6bae76 #1 PREEMPT(lazy) [ 6.298654] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 6.298656] RIP: 0010:iscsi_nop_out_rsp.constprop.0+0x46/0x160 [ 6.298691] Code: c1 ea 03 48 83 ec 08 80 3c 02 00 0f 85 f5 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 58 48 8d 7d 60 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 c0 00 00 00 48 8b 45 60 48 39 c3 74 50 48 b8 00 [ 6.298698] RSP: 0018:ffff88806c907be8 EFLAGS: 00010206 [ 6.298701] RAX: dffffc0000000000 RBX: ffff888006116800 RCX: 0000000000000020 [ 6.298702] RDX: 000000000000000c RSI: ffff88800525d578 RDI: 0000000000000060 [ 6.298703] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 6.298706] R10: 0000000000000020 R11: 0000000000000000 R12: 0000000000000000 [ 6.298706] R13: 000000000000002e R14: ffff8880056eb440 R15: ffff888006116800 [ 6.298707] FS: 00007fc02d1c2740(0000) GS:ffff8880b29bc000(0000) knlGS:0000000000000000 [ 6.298710] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6.298711] CR2: 000055fe3b56ddf8 CR3: 00000000053b9004 CR4: 0000000000770ef0 [ 6.298712] PKRU: 55555554 [ 6.298713] Call Trace: [ 6.298714] [ 6.298714] __iscsi_complete_pdu+0x13a8/0x22a0 [ 6.298758] iscsi_complete_pdu+0x54/0xa0 [ 6.298759] iscsi_tcp_hdr_recv_done+0x870/0x2c80 [ 6.298778] iscsi_tcp_recv_skb+0x31e/0xec0 [ 6.298800] iscsi_sw_tcp_recv+0x12f/0x390 [ 6.298804] __tcp_read_sock+0x1ab/0x810 [ 6.298812] iscsi_sw_tcp_data_ready+0x18b/0x510 [ 6.298814] tcp_rcv_established+0x1f56/0x3a00 [ 6.298842] tcp_v4_do_rcv+0x449/0x960 [ 6.298847] tcp_v4_rcv+0x2245/0x3bc0 The Linux kernel CVE team has assigned CVE-2026-99152 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 and fixed in 6.18.59 with commit 55a65ef61e2775aeb18fda63bd1959fa8b41f936 Issue introduced in 2.6.18 with commit 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 and fixed in 7.2.13 with commit f721487523d45941aed4b0ac8d829b0461a7d860 Issue introduced in 2.6.18 with commit 7996a778ff8c717cb1a7a294475c59cc8f1e9fb8 and fixed in 7.3 with commit 11bffcd9cb346732eab2914ef44fe777a3f0b585 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-99152 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/scsi/libiscsi.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/55a65ef61e2775aeb18fda63bd1959fa8b41f936 https://git.kernel.org/stable/c/f721487523d45941aed4b0ac8d829b0461a7d860 https://git.kernel.org/stable/c/11bffcd9cb346732eab2914ef44fe777a3f0b585