7.5

CVE-2026-89480

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.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < a5c1bb0fb1bab2f24a081339c145870697f6d220
Status affected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < aa107e3a68f4af177d60f2d87679e7f67179a36c
Status affected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < fca3ebb63e5c82561cd9934365dcc0d068008006
Status affected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < 99066cf9bba175f610ceb61a35f6fc9fbc33ff65
Status affected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < 8a02ad98798fd01f51f648c1fdd8f3c9d07195d3
Status affected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < 832a685efeb5d925ee7d30011d2dbe45f81447a3
Status affected
Version 3f2304f8c6d6ed97849057bd16fee99e434ca796
Version < 7fa3f73f6c8ddc5f0425b50fb2a626a782ef7d12
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 5.0
Status affected
Version 0
Version < 5.0
Status unaffected
Version <= 5.15.*
Version 5.15.221
Status unaffected
Version <= 6.1.*
Version 6.1.188
Status unaffected
Version <= 6.6.*
Version 6.6.157
Status unaffected
Version <= 6.12.*
Version 6.12.109
Status unaffected
Version <= 6.18.*
Version 6.18.50
Status unaffected
Version <= 7.2.*
Version 7.2.4
Status unaffected
Version <= *
Version 7.3-rc1
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.37% 0.307
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 7.5 3.9 3.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/99066cf9bba175f610ceb61a35f6fc9fbc33ff65
https://git.kernel.org/stable/c/8a02ad98798fd01f51f648c1fdd8f3c9d07195d3
https://git.kernel.org/stable/c/832a685efeb5d925ee7d30011d2dbe45f81447a3
https://git.kernel.org/stable/c/7fa3f73f6c8ddc5f0425b50fb2a626a782ef7d12
https://git.kernel.org/stable/c/a5c1bb0fb1bab2f24a081339c145870697f6d220
https://git.kernel.org/stable/c/aa107e3a68f4af177d60f2d87679e7f67179a36c
https://git.kernel.org/stable/c/fca3ebb63e5c82561cd9934365dcc0d068008006