CVE-2026-99714: nvme: Do not drop the cdev reference twice when cdev_device_add() fails

Published Nov 20, 2026
·
Updated

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

nvme: Do not drop the cdev reference twice when cdevdeviceadd() fails

Since commit 9952f3882ecb ("nvme: fix cdev lifetime"), nvmeaddnscdev() and nvmeaddnsheadcdev() take a reference to the namespace (or namespace head) before calling nvmecdevadd(), to be dropped by the char device's release, nvmecdevrel(), and drop it themselves when nvmecdevadd() fails. But when cdevdeviceadd() fails, nvmecdevadd() has already put the device, and nvmecdevrel() has already dropped that reference: the caller drops it a second time.

With one allocation failure injected into cdevdeviceadd() for a namespace on an NVMe over loop controller, deleting the controller gives, with native multipath:

BUG: KASAN: slab-use-after-free in nvmeputnshead+0x21/0x140 Write of size 4 at addr ff1100000a4ea078 by task init/1 nvmeputnshead nvmeputns nvmeremovenamespaces nvmedodeletectrl nvmedeletectrlsync nvmesysfsdelete Freed by task 1: kfree nvmensremove nvmeremovenamespaces refcountt: underflow; use-after-free.

Take the reference in nvmecdevadd() instead, right before cdevdeviceadd(), and let the callers neither take nor drop it. Add nvmeisnscdev() for the check that nvmecdevrel() and nvmecdevadd() now share.

Affected Software

4 affected componentsFixes available
linux/kernel>=7.2.10<7.3
7.3
linux/kernel>=7.3.0<7.3.5
7.3.5
debian/linux*
debian/linux<=7.3.4-1
6.1.176-16.1.192-26.12.107-16.12.117-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.5-1

Event History

Nov 20, 2026
CVE Published
via MITRE·05:50 AM
Data Sourced
via MITRE·05:50 AM
Description
Data Sourced
via OSV·05:50 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel NVMe subsystem may be exposed when namespace character-device creation fails. The reported reproducer uses an NVMe over loop controller with native multipath enabled.

2

What condition is required to trigger the use-after-free?

The failure path requires cdev_device_add() to fail while adding an NVMe namespace or namespace-head character device. The provided reproducer injects a single allocation failure into cdev_device_add(), then deletes the controller.

3

Is this likely to occur during ordinary successful NVMe operation?

The described flaw is in the error-handling path for character-device registration, not the normal successful registration path. The data only demonstrates it after an injected allocation failure followed by controller deletion.

4

What symptoms indicate the issue may have been triggered?

Kernel diagnostics can include a refcount underflow and a KASAN slab-use-after-free report involving nvme_put_ns_head, nvme_put_ns, and NVMe namespace removal during controller deletion.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203