KernelScan.io

CRITICAL Introduced in 5.0

nvmet-tcp Pdu OOB Write

CVE-2026-89969

CVSS 9.8 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI9.8CRITICAL

01

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.

02

Engine v0.6.0

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.

Affecteddrivers/nvme/target/tcp.c (nvmet-tcp)

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.

03

BranchIntroducedFixed inPatch commit
5.105.05.10.270a3f0bcfbaf33
5.155.05.15.2214f84d42c53c4
6.15.06.1.18858dc6035b79c
6.65.06.6.157cf5f39d2b58f
6.125.06.12.1103a385e0c39ef
7.25.07.2.5d95d342bc0ea
mainline5.07.3-rc214cc5a7e7773
6.185.06.18.51dbc4acbdb3ca