CVE-2026-23261: nvme-fc: release admin tagset if init fails
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nvme-fc: release admin tagset if init fails
nvme_fabrics creates an NVMe/FC controller in following path:
nvmf_dev_write()
-> nvmf_create_ctrl()
-> nvme_fc_create_ctrl()
-> nvme_fc_init_ctrl()nvme_fc_init_ctrl() allocates the admin blk-mq resources right after nvme_add_ctrl() succeeds. If any of the subsequent steps fail (changing the controller state, scheduling connect work, etc.), we jump to the fail_ctrl path, which tears down the controller references but never frees the admin queue/tag set. The leaked blk-mq allocations match the kmemleak report seen during blktests nvme/fc.
Check ctrl->ctrl.admin_tagset in the fail_ctrl path and call nvme_remove_admin_tag_set() when it is set so that all admin queue allocations are reclaimed whenever controller setup aborts.
The Linux kernel CVE team has assigned CVE-2026-23261 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.163 with commit b134dead095bc5a58fa2b98b90ae93428cb4b328 Fixed in 6.6.124 with commit 7c54d3f5ebbc5982daaa004260242dc07ac943ea Fixed in 6.12.70 with commit fa301aef50e3f3b5be6ee53457608beae5aa7a01 Fixed in 6.18.10 with commit e810b290922c535feb34bc90ab549446fe94d2a3 Fixed in 6.19 with commit d1877cc7270302081a315a81a0ee8331f19f95c8
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-23261
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/fc.c
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/b134dead095bc5a58fa2b98b90ae93428cb4b328 https://git.kernel.org/stable/c/7c54d3f5ebbc5982daaa004260242dc07ac943ea https://git.kernel.org/stable/c/fa301aef50e3f3b5be6ee53457608beae5aa7a01 https://git.kernel.org/stable/c/e810b290922c535feb34bc90ab549446fe94d2a3 https://git.kernel.org/stable/c/d1877cc7270302081a315a81a0ee8331f19f95c8