CVE-2026-139154

nvmet: fix NULL dereference of PCI endpoint targets

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: fix NULL dereference of PCI endpoint targets

nvmet_pci_epf_create_ctrl() calls nvmet_alloc_ctrl() without a queue,
the admin queue comes later from the host. nvmet_alloc_ctrl() passes
args->sq to nvmet_queue_tls_keyid(), which with
CONFIG_NVME_TARGET_TCP_TLS dereferences it, so every PCI endpoint
controller creation crashes on such a kernel. The debugfs tls_key file
passes ctrl->sqs[0] to the same function, which is NULL until the admin
queue exists and again once a fabrics host has closed it while keeping
an I/O queue.

A queue that isn't there has no TLS key.

Analysis

AI-generated

Technical impact

The vulnerability originates from a null pointer dereference in the nvmet_pci_epf_create_ctrl function when the admin queue is absent. This flaw causes the kernel to pass a NULL pointer to nvmet_queue_tls_keyid under the CONFIG_NVME_TARGET_TCP_TLS configuration. The result is a crash of the entire kernel, denying service to the host. The weakness is classified as a NULL pointer dereference (CWE‑476).

Affected Systems

This bug affects all Linux kernel images that contain the nvmet subsystem prior to the applied fix. The affected line is part of the NVMe Target driver in the mainline Linux kernel. No specific vendor version numbers are listed, but any distribution using an unpatched kernel build prior to the referenced commit is susceptible. The vendor product impacted is Linux: Linux.

Risk and Exploitability

The CVSS score is not provided and the EPSS metric is unavailable, indicating no publicly measured exploitation activity. The flaw is not present in the CISA Known Exploited Vulnerabilities catalog. Because the crash occurs during PCI endpoint controller creation—a process typically handled by system initialization or device plug‑in—an attacker would need to influence that process, likely requiring local access or the ability to inject a PCI NVMe device. The exploitation likelihood is therefore low, and no active exploitation has been reported; however, the impact of a kernel panic is severe enough to warrant a prompt patch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the commit 4a5ace11b5a367270bc86097d31c35cb61890a95 or later, which fixes the null pointer dereference in nvmet_pci_epf_create_ctrl.
  • If a kernel update cannot be performed immediately, avoid creating PCI NVMe endpoint controllers on the affected system, for example by disabling NVMe over PCI or temporarily disabling the nvmet target module until a patch is applied.
  • Monitor system logs for kernel panics related to nvmet_pci_epf_create_ctrl, and plan a reboot after applying any updates to ensure stability.

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-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: fix NULL dereference of PCI endpoint targets nvmet_pci_epf_create_ctrl() calls nvmet_alloc_ctrl() without a queue, the admin queue comes later from the host. nvmet_alloc_ctrl() passes args->sq to nvmet_queue_tls_keyid(), which with CONFIG_NVME_TARGET_TCP_TLS dereferences it, so every PCI endpoint controller creation crashes on such a kernel. The debugfs tls_key file passes ctrl->sqs[0] to the same function, which is NULL until the admin queue exists and again once a fabrics host has closed it while keeping an I/O queue. A queue that isn't there has no TLS key.
Title nvmet: fix NULL dereference of PCI endpoint targets
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