CVE-2026-139153

nvmet-tcp: stop listening when a port is removed

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: stop listening when a port is removed

nvmet_tcp_accept_work() accepts until there's nothing left. A
connection that is already dead when accepted is torn down right there,
which takes a few ms, and more can arrive meanwhile.
nvmet_tcp_remove_port() waits for the work with cancel_work_sync(), so
someone opening and closing connections in a loop keeps the removal from
finishing. It holds nvmet_config_sem for writing, so nothing can be
configured and no port answers a Connect until the flood stops. No
secret needed, just an admin removing the port at the wrong time.

Shut the listening socket down first. Pending connections are dropped,
as they were on release, and the next kernel_accept() fails and ends the
work.

Analysis

AI-generated

Technical impact

The vulnerability occurs in the Linux kernel nvmet-tcp subsystem. When an administrator removes an NVMe over Fabrics TCP port while connections are already established, the removal process is blocked by a work item that waits for existing connections to finish. The work item holds a write lock on the configuration semaphore, preventing any new configuration changes and causing the port to refuse connections. This results in a denial of service condition for the NVMe target, effectively locking out configuration and access until the flood of connections stops. The weakness is a race condition involving resource management and locking, which allows an attacker with local administrative privileges to render the NVMe target service unusable.

Affected Systems

Affected systems are Linux kernels that include the nvmet-tcp module. The vulnerability may exist in any kernel version that has not yet been patched by the fix described in the CVE description. No specific affected version list was provided, so any distribution using a kernel prior to the commit that introduced the patch is potentially impacted.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, so the exact likelihood of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, suggesting no publicly known exploited instances. However, the condition can be triggered by an attacker who has the ability to modify the NVMe target configuration—an administrative privilege. The attack vector is therefore limited to local, privileged access, and the impact is a denial of service that blocks configuration and refutes new connections until the removal process completes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel update that incorporates the patch which shuts the listening socket down before removing the port
  • Verify that nvmet-tcp removal no longer blocks configuration changes and that new connections are denied during removal
  • If an update is not yet available, avoid removing the nvmet port while active connections are present, or temporarily disable nvmet-tcp until the patch can be applied

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-400
CWE-404
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: stop listening when a port is removed nvmet_tcp_accept_work() accepts until there's nothing left. A connection that is already dead when accepted is torn down right there, which takes a few ms, and more can arrive meanwhile. nvmet_tcp_remove_port() waits for the work with cancel_work_sync(), so someone opening and closing connections in a loop keeps the removal from finishing. It holds nvmet_config_sem for writing, so nothing can be configured and no port answers a Connect until the flood stops. No secret needed, just an admin removing the port at the wrong time. Shut the listening socket down first. Pending connections are dropped, as they were on release, and the next kernel_accept() fails and ends the work.
Title nvmet-tcp: stop listening when a port is removed
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-404

    Improper Resource Shutdown or Release

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