Linux
nvme-tcp: fix host memory disclosure on R2T for a read command
In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: fix host memory disclosure on R2T for a read command nvme_tcp_handle_r2t() does not check the direction of the request the R2T refers to. A malicious controller can send an R2T for a READ and the host will answer it: nvme_tcp_setup_h2c_data_pdu() builds the H2CData header and nvme_tcp_try_send_data() sends the request's data buffer. That buffer is the READ destination, so its contents go to the controller. The command then completes normally and nothing is logged. Against a test controller that answers every READ with an R2T, a 4096 byte buffered read returned all 4096 bytes, split over two R2Ts. The pages contained stale kernel data, including an array of struct page pointers. Reject an R2T for a request that is not a write.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < effe898669c5f69ed519d6339be01ee9cd91d1a4
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 377aa04d7b3e73ffef6364818def188da8d6f025
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 49a4dcf57608ebf6432dbcb203ed25e7ed581445
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < bc4013c7cce58d46f792c8c87bc8c8318a70190e
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < a4c3c7310156493797c920b10d8648c07aa05403
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 3b3d27670c0c890ba7cf1bc3614cab61bde6d25c
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 3a0b05145053a5fad1a2ddb4e4d87b07385e63e5
- >= 3f2304f8c6d6ed97849057bd16fee99e434ca796, < 6efbc52237facda35d2d874fe1765bb4839275d8
Fixed in effe898669c5f69ed519d6339be01ee9cd91d1a4, 377aa04d7b3e73ffef6364818def188da8d6f025, 49a4dcf57608ebf6432dbcb203ed25e7ed581445, bc4013c7cce58d46f792c8c87bc8c8318a70190e, a4c3c7310156493797c920b10d8648c07aa05403, 3b3d27670c0c890ba7cf1bc3614cab61bde6d25c, 3a0b05145053a5fad1a2ddb4e4d87b07385e63e5, 6efbc52237facda35d2d874fe1765bb4839275d8
- 5.0
Fixed in 0, 5.10.273, 5.15.224, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to effe898669c5f69ed519d6339be01ee9cd91d1a4 or 377aa04d7b3e73ffef6364818def188da8d6f025 or 49a4dcf57608ebf6432dbcb203ed25e7ed581445 or bc4013c7cce58d46f792c8c87bc8c8318a70190e or a4c3c7310156493797c920b10d8648c07aa05403 or 3b3d27670c0c890ba7cf1bc3614cab61bde6d25c or 3a0b05145053a5fad1a2ddb4e4d87b07385e63e5 or 6efbc52237facda35d2d874fe1765bb4839275d8 or later.
Upgrade Linux to 0 or 5.10.273 or 5.15.224 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.