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

CVE-2026-98726: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98726 is a use-after-free flaw in Linux kernel's nvme-multipath that allows buffer overflow through ANA log parsing. This post explains the technical details, affected versions, and mitigation steps.

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-98726 Overview

CVE-2026-98726 is an integer underflow vulnerability in the Linux kernel's nvme-multipath subsystem. The flaw affects the Asymmetric Namespace Access (ANA) log parser, which validates group descriptors and namespace identifiers returned by an NVMe controller. Both bounds checks subtract an attacker-influenced object size from ana_log_size before comparing the current offset. When the untrusted object size exceeds the buffer, the size_t subtraction underflows and the parser reads beyond ana_log_buf. The upstream fix compares each object size against the remaining buffer and validates the current offset before any subtraction.

Critical Impact

A malicious or malfunctioning NVMe controller can trigger out-of-bounds kernel memory reads in the multipath ANA log parser, leading to information disclosure or kernel instability.

Affected Products

  • Linux kernel builds containing the nvme-multipath ANA log parser prior to the fix commits listed below
  • Distributions shipping affected stable kernel branches referenced by the kernel.org commit series
  • Systems configured with NVMe multipath enabled (CONFIG_NVME_MULTIPATH)

Discovery Timeline

  • 2026-10-18 - CVE-2026-98726 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-98726

Vulnerability Analysis

The NVMe specification uses the ANA log page to describe path state for multipath-capable controllers. The Linux kernel allocates ana_log_buf sized according to the number of ANA groups reported by Identify Controller. The ANA log header and each group descriptor then independently declare counts of groups and namespace identifiers that the parser walks.

The affected code path subtracts the attacker-controlled object size from the total ana_log_size and compares the result against the current offset. Because ana_log_size is an unsigned size_t, a declared object larger than the buffer produces a very large positive value instead of a negative one. The offset comparison then succeeds, and the parser dereferences memory outside ana_log_buf.

Root Cause

The root cause is an unsigned integer underflow in a bounds check (an [Integer Underflow] pattern related to [CWE-191]). Trusting a device-supplied length field without first validating it against the remaining buffer allows the subtraction ana_log_size - object_size to wrap around. Subsequent pointer arithmetic walks a truncated group descriptor or an oversized namespace ID array.

Attack Vector

Exploitation requires a controller that returns malformed ANA log data. This can occur with a malicious or compromised NVMe target, including NVMe over Fabrics (NVMe-oF) endpoints reachable across a network. A rogue target that advertises inconsistent group counts or descriptor lengths causes the host kernel to read beyond the allocated log buffer during multipath initialization or ANA update processing.

No verified public exploit code is available. The upstream remediation is documented in the kernel git commits 03a0c21, 3045128, 49e8a32, 63fa2d9, and e5cdb0c.

Detection Methods for CVE-2026-98726

Indicators of Compromise

  • Kernel log entries referencing nvme-multipath, ANA log parsing errors, or truncated group descriptors on hosts attached to NVMe-oF targets
  • Unexpected KASAN or slab out-of-bounds read reports originating from the NVMe multipath code path
  • NVMe controller resets or path state churn correlated with Identify Controller or ANA log retrieval commands

Detection Strategies

  • Inventory Linux hosts with CONFIG_NVME_MULTIPATH=y and compare running kernel versions against the patched stable releases referenced in the kernel.org commit series
  • Review NVMe-oF fabric topology for untrusted or shared targets that could return crafted ANA log data
  • Correlate dmesg output with path failover events to surface anomalous ANA parsing behavior

Monitoring Recommendations

  • Forward kernel ring buffer messages to a centralized logging pipeline and alert on nvme subsystem errors
  • Monitor for repeated controller reconnection or namespace rescans that may indicate malformed ANA responses
  • Track package versions of kernel images across the fleet to confirm patch rollout coverage

How to Mitigate CVE-2026-98726

Immediate Actions Required

  • Apply the stable kernel update that includes the fix commits 03a0c21f0fd7, 3045128294d3, 49e8a3224c91, 63fa2d9c9c37, or e5cdb0c0a51e to all affected hosts
  • Restrict NVMe-oF connectivity to trusted, authenticated targets using network segmentation and transport-layer authentication
  • Audit storage fabrics for unmanaged or legacy NVMe targets that could emit malformed ANA log pages

Patch Information

The fix validates the current offset before the first subtraction and compares each object size with the remaining buffer. Patched sources are available in the following commits: 03a0c21, 3045128, 49e8a32, 63fa2d9, and e5cdb0c. Rebuild or redeploy distribution kernels built from these commits.

Workarounds

  • Where patching is delayed, disable NVMe multipath (nvme_core.multipath=N) on hosts that do not require it to avoid the vulnerable parser path
  • Avoid connecting hosts to untrusted NVMe-oF subsystems until kernels are updated
  • Enforce transport authentication (for example, TLS or DH-HMAC-CHAP for NVMe-TCP) to reduce exposure to rogue controllers
bash
# Verify running kernel and nvme-multipath status
uname -r
cat /sys/module/nvme_core/parameters/multipath

# Temporarily disable NVMe multipath until patched kernel is deployed
# Add to kernel command line via bootloader, then reboot:
#   nvme_core.multipath=N

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.