CVE-2026-89968: nvmet-tcp: reject unsolicited H2CData PDUs
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nvmet-tcp: reject unsolicited H2CData PDUs
nvmet_tcp_handle_h2c_data_pdu() accepts an H2CData PDU after only checking that its TTAG is a valid in-range command index and that the command's data buffers are mapped. It never checks that the target has actually solicited that data by sending an R2T for the command.
A remote host can abuse this. It submits a write command that takes the R2T path and, before the target transmits the R2T, sends an H2CData PDU for that command's tag. The data completes the command early, and when the command then fails synchronously (e.g. a length mismatch caught by nvmet_check_transfer_len()), it is completed a second time. Each completion calls nvmet_tcp_queue_response(), so the same command is added to queue->resp_list twice while it is still linked; the second llist_add() makes the node point to itself (lentry->next == lentry).
nvmet_tcp_process_resp_list() then walks that self-referential node and adds the command to resp_send_list twice. With CONFIG_DEBUG_LIST this trips the "list_add double add" check (kernel BUG); without it the loop never terminates and the nvmet_tcp workqueue wedges (soft-lockup). It is remotely triggerable and needs no authentication on an allow_any_host subsystem.
Track whether an R2T has been transmitted for a command and reject an H2CData PDU that arrives before it. The flag is cleared on command reuse (nvmet_tcp_get_cmd() zeroes cmd->flags) and stays set across the multiple H2CData PDUs of a single solicited transfer.
The Linux kernel CVE team has assigned CVE-2026-89968 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 5.10.270 with commit 02341ee424fb2eed16b5b8a9d247492e49335c21 Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 5.15.221 with commit cade124c06f8e738e3a0df285ed2e08953e6bfaa Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 6.1.188 with commit 14beef7d4f123fb458fc9844aa74a071871dcca6 Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 6.6.157 with commit 9fb527103e53fd43a8e802c2eca407869c204f7a Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 6.12.110 with commit 2b71f9193e3d3a352920ba367f1a6db345249038 Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 6.18.51 with commit cf1484d9a75de6809ef331e16f525aaa41b0e16d Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 7.2.5 with commit 1cbed7538946c99e585acefd11c9ba3a0bdbae05 Issue introduced in 5.0 with commit 872d26a391da92ed8f0c0f5cb5fef428067b7f30 and fixed in 7.3-rc2 with commit db62b35cbca052860c519cbcabe7650708528738
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-89968
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/target/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/02341ee424fb2eed16b5b8a9d247492e49335c21 https://git.kernel.org/stable/c/cade124c06f8e738e3a0df285ed2e08953e6bfaa https://git.kernel.org/stable/c/14beef7d4f123fb458fc9844aa74a071871dcca6 https://git.kernel.org/stable/c/9fb527103e53fd43a8e802c2eca407869c204f7a https://git.kernel.org/stable/c/2b71f9193e3d3a352920ba367f1a6db345249038 https://git.kernel.org/stable/c/cf1484d9a75de6809ef331e16f525aaa41b0e16d https://git.kernel.org/stable/c/1cbed7538946c99e585acefd11c9ba3a0bdbae05 https://git.kernel.org/stable/c/db62b35cbca052860c519cbcabe7650708528738