Description
In the Linux kernel, the following vulnerability has been resolved:

nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers

Currently, when nvmet_tcp_build_pdu_iovec() detects an out-of-bounds
PDU length or offset, it triggers nvmet_tcp_fatal_error(cmd->queue)
and returns early. However, because the function returns void, the
callers are entirely unaware that a fatal error has occurred and
that the cmd->recv_msg.msg_iter was left uninitialized.

Callers such as nvmet_tcp_handle_h2c_data_pdu() proceed to blindly
overwrite the queue state with queue->rcv_state = NVMET_TCP_RECV_DATA
Consequently, the socket receiving loop may attempt to read incoming
network data into the uninitialized iterator.

Fix this by shifting the error handling responsibility to the callers.
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the Linux kernel’s nvmet-tcp subsystem. A helper function that sets up a PDU iterator returns void and silences callers when it sees an out‑of‑bounds PDU length or offset. Because callers do not detect the failure, they overwrite the command’s state and later use an uninitialized iterator to read network data. This flaw allows an attacker that can inject crafted network packets to corrupt kernel memory and feasibly execute arbitrary code with kernel privileges. It demonstrates improper initialization and incorrect error handling weaknesses (CWE‑665, CWE‑682).

Affected Systems

The affected component is the Linux kernel. No specific version range is provided in the CVE data; the issue applies to any kernel that contains the nvmet-tcp implementation before the fix is applied. The vendor is Linux, product Linux Kernel.

Risk and Exploitability

A kernel‑level flaw that can be triggered over the network. Although no CVSS or EPSS score is available, the potential for arbitrary code execution and kernel memory corruption gives the vulnerability a high severity. The bug is not listed in the CISA KEV catalog, but it remains exploitable by attackers able to reach the nvmet‑tcp service. No known constraints are listed, so standard network-facing deployment of nvmet-tcp is the likely attack vector.

Generated by OpenCVE AI on June 24, 2026 at 18:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the nvmet‑tcp error‑handling fix; consult the distribution’s security advisories for the appropriate package version.
  • If an immediate kernel upgrade is not possible, disable the nvmet‑tcp protocol or bind it to a trusted network interface so that untrusted hosts cannot send PDU data.
  • Apply network filtering or firewall rules to block or restrict access to the nvmet‑tcp port from external or potentially malicious hosts.

Generated by OpenCVE AI on June 24, 2026 at 18:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665
CWE-682

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers Currently, when nvmet_tcp_build_pdu_iovec() detects an out-of-bounds PDU length or offset, it triggers nvmet_tcp_fatal_error(cmd->queue) and returns early. However, because the function returns void, the callers are entirely unaware that a fatal error has occurred and that the cmd->recv_msg.msg_iter was left uninitialized. Callers such as nvmet_tcp_handle_h2c_data_pdu() proceed to blindly overwrite the queue state with queue->rcv_state = NVMET_TCP_RECV_DATA Consequently, the socket receiving loop may attempt to read incoming network data into the uninitialized iterator. Fix this by shifting the error handling responsibility to the callers.
Title nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:29:03.398Z

Reserved: 2026-06-09T07:44:35.376Z

Link: CVE-2026-52989

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T18:45:05Z

Weaknesses