CRITICAL Introduced in 5.0
nvmet-tcp Pdu OOB Write
CVE-2026-89969
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI9.8CRITICAL
01Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: fix out-of-bounds write when receiving an over-long PDU nvmet_tcp_try_recv_pdu() reads a PDU header into the fixed 128-byte queue->pdu union, then computes the remaining payload length as queue->left = hdr->hlen - queue->offset + hdgst; and reads that many more bytes into &queue->pdu + queue->offset, without ever bounding the result against sizeof(queue->pdu). A struct nvme_tcp_icreq_pdu is itself 128 bytes, exactly the size of the union. Once a header digest has been negotiated (hdgst = 4), a second ICReq passes the hlen == nvmet_tcp_pdu_size() check but yields queue->left = 128 - 8 + 4 = 124, so bytes 8..132 are written into the 128-byte buffer -- 4 bytes past its end, over queue->hdr_digest and queue->data_digest. Those bytes are attacker-controlled (an ICReq carries no digest), and the duplicate ICReq is only rejected later, after the overflow. A remote unauthenticated host can thus corrupt kernel memory adjacent to the receive buffer. Reject any PDU whose declared length would read past the end of queue->pdu before the second recv.
02KernelScan AI Analysis
Risk summary
A remote unauthenticated attacker can send a crafted NVMe/TCP PDU to a kernel running the NVMe over TCP target, causing an out-of-bounds write past a fixed-size receive buffer. This corrupts adjacent kernel memory with attacker-controlled bytes, enabling potential code execution, denial of service, or information disclosure on any exposed NVMe-oF TCP endpoint.
Vulnerability analysis
The NVMe over TCP target reads incoming PDU headers into a fixed 128-byte buffer and computes how many more bytes to receive based on the header's declared length plus a negotiated header digest, without checking that the total fits. When header digests are enabled, a second ICReq PDU passes the existing length validation but causes the receive path to write four attacker-controlled bytes past the end of the buffer, corrupting adjacent kernel memory before the duplicate request is rejected. The fix adds a bounds check that rejects any PDU whose declared length would exceed the buffer before the second receive operation. This is reachable by any remote host that can establish a TCP connection to the NVMe-oF target port, requiring no authentication or prior credentials.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 5.0 | 5.10.270 | a3f0bcfbaf33 |
| 5.15 | 5.0 | 5.15.221 | 4f84d42c53c4 |
| 6.1 | 5.0 | 6.1.188 | 58dc6035b79c |
| 6.6 | 5.0 | 6.6.157 | cf5f39d2b58f |
| 6.12 | 5.0 | 6.12.110 | 3a385e0c39ef |
| 7.2 | 5.0 | 7.2.5 | d95d342bc0ea |
| mainline | 5.0 | 7.3-rc2 | 14cc5a7e7773 |
| 6.18 | 5.0 | 6.18.51 | dbc4acbdb3ca |