nvme-tcp: reject a read that transferred too few bytes
In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: reject a read that transferred too few bytes nvme_tcp_recv_data() completes a request once the current C2HData PDU has been consumed. Nothing compares the total bytes received against the length the command asked for: struct nvme_tcp_request has no receive-side counter, queue->data_remaining is per queue, and blk_mq_end_request() completes for blk_rq_bytes(rq) unconditionally with no residual concept anywhere above. A controller can therefore answer a 4096-byte read with 512 bytes and have it reported as a complete read; user space then gets 4096 bytes of which 3584 are whatever was already in the page. I reproduced that with a test target. Count the bytes received and refuse to complete a successful read whose count does not match, at the two NVME_TCP_F_DATA_SUCCESS paths and in nvme_tcp_process_nvme_cqe(). The success test shifts req->status right by one, because the driver keeps the wire value there and shifts it on completion, so the check must see what the completion path will see. Only REQ_OP_READ is checked, because there the length comes from the sectors the request covers; a passthrough command is built by its submitter, which picks both command and buffer, so the kernel has nothing to compare against.
CVE-2026-89480
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-89480
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": "a5c1bb0fb1bab2f24a081339c145870697f6d220",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "aa107e3a68f4af177d60f2d87679e7f67179a36c",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "fca3ebb63e5c82561cd9934365dcc0d068008006",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "99066cf9bba175f610ceb61a35f6fc9fbc33ff65",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "8a02ad98798fd01f51f648c1fdd8f3c9d07195d3",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "832a685efeb5d925ee7d30011d2dbe45f81447a3",
"versionType": "git"
},
{
"status": "affected",
"version": "3f2304f8c6d6ed97849057bd16fee99e434ca796",
"lessThan": "7fa3f73f6c8ddc5f0425b50fb2a626a782ef7d12",
"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.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.109",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.50",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.4",
"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-89480
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #35008 · Revision 1
- Added to Heist Feed
- Publisher date