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 93A3D4FB9D7 for ; Wed, 16 Sep 2026 10:43:09 +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=1789555405; cv=none; b=pgqtBtRW9yVk2wG1pp/grlvAWEdPepFZUPNtbaipGFSY6QuefEHHKLbhfus7z1TvRbxsMxi1K2+mmT8jNbLNDlhrBDwrEW7xesBybg2um73i783IyuvxBGnvIv5kO9Cok6WrhL3vIyMMpfls9qHzitufJJO8Z3qco97CxvLe7q8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555405; c=relaxed/simple; bh=njfXrzf6F/RERYoYAhaPnMzzcB3lFup7WQICrDx/Z1Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r04xiZv2GK0cCTr0A8a4cQv/RMPVSVu7nTK1alIkq56a7IwMdF0NvElZCdb1raGksA5P6PENEWFNBZ57wnHol2fePVvE+goV02xBiqSu2gBboRsjW0wtE8uH2tzlvp7WtWiM/9GIE/C/mgD9GJRPLehiZctX0eG2Ud+oMh8pviw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qGon4/O/; 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="qGon4/O/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5520D1F0089A; Wed, 16 Sep 2026 10:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555388; bh=mWx5BjNG2sTjb58WLwJg0hJeqprts5cStXyk0jwliOE=; h=From:To:Cc:Subject:Date:Reply-To; b=qGon4/O/W7RdhPNZLHVsLnPImyUwSxzedFsRFwt27oR80BwDoE2wCKepdDi6YcY2e Hq2uciBq4IGMjKu8uYX/91vJBlDu55fnU0BvpBkx6LxOmLH6i/qzqDGwQQopQ1jPO7 uo5N2yf2b/dM5nE9QTEzqvO6Enb4h0Gn5v7H3d80= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89973: nvme-tcp: check the data direction of a C2HData PDU Date: Wed, 16 Sep 2026 11:31:43 +0100 Message-ID: <2026091654-CVE-2026-89973-216c@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=5088; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kt8NCyZD+4VQTRQoSvdk3JgFTAp7ODYBdUDTYSwY1J0=; b=kA0DAAIRMUfUDdst+ykByyZiAGqqb6KjdRIM4lHtRP73ZQl/19u7iE1CpIqR8oGq8gGk7XjxM 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmqqb6IACgkQMUfUDdst+yl1pgCcD9tb ricDs4zdFx1oBu1cjeADo9sAnRF32mf9B4i6rYO6hN+Iydx+GySc 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: nvme-tcp: check the data direction of a C2HData PDU nvme_tcp_handle_c2h_data() finds the request by command id and checks that it has a payload, but it does not check that the command asked for data to be read. A controller that answers a write command with C2HData therefore reaches nvme_tcp_recv_data(), where _copy_to_iter() hits WARN_ON_ONCE(i->data_source) and returns 0. The receive path turns that into -EFAULT and resets the controller. No data is copied, so this is not memory corruption. What a controller gets is a kernel warning it can raise at will, which is fatal on a host booted with panic_on_warn. The send path already knows the direction - it consults rq_data_dir() when it builds a command - and nvme_tcp_handle_r2t() checks the length and the offset of the request it names. The C2HData path does not check the direction at all. Reject a C2HData PDU whose command is not a read. Rejecting it fails the command and resets the controller, as the neighbouring check in this function does; what goes away is the warning. [ 6.885580] ------------[ cut here ]------------ [ 6.886457] WARNING: lib/iov_iter.c:193 at _copy_to_iter+0x289/0x1330, CPU#0: kworker/0:1H/71 [ 6.888137] CPU: 0 UID: 0 PID: 71 Comm: kworker/0:1H Not tainted 7.2.0-rc5-NVMETCP-gf5098b6bae76 #1 PREEMPT(lazy) [ 6.891165] Workqueue: nvme_tcp_wq nvme_tcp_io_work [ 6.891875] RIP: 0010:_copy_to_iter+0x289/0x1330 [ 6.903739] Call Trace: [ 6.904085] [ 6.909254] __skb_datagram_iter+0x433/0x820 [ 6.911026] skb_copy_datagram_iter+0x37/0x120 [ 6.911622] nvme_tcp_recv_skb+0xa07/0x4320 [ 6.913378] __tcp_read_sock+0x1ab/0x810 [ 6.915788] nvme_tcp_try_recv+0x152/0x1e0 [ 6.918222] nvme_tcp_io_work+0x1e4/0x6c0 [ 6.926906] [ 6.927226] ---[ end trace 0000000000000000 ]--- [ 6.927878] nvme nvme0: queue 1 failed to copy request 0x71 data [ 6.928709] nvme nvme0: receive failed: -14 The Linux kernel CVE team has assigned CVE-2026-89973 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 5.10.270 with commit df74950ba6008655d4a977d17df7faf4b6e52b74 Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 5.15.221 with commit 980d990f3c0560d7dfbfbf14699651fdf02f26ee Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.1.188 with commit 5b115d932f6e769ac80783fb18edd21b0aed256e Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.6.157 with commit 0673a2affe45ca76b60de31a83c67b1e60f81bde Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.12.110 with commit 80d56202fbdff8906be6954b2776e5c14a4026f2 Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 6.18.51 with commit b4af7999a998787d5eb6facb5a333e04a4f1d2d9 Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 7.2.5 with commit a0c389b8a495bda1eb719d2503853c924b7a8355 Issue introduced in 5.0 with commit 3f2304f8c6d6ed97849057bd16fee99e434ca796 and fixed in 7.3-rc2 with commit f83af377c148f6ad94b41c0e8313f12adf45e1c1 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-89973 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/nvme/host/tcp.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/df74950ba6008655d4a977d17df7faf4b6e52b74 https://git.kernel.org/stable/c/980d990f3c0560d7dfbfbf14699651fdf02f26ee https://git.kernel.org/stable/c/5b115d932f6e769ac80783fb18edd21b0aed256e https://git.kernel.org/stable/c/0673a2affe45ca76b60de31a83c67b1e60f81bde https://git.kernel.org/stable/c/80d56202fbdff8906be6954b2776e5c14a4026f2 https://git.kernel.org/stable/c/b4af7999a998787d5eb6facb5a333e04a4f1d2d9 https://git.kernel.org/stable/c/a0c389b8a495bda1eb719d2503853c924b7a8355 https://git.kernel.org/stable/c/f83af377c148f6ad94b41c0e8313f12adf45e1c1