{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99516","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.419Z","datePublished":"2026-11-19T14:44:20.410Z","dateUpdated":"2026-11-22T11:08:44.711Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:44.711Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection()\n\nnvmet_fc_ls_create_connection() looks up the association with\nnvmet_fc_find_target_assoc(), which returns it with a reference held,\nand drops that reference as soon as the target queue has been allocated.\niod->assoc is then dereferenced again by nvmet_fc_makeconnid() while\nbuilding the connection id.\n\nThe queue only borrows the pointer and takes no reference of its own.\nOnce the lookup reference is dropped the association is kept alive\nsolely by the reference taken when it was created, so a disconnect LS or\na remote port unregister running concurrently can free it before\nnvmet_fc_makeconnid() reads it:\n\nBUG: KASAN: slab-use-after-free in nvmet_fc_handle_ls_rqst_work (drivers/nvme/target/fc.c:193 drivers/nvme/target/fc.c:1841 drivers/nvme/target/fc.c:1995 drivers/nvme/target/fc.c:2021)\nRead of size 8 at addr ffff888179f1b000 by task kworker/u9:2/1167\n\nHardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\nWorkqueue: nvmet-wq nvmet_fc_handle_ls_rqst_work\nCall Trace:\n <TASK>\n dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120)\n print_report (mm/kasan/report.c:378 mm/kasan/report.c:482)\n kasan_report (mm/kasan/report.c:595)\n nvmet_fc_handle_ls_rqst_work (drivers/nvme/target/fc.c:193 drivers/nvme/target/fc.c:1841 drivers/nvme/target/fc.c:1995 drivers/nvme/target/fc.c:2021)\n process_scheduled_works (kernel/workqueue.c:3322 kernel/workqueue.c:3405)\n worker_thread (kernel/workqueue.c:3486)\n kthread (kernel/kthread.c:436)\n ret_from_fork (archkernel/process.c:158)\n ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n </TASK>\n\nFreed by task 1167 on cpu 0 at 405.998150s:\n kasan_save_track (mm/kasan/common.c:57 mm/kasan/common.c:78)\n kasan_save_free_info (mm/kasan/generic.c:584)\n __kasan_slab_free (mm/kasan/common.c:253 mm/kasan/common.c:285)\n kfree (include/linux/kasan.h:235 mm/slub.c:2705 mm/slub.c:6405 mm/slub.c:6720)\n nvmet_fc_handle_ls_rqst_work (drivers/nvme/target/fc.c:1808 drivers/nvme/target/fc.c:1995 drivers/nvme/target/fc.c:2021)\n process_scheduled_works (kernel/workqueue.c:3322 kernel/workqueue.c:3405)\n worker_thread (kernel/workqueue.c:3486)\n kthread (kernel/kthread.c:436)\n ret_from_fork (archkernel/process.c:158)\n ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n\nThe buggy address belongs to the object at ffff888179f1b000\n which belongs to the cache kmalloc-2k of size 2048\nThe buggy address is located 0 bytes inside of\n freed 2048-byte region [ffff888179f1b000, ffff888179f1b800)\n\nHold the lookup reference until the response has been built, and drop it\non the error path as well."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The Create Connection LS (FCNVME_LS_CREATE_CONNECTION) is the FC frame payload that lpfc_complete_unsol_iocb() hands to lpfc_nvme_unsol_ls_handler(), then lpfc_nvmet_handle_lsreq() calls nvmet_fc_rcv_ls_req(), which queues nvmet_fc_handle_ls_rqst_work() into nvmet_fc_ls_create_connection(). Native FC and FCoE are non-routable SAN fabrics, so the range is Adjacent.\nAC:L - One N_Port sends FCNVME_LS_CREATE_ASSOCIATION, then overlaps FCNVME_LS_CREATE_CONNECTION with FCNVME_LS_DISCONNECT_ASSOC, or with LOGO which calls lpfc_nvmet_invalidate_host(). nvmet_wq is WQ_UNBOUND, so nvmet_fc_delete_assoc_work() can drop the creation kref and the early nvmet_fc_tgt_a_put() in nvmet_fc_ls_create_connection() frees the assoc before nvmet_fc_makeconnid() reads it.\nPR:N - nvmet_fc_ls_create_connection() looks up be64_to_cpu(rqst->associd.association_id) and checks descriptor tags only; there is no capable(), allowed_hosts, or DH-HMAC-CHAP check on the LS path. lpfc_nvme_unsol_ls_handler() accepts the frame once the SID is NLP_STE_MAPPED_NODE or NLP_STE_UNMAPPED_NODE, a state the initiator reaches by its own PLOGI. Zoning limits which N_Port can log in; it is not a host credential.\nUI:N - The initiator issues PLOGI and the Create Association, Create Connection, and Disconnect Association link services itself. The target processes them in nvmet_fc_handle_ls_rqst() without a host user opening a device or acknowledging a prompt.\nS:U - The freed object is the target's struct nvmet_fc_tgt_assoc, allocated in nvmet_fc_alloc_target_assoc() and read in nvmet_fc_makeconnid() inside the host kernel. That leak and any fault remain in the same kernel; no guest/host or IOMMU boundary is crossed.\nC:L - nvmet_fc_makeconnid() loads the eight-byte association_id at offset 0 of the freed kmalloc-2k object and the Create Connection accept stores it in connectid.connection_id. nvmet_fc_xmt_ls_rsp() transmits that qword to the initiator. A qid of 0 does not mask the low half. The primitive is that single qword.\nI:N - The only use of the dangling iod->assoc after nvmet_fc_tgt_a_put() is the association_id load in nvmet_fc_makeconnid(). The KASAN free is that same put, which runs while the new queue's connected flag is still 0, so nvmet_fc_delete_target_queue() returns without kfree() and the following sqhd store writes a live queue.\nA:H - The reported bug is a KASAN slab-use-after-free read of size 8 in nvmet_fc_makeconnid() on the freed kmalloc-2k assoc. KFENCE, KASAN, or slub_debug faults that load, and the initiator can repeat the Create Connection versus Disconnect pair."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/fc.c"],"versions":[{"version":"c53432030d86429dc9fe5adc3d68cb9d1343b0b2","lessThan":"74e01caeea4c16298f28bfb7ea87b0c9835e1777","status":"affected","versionType":"git"},{"version":"c53432030d86429dc9fe5adc3d68cb9d1343b0b2","lessThan":"6324f087caf817f00840baa82664dec3c5634f1c","status":"affected","versionType":"git"},{"version":"c53432030d86429dc9fe5adc3d68cb9d1343b0b2","lessThan":"5ee2e99021c5ec3e89aa6dc2fc1ad5ed46446523","status":"affected","versionType":"git"},{"version":"c53432030d86429dc9fe5adc3d68cb9d1343b0b2","lessThan":"2c29f8c9b9e598c09fa50aa02200136a107f6b3f","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/target/fc.c"],"versions":[{"version":"4.10","status":"affected"},{"version":"0","lessThan":"4.10","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/74e01caeea4c16298f28bfb7ea87b0c9835e1777"},{"url":"https://git.kernel.org/stable/c/6324f087caf817f00840baa82664dec3c5634f1c"},{"url":"https://git.kernel.org/stable/c/5ee2e99021c5ec3e89aa6dc2fc1ad5ed46446523"},{"url":"https://git.kernel.org/stable/c/2c29f8c9b9e598c09fa50aa02200136a107f6b3f"}],"title":"nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection()","x_generator":{"engine":"bippy-1.2.0"}}}}