nvme-tcp: check the data direction of a C2HData PDU
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]
CVE-2026-89973
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-89973
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "df74950ba6008655d4a977d17df7faf4b6e52b74",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "980d990f3c0560d7dfbfbf14699651fdf02f26ee",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "5b115d932f6e769ac80783fb18edd21b0aed256e",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "0673a2affe45ca76b60de31a83c67b1e60f81bde",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "80d56202fbdff8906be6954b2776e5c14a4026f2",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "b4af7999a998787d5eb6facb5a333e04a4f1d2d9",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "a0c389b8a495bda1eb719d2503853c924b7a8355",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "f83af377c148f6ad94b41c0e8313f12adf45e1c1",
"versionType": "git"
}
],
"programFiles": [
"drivers/nvme/host/tcp.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.0"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.270",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.221",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.51",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.5",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"drivers/nvme/host/tcp.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89973
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #36411 · Revision 1
- Added to Heist Feed
- Publisher date