CVE-2026-139152

nvmet-tcp: don't read a removed port at Connect time

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

nvmet-tcp: don't read a removed port at Connect time

nvmet_tcp_alloc_cmd() takes the nvmet port of a command from
queue->port, and the commands of a queue are allocated from the io work
when the Connect arrives. nvmet_tcp_remove_port() shuts down the queues
that have no controller yet and frees the port without waiting for
them, they're released later from a work. An io work handling a Connect
at that moment reads the freed port for every command of the queue and
hands the result to the core.

Note the nvmet port in the queue at allocation. It outlives the
transport port.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel's nvmet-tcp transport. The bug occurs when nvmet_tcp_remove_port frees a port while still in use by queued commands. When a connection is processed during this period, the kernel reads from the freed port, resulting in a use-after-free condition. This corrupted memory access can cause a kernel panic or leak sensitive kernel data, compromising integrity and availability.

Affected Systems

Linux systems running the Linux kernel with the nvmet-tcp subsystem enabled. No specific kernel version is listed in the advisory, but any kernel containing the exposed code path is affected.

Risk and Exploitability

A remote attacker who can initiate an NVMe/TCP connection to the target can trigger the issue. The advisories do not provide a CVSS score or EPSS value, and the vulnerability is not in the CISA KEV catalog. Exploitation requires remote access and may lead to a driver fault, kernel panic, or persistence of corrupted data if an attacker directly manipulates freed memory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the nvmet-tcp fix.
  • If the system does not require NVMe/TCP, disable the nvmet-tcp service or set the daemon to inactive.
  • Block external access to the NVMe/TCP port (default 8420) using a firewall and monitor kernel logs for kernel crashes

Generated by OpenCVE AI on November 30, 2026 at 19:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: don't read a removed port at Connect time nvmet_tcp_alloc_cmd() takes the nvmet port of a command from queue->port, and the commands of a queue are allocated from the io work when the Connect arrives. nvmet_tcp_remove_port() shuts down the queues that have no controller yet and frees the port without waiting for them, they're released later from a work. An io work handling a Connect at that moment reads the freed port for every command of the queue and hands the result to the core. Note the nvmet port in the queue at allocation. It outlives the transport port.
Title nvmet-tcp: don't read a removed port at Connect time
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM