# CVE-2026-98815: nvme: fix cdev lifetime

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-10-18T15:49:03.248Z
- **Modified:** 2026-10-26T07:17:11.483Z

## Who should check

- Anyone running Linux \>= 2637baed78010eeaae274feb5b99ce90933fadfb, \< 98b09ad7934482e64db4b4477d91e3bbf43adf4c; \>= 2637baed78010eeaae274feb5b99ce90933fadfb, \< 9952f3882ecba709092379b71e02b09762b26f96
- Anyone running Linux 5.13

## Description

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

nvme: fix cdev lifetime

Sashiko bot reported a potential problem for the cdev lifetime in \[0\]
- the code there is heavily based on the NVMe code.

Currently the NS head .open and .release file\_operations methods take and
put a reference to the nvme\_ns\_head to ensure that this structure does not
disappear while we open fds for that cdev.

In multipath mode, when we teardown the NS head, we call nvme\_cdev\_del() -\>
cdev\_device\_del() -\> cdev\_del(). However after cdev\_del() returns, cdevs
already open will remain and their fops will still be callable. As such,
we can still reference the cdev after the nvme\_ns\_head reference count
drops to 0 (and is freed).

This can be shown with an application which delays between opening the cdev
and issuing the ioctl while the NS head is being torn down:

\# ./ioctl\_file /dev/ng1n1 &
\# waiting 10 seconds ....

\# ./ini\_nvme\_teardown.sh
\[   21.221718\] nvme nvme1: Removing ctrl: NQN "nvme-test-target"
\[   21.274609\] nvme nvme2: Removing ctrl: NQN "nvme-test-target"
\# now going to issue ioctl ....
\[   26.549285\] ==================================================================
\[   26.550841\] BUG: KASAN: slab-use-after-free in cdev\_put.part.0+0x3d/0x40
\[   26.552352\] Read of size 8 at addr ffff88811e7fa170 by task ioctl\_file/237
\[   26.553805\]
\[   26.554227\] CPU: 3 UID: 0 PID: 237 Comm: ioctl\_file Not tainted 7.2.0-rc1-00004-g6852a10e32d4 \#921 PREEMPT(lazy)
\[   26.554236\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[   26.554241\] Call Trace:
\[   26.554245\]  \<TASK\>
\[   26.554248\]  dump\_stack\_lvl+0x68/0xa0
\[   26.554266\]  print\_report+0x10d/0x5d0
\[   26.554276\]  ? \_\_virt\_addr\_valid+0x21d/0x3f0
\[   26.554287\]  ? cdev\_put.part.0+0x3d/0x40
\[   26.554292\]  kasan\_report+0x96/0xd0
\[   26.554300\]  ? cdev\_put.part.0+0x3d/0x40
\[   26.554307\]  cdev\_put.part.0+0x3d/0x40
\[   26.554313\]  \_\_fput+0x7bc/0xa70
\[   26.554322\]  fput\_close\_sync+0xd8/0x190
\[   26.554328\]  ? \_\_pfx\_fput\_close\_sync+0x10/0x10
\[   26.554337\]  \_\_x64\_sys\_close+0x79/0xd0
\[   26.554344\]  do\_syscall\_64+0x117/0x6b0
\[   26.554351\]  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
\[   26.554358\] RIP: 0033:0x7f938c067727
\[   26.554364\] Code: 48 89 fa 4c 89 df e8 28 ad 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 \<5bf
\[   26.554369\] RSP: 002b:00007fff49f05980 EFLAGS: 00000202 ORIG\_RAX: 0000000000000003
\[   26.554376\] RAX: ffffffffffffffda RBX: 00007f938bfd7780 RCX: 00007f938c067727
\[   26.554380\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
\[   26.554383\] RBP: 00007fff49f05a10 R08: 0000000000000000 R09: 0000000000000000
\[   26.554386\] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
\[   26.554389\] R13: 00007fff49f05b40 R14: 00007f938c207000 R15: 000055c148471d78
\[   26.554397\]  \</TASK\>
\[   26.554399\]
\[   26.575612\] Allocated by task 100:
\[   26.575871\]  kasan\_save\_stack+0x24/0x50
\[   26.576157\]  kasan\_save\_track+0x14/0x30
\[   26.576418\]  \_\_kasan\_kmalloc+0x7f/0x90
\[   26.576668\]  \_\_kmalloc\_noprof+0x281/0x6c0
\[   26.576938\]  nvme\_alloc\_ns+0x7f7/0x3170
\[   26.577206\]  nvme\_scan\_ns+0x508/0x880
\[   26.577449\]  async\_run\_entry\_fn+0x8c/0x350
\[   26.577723\]  process\_scheduled\_works+0xb6f/0x1a00
\[   26.578034\]  worker\_thread+0x4ad/0xb40
\[   26.578283\]  kthread+0x34f/0x450
\[   26.578501\]  ret\_from\_fork+0x563/0x800
\[   26.578752\]  ret\_from\_fork\_asm+0x1a/0x30
\[   26.579012\]
\[   26.579124\] Freed by task 237:
\[   26.579335\]  kasan\_save\_stack+0x24/0x50
\[   26.579596\]  kasan\_save\_track+0x14/0x30
\[   26.579855\]  kasan\_save\_free\_info+0x3a/0x60
\[   26.580131\]  \_\_kasan\_slab\_free+0x43/0x70
\[   26.580388\]  kfree+0x321/0x500
\[   26.580591\]  nvme\_ns\_head\_chr\_release+0x39/0x50
\[   26.580883\]  \_\_fput+0x352/0xa70
\[   26.581095\]  fput\_close\_sync+0xd8/0x190
\[   26.581350\]  \_\_x64\_sys\_close+0x79/0xd0
\[   26.581595\]  do\_syscall\_64+0x117/0x6b0
\[   26.581842\]  entry\_SYSCAL
---truncated---

## Affected and fixed versions

- Linux: \>= 2637baed78010eeaae274feb5b99ce90933fadfb, \< 98b09ad7934482e64db4b4477d91e3bbf43adf4c; \>= 2637baed78010eeaae274feb5b99ce90933fadfb, \< 9952f3882ecba709092379b71e02b09762b26f96 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 9952f3882ecba709092379b71e02b09762b26f96 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98815. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98815.md
Affected: Linux >= 2637baed78010eeaae274feb5b99ce90933fadfb, < 98b09ad7934482e64db4b4477d91e3bbf43adf4c; >= 2637baed78010eeaae274feb5b99ce90933fadfb, < 9952f3882ecba709092379b71e02b09762b26f96; Linux 5.13
Fixed in: Linux 98b09ad7934482e64db4b4477d91e3bbf43adf4c, Linux 9952f3882ecba709092379b71e02b09762b26f96

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98815 being exploited?

There is no confirmed exploitation: CVE-2026-98815 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98815?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98815?

Linux \>= 2637baed78010eeaae274feb5b99ce90933fadfb, \< 98b09ad7934482e64db4b4477d91e3bbf43adf4c; \>= 2637baed78010eeaae274feb5b99ce90933fadfb, \< 9952f3882ecba709092379b71e02b09762b26f96; Linux 5.13.

### Is there a fix for CVE-2026-98815?

Yes. Fixed in Linux 98b09ad7934482e64db4b4477d91e3bbf43adf4c, Linux 9952f3882ecba709092379b71e02b09762b26f96. Upgrade Linux to 9952f3882ecba709092379b71e02b09762b26f96 or later.

### How do I check if I'm affected by CVE-2026-98815?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/98b09ad7934482e64db4b4477d91e3bbf43adf4c>
- other: <https://git.kernel.org/stable/c/9952f3882ecba709092379b71e02b09762b26f96>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98815>

HTML: <https://flawdb.com/CVE-2026-98815> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98815>
