CVE-2026-142939

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142940In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure CVE-2026-142941In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix deadlock in inline-data truncate transactions Updating an iCVE-2026-142942In the Linux kernel, the following vulnerability has been resolved: bpf: Destroy callee-local dynptrs on subprog return A data slice is vaCVE-2026-142943In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp3x-es83xx: Keep an owned codec device reference acpi_getCVE-2026-142944In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp-es8336: Use an owned codec device reference acpi_get_fiCVE-2026-142945In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() RCVE-2026-142946In the Linux kernel, the following vulnerability has been resolved: ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() RepCVE-2026-142947In the Linux kernel, the following vulnerability has been resolved: cxl/core: Skip einj_inject creation when devm_add_action_or_reset() faiCVE-2026-142948In the Linux kernel, the following vulnerability has been resolved: i2c: designware: queue only one read command for block reads i2c_dw_xfCVE-2026-142949In the Linux kernel, the following vulnerability has been resolved: tcp: fix NULL pointer dereference when restarting a Fast Open listener CVE-2026-142950In the Linux kernel, the following vulnerability has been resolved: nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem() CoCVE-2026-142951In the Linux kernel, the following vulnerability has been resolved: sctp: fix skb_over_panic when adding addresses with a pending delete of
CVE-2026-142939: Unscored | Vulnix