HIGH Introduced in 5.9
nvme MultipathHead UAF
CVE-2026-98814
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
Risk summary
A local attacker with access to an NVMe character device can trigger a use-after-free in the command effects log when using multipath namespace heads. This allows kernel memory corruption leading to privilege escalation or denial of service. Systems with NVMe multipath configurations are affected.
Vulnerability analysis
The NVMe driver stored command effects logs per controller, but multipath namespace heads retained pointers to these logs. When the controller that originally created a namespace head was removed, its log cache was freed while the head still referenced it. Subsequent I/O passthrough commands through the head accessed the freed memory. The fix moves the log cache to the subsystem object, which is reference-counted by both controllers and namespace heads, ensuring logs remain valid until the subsystem is fully released.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 5.9 | 7.2.10 | 351d1c47e45b |
| mainline | 5.9 | 7.3 | 72ece656abd4 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Affected — no CIP fix yet (latest 6.12.118-cip136) |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |