Junglewise Threat Intelligence

CVE-2025-40261: Linux kernel NVMe-FC use-after-free in nvme_fc_delete_ctrl

CVE-2025-40261 · Severity: info · CVSS 5.5 · Published 2025-12-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's NVMe over Fibre Channel (NVMe-FC) driver could allow a local user to cause a system crash. The issue occurs during the deletion of a storage controller, where background error-handling tasks are not properly stopped before the system attempts to free memory. This leads to memory corruption and a kernel panic, potentially disrupting operations and causing a denial of service.

Technical details

A use-after-free and list corruption vulnerability exists in the Linux kernel's NVMe-FC driver (drivers/nvme/host/fc.c). The function nvme_fc_delete_ctrl() originally called cancel_work_sync() for the ioerr_work workqueue before calling nvme_fc_delete_association(). However, nvme_fc_delete_association() waits for pending I/O, and subsequent I/O errors can re-queue ioerr_work after the initial cancellation. If this work runs after the nvme_fc_ctrl object is freed, it results in list_del corruption and a kernel BUG at lib/list_debug.c. The fix moves the cancellation call to after the association deletion to ensure no further work can be queued. This is a local denial-of-service vulnerability requiring the ability to trigger controller deletion or specific I/O error conditions.

Affected products

  • Linux Linux kernel 6.12.0

Timeline

  • 2025-11-17: patched: Initial fix committed to mainline kernel.
  • 2025-12-04: disclosed: CVE-2025-40261 published.

References