nvme-tcp: reject a read that transferred too few bytes (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.41 % · percentile 36 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Received
Description
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.
References
- https://git.kernel.org/stable/c/b674af31d044a86bd094ba8bb8f2bb92fb49aac5
- https://git.kernel.org/stable/c/a5c1bb0fb1bab2f24a081339c145870697f6d220
- https://git.kernel.org/stable/c/aa107e3a68f4af177d60f2d87679e7f67179a36c
- https://git.kernel.org/stable/c/fca3ebb63e5c82561cd9934365dcc0d068008006
- 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
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | Linux |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-76386
- GCVE · GCVE-0-2026-89480
CERT-FR advisories
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1375 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1372 — Multiples vulnérabilités dans les produits SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1335 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1289 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1254 — Multiples vulnérabilités dans le noyau Linux de Red Hat · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1253 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1230 — Multiples vulnérabilités dans le noyau Linux de Red Hat · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 3f2304f8c6d6ed97849057bd16fee99e434ca796 < b674af31d044a86bd094ba8bb8f2bb92fb49aac5 ; affected 3f2304f8c6d6ed97849057bd16fee99e434ca796 < a5c1bb0fb1bab2f24a081339c145870697f6d220 ; affected 3f2304f8c6d6ed97849057bd16fee99e434ca796 < aa107e3a68f4af177d60f2d87679e7f67179a36c ; affected 3f2304f8c6d6ed97849057bd16fee99e434ca796 < fca3ebb63e5c82561cd9934365dcc0d068008006 ; affected 3f2304f8c6d6ed97849057bd16fee99e434ca796 < 99066cf9bba175f610ceb61a35f6fc9fbc33ff65 ; affected 3f2304f8c6d6ed97849057bd16fee99e434ca796 < 8a02ad98798fd01f51f648c1fdd8f3c9d07195d3 |
| Linux · Linux | affected 5.0 ; unaffected 0 < 5.0 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |