CVE-2026-139157

nvmet: use the enabled transport when disabling a port

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: use the enabled transport when disabling a port

nvmet_disable_port() looks up the transport from the current
disc_addr.trtype, while nvmet_enable_port() records the transport in
port->tr_ops. If trtype is changed while a port is being enabled, the
port can be removed through a different transport, passing the private
data of the original transport to the wrong ->remove_port().

The same mismatch is reachable with loop and RDMA: loop add_port()
leaves port->priv NULL, and RDMA remove_port() dereferences it.

Use port->tr_ops for removal and serialize trtype changes with
nvmet_config_sem in nvmet_addr_trtype_store(), so the transport that
added the port is also the one that removes it.

Analysis

AI-generated

Technical impact

The nvmet subsystem in the Linux kernel had a flaw where disabling a port used the transport type from the current disc_addr.trtype rather than the transport stored in the port structure. When the transport type changed while a port was being enabled, the driver could attempt to remove the port with the wrong transport, causing a NULL pointer dereference in the remove operation and leading to a kernel crash. This results in an application or system-wide denial of service, as the kernel terminates the offending process and requires a reboot or restart of the affected service.

Affected Systems

The vulnerability exists in the standard Linux kernel sources, regardless of distribution. All releases of the kernel that include the nvmet driver before the remediation are potentially affected; specific version numbers are not listed in the advisory.

Risk and Exploitability

The exploit requires the attacker to interact with the NVMe-oF subsystem in a way that triggers a port enable or disable operation while the transport type is being altered. This is typically a local privilege scenario or a compromised virtual machine with NVMe access. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting it has not yet seen widespread exploitation. However, the high impact of a kernel panic makes it a significant risk for environments that rely on NVMe over Fabrics.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the operating system kernel to a version that contains the fix, where nvmet uses the transport stored in port->tr_ops and serializes transport type changes
  • If an immediate kernel update is not feasible, disable or uninstall the nvmet kernel module to prevent port configuration changes until the patch is applied
  • Configure system monitoring to alert on kernel error logs related to NVMe or NVMe-OF driver failures so that any attempted exploitation can be identified promptly

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: use the enabled transport when disabling a port nvmet_disable_port() looks up the transport from the current disc_addr.trtype, while nvmet_enable_port() records the transport in port->tr_ops. If trtype is changed while a port is being enabled, the port can be removed through a different transport, passing the private data of the original transport to the wrong ->remove_port(). The same mismatch is reachable with loop and RDMA: loop add_port() leaves port->priv NULL, and RDMA remove_port() dereferences it. Use port->tr_ops for removal and serialize trtype changes with nvmet_config_sem in nvmet_addr_trtype_store(), so the transport that added the port is also the one that removes it.
Title nvmet: use the enabled transport when disabling a port
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