nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl()
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Partial Red Hat: 4 without a fix
No CVSS vector from any source. Fix status from CNA and Red Hat.
Summary
In the Linux kernel nvmet-fc target, nvmet_fc_delete_ctrl() took a reference on the association, queued del_work, then dropped that reference while nvmet_port_del_ctrls() held subsys->lock. If del_work ran to completion before the put, the put released the last reference, and nvmet_ctrl_free() tried to take subsys->lock again. The result is a recursive locking hang: removing the configfs link leaves rm stuck in D state, as the reporter reproduced with fcloop. CISA has not added it to KEV, and the references contain no exploit link.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: don't drop the last assoc reference in nvmet_fc_delete_ctrl() syzbot hit a recursive locking report on subsys->lock when a subsystem is unlinked from an FC port. nvmet_port_del_ctrls() holds subsys->lock while it calls ->delete_ctrl() for each controller. nvmet_fc_delete_ctrl() grabs a reference on the association, queues del_work and then drops the reference. If del_work gets to run to completion before that put, ours is the last reference. Freeing the assoc tears down the queues, the last nvmet_cq_put() drops the last ctrl reference, and nvmet_ctrl_free() goes for subsys->lock again: WARNING: possible recursive locking detected ... nvmet_ctrl_free+0xa6/0x8e0 drivers/nvme/target/core.c:1766 nvmet_cq_put+0x158/0x200 drivers/nvme/target/core.c:848 nvmet_fc_target_assoc_free+0x418/0x2220 drivers/nvme/target/fc.c:1173 nvmet_fc_delete_ctrl+0x717/0x7e0 drivers/nvme/target/fc.c:1581 nvmet_port_del_ctrls+0xfb/0x150 drivers/nvme/target/core.c:311 nvmet_port_subsys_drop_link+0x1e8/0x310 drivers/nvme/target/configfs.c:1119 It's a real hang, not only a lockdep warning. I reproduced it with fcloop by putting an msleep() before the put: rm on the configfs link gets stuck in D state for good. I don't think we need that reference at all. del_work does list_del_rcu() and synchronize_rcu() before it drops the initial reference, so an assoc we find on assoc_list can't go away before rcu_read_unlock(). nvmet_fc_schedule_delete_assoc() doesn't sleep, so just call it inside the RCU section and get rid of the get/put. If the assoc is already being deleted, terminating is set and the call is a no-op, which matches what happened before when the get failed. With the same msleep() in place the patched kernel unlinks cleanly and the assoc is freed from the workqueue.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.15.150 to before 5.15.226; 6.1.80 to before 6.1.193; 6.6.19 to before 6.6.163; 6.7.7 to before 6.8 | 5.15.226, 6.1.193, 6.6.163, 6.8 | Patch available | CNA |
| Linux | Linux | 6.8 and later | 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 5.15.150 to before 5.15.226; 6.1.80 to before 6.1.193; 6.6.19 to before 6.6.163; 6.7.7 to before 6.8 Fixed in 5.15.226, 6.1.193, 6.6.163, 6.8 Patch available CNA
- Linux VendorLinux Affected 6.8 and later Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1 Patch available CNA
Remediation
Update to a fixed kernel: 5.15.226, 6.1.193, 6.6.163 or 6.8 on the affected branches, and 6.12.119, 6.18.65, 7.3.6 or 7.4-rc1 for the 6.8 line. The fix removes the reference entirely: del_work calls list_del_rcu() and synchronize_rcu() before it drops the initial reference, so an association found on assoc_list stays valid until rcu_read_unlock(). nvmet_fc_schedule_delete_assoc() does not sleep, so it is called inside the RCU section without the get and put. Red Hat rates it Moderate, and RHEL 9, RHEL 10, OpenShift Container Platform 4 and OpenShift Container Platform 5 have no fix available yet.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.8
- Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-12-03 Threatist record created from CVE-2026-142939
- 2026-12-03 Alias added: GHSA-9r8c-6vcp-7g96
- 2026-12-04 Affected versions changed · Red Hat
- 2026-12-04 CVSS score added · Red Hat
- 2026-12-04 Affected versions changed · Red Hat
- 2026-12-04 Affected versions changed · Red Hat
References
Other 7
- https://git.kernel.org/stable/c/e813b4a80292ea70aebdcb0b1b4f30b68bc0b266
- https://git.kernel.org/stable/c/1d8ff6495673462f58b4b0352620fc6db89bd10f
- https://git.kernel.org/stable/c/0b373291c7b56a2807c9260da163649728ccfb65
- https://git.kernel.org/stable/c/b5bfeef31d29972178726ad04721f75731a3284f
- https://git.kernel.org/stable/c/01b4359d57b76c23c0762f8231e1676ed9f87f7b
- https://git.kernel.org/stable/c/c2cc01c130494e39e61775817d8053b31e471cb7
- https://git.kernel.org/stable/c/165301b5e2fd765fa05ea1044bbca8ba79820197
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-142939 · CVE Program
- CVE-2026-142939 · NVD
- FIRST EPSS
- GHSA-9r8c-6vcp-7g96 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-142939 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences