Skip to main content
Vulnerability Database/CVE-2026-98723

CVE-2026-98723: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98723 is a privilege escalation vulnerability in the Linux kernel affecting NVMe target controller initialization. This flaw allows incorrect handling of host IDs in reservation operations. This article covers technical details, affected systems, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98723 Overview

CVE-2026-98723 is a Linux kernel vulnerability in the NVMe target (nvmet) subsystem. The flaw stems from an incorrect ordering of uuid_copy() operations inside nvmet_alloc_ctrl(). As a result, nvmet_ctrl_init_pr() snapshots a nil UUID into each per-controller, per-namespace Persistent Reservation (PR) pc_ref before the host identifier is actually populated. This silently downgrades NVMe reservation Preempt and Abort semantics into a plain Preempt operation.

Critical Impact

On NVMe-oF targets with reservations enabled, Preempt and Abort fails to kill the preempted registrant's in-flight I/O. The preempting host receives success while the victim host's writes remain outstanding, breaking fencing guarantees relied upon by shared-storage clusters.

Affected Products

  • Linux kernel versions containing commit 6202783184bf ("nvmet: Improve nvmet_alloc_ctrl() interface and implementation") and commit 7b658153f1b8 ("nvmet: Remove duplicate uuid_copy")
  • NVMe-over-Fabrics target deployments using Persistent Reservations
  • Shared-storage cluster configurations relying on NVMe reservation fencing

Discovery Timeline

  • 2026-10-18 - CVE-2026-98723 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98723

Vulnerability Analysis

The NVMe target subsystem allocates a controller structure using kzalloc(), which zero-initializes ctrl->hostid. During controller setup, nvmet_ctrl_init_pr() captures ctrl->hostid into every pc_ref->hostid field for namespaces that have reservations enabled. The host identifier arrives later in the connect flow via a uuid_copy() from args->hostid, but by that point the PR reference snapshots already contain the nil UUID.

The pc_ref->hostid field has a single consumer: nvmet_pr_set_ctrl_to_abort() matches it against the preempted registrant's hostid to terminate and drain the victim's in-flight I/O during a Preempt and Abort command. Because every snapshot stores the nil UUID, the match never succeeds. The Preempt and Abort command silently degrades into a plain Preempt, violating the fencing contract that shared-storage initiators depend on.

Root Cause

Commit 6202783184bf introduced a second uuid_copy() of args->hostid near the end of nvmet_alloc_ctrl(). Commit 7b658153f1b8 subsequently removed the original copy that sat before nvmet_ctrl_init_pr() instead of removing the newly added duplicate. The surviving copy executes after the controller is published and after PR references take their hostid snapshot, producing a window where every PR reference is initialized with zeros.

Attack Vector

The condition is reached on any NVMe-oF reconnect to a target that exposes a namespace with reservations enabled. A malicious or misbehaving host can issue Preempt and Abort against a competing registrant and receive a success status while the victim continues to write to the shared namespace. In clustered filesystems and database quorum designs that rely on NVMe reservation fencing, this can cause split-brain data corruption rather than a controlled failover. The fix moves the uuid_copy() to execute where the rest of the connect data is consumed, before the controller is published and before nvmet_ctrl_init_pr() takes its snapshot.

No public exploit code is available. See the kernel git references for the full patch series.

Detection Methods for CVE-2026-98723

Indicators of Compromise

  • Unexpected data divergence or filesystem corruption on NVMe-oF shared namespaces after a reservation Preempt and Abort failover event
  • Target-side logs showing successful Preempt and Abort completions that are not followed by I/O drain of the preempted host
  • Cluster-manager fencing operations reported as successful while the fenced initiator continues writing to the same namespace

Detection Strategies

  • Audit running kernel versions on NVMe-oF target hosts and compare against the fixed commits 23194531595c, 5211fed41d7e, and d3d6d7efdacc
  • Correlate NVMe reservation command telemetry with host-side I/O traces to identify Preempt and Abort operations that did not actually terminate in-flight writes
  • Review storage cluster post-mortems for fencing events that failed to prevent concurrent writers

Monitoring Recommendations

  • Enable NVMe target tracing (nvmet tracepoints) to log reservation state transitions and the hostid values recorded in pc_ref structures
  • Alert on filesystem integrity check failures on shared NVMe-oF namespaces following cluster failover events
  • Track kernel package versions across storage fabric nodes and flag hosts running vulnerable commits

How to Mitigate CVE-2026-98723

Immediate Actions Required

  • Apply the upstream kernel patches that reorder the uuid_copy() call before nvmet_ctrl_init_pr() executes
  • Inventory all NVMe-oF target hosts and prioritize patching those exposing namespaces with Persistent Reservations enabled
  • Validate cluster fencing behavior against the patched kernel before returning shared-storage workloads to production

Patch Information

The fix is published in the mainline and stable kernel trees. Reference commits: Kernel commit 23194531595c, Kernel commit 5211fed41d7e, and Kernel commit d3d6d7efdacc. The patch moves the uuid_copy(&ctrl->hostid, &args->hostid) call to the point where the rest of the connect data is consumed, ensuring the hostid is populated before PR references take their snapshot.

Workarounds

  • Disable Persistent Reservations on exported NVMe-oF namespaces where the fencing semantics are not strictly required
  • Avoid Preempt and Abort as a fencing primitive on unpatched targets; use alternative cluster quorum mechanisms until the kernel is updated
  • Restrict NVMe-oF target exposure to trusted initiator networks to reduce the risk of malicious hosts triggering unsafe reservation transitions
bash
# Verify running kernel version on NVMe-oF target hosts
uname -r

# List NVMe target namespaces and check reservation state
ls /sys/kernel/config/nvmet/subsystems/*/namespaces/*/
cat /sys/kernel/config/nvmet/subsystems/*/namespaces/*/resv_enable

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.