Skip to contentSkip to conversation

CVE-2026-98814: nvme: fix command effects log lifetime for multipath heads

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

nvme: fix command effects log lifetime for multipath heads

KASAN reported a use-after-free when an I/O passthrough command was sent through a multipath namespace head after the controller path that first created the head had been removed:

  BUG: KASAN: slab-use-after-free in nvme_command_effects+0x192/0x200 [nvme_core]
  Read of size 4 at addr ffff888141b14400 by task nvme/19811
  nvme_command_effects+0x192/0x200 [nvme_core]
  nvme_cmd_allowed+0x7e/0x1b0 [nvme_core]
  nvme_user_cmd.constprop.0+0x1b5/0x450 [nvme_core]
  nvme_ns_head_chr_ioctl+0xf4/0x2a0 [nvme_core]

Move the log cache to the subsystem, with one entry per command set. Both controllers and namespace heads hold subsystem references, keeping their log pointers valid until subsystem release.

The Linux kernel CVE team has assigned CVE-2026-98814 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.9 with commit be93e87e780253780df9bb6ecc9bc1199b0d94c3 and fixed in 7.2.10 with commit 351d1c47e45b2b35780d0548b1012d7242ba298d
	Issue introduced in 5.9 with commit be93e87e780253780df9bb6ecc9bc1199b0d94c3 and fixed in 7.3-rc6 with commit 72ece656abd4de8645a421fb482d7a11e6533a45

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98814

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/351d1c47e45b2b35780d0548b1012d7242ba298d
	https://git.kernel.org/stable/c/72ece656abd4de8645a421fb482d7a11e6533a45