Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100459; b=TCQSYWuHImvoiqfdruGmp2H4Dezw2jMC1QZ5AO2eKxNd80qDu9yuSHQmUr1WheUx8NHF 7kBCOsKAfrzBHG+cVBetICx76CZB7dmr1UlpN61DBh6txQ7CW5POag9rrEUXefh9sD0Vu fTEEN4yn1ATWvTPYDYxupNb824POiFHqqE/IaYV4GCzwxqu1q5bNxC+RHubMAXxxlBkPZ MRBOrL15gJ+aDJl8LMR0xRLst1SBK3e/BVN+/42mO8ca+LVKqix9ezuGMIRSHCVYvNwS3 GT6ypVmAfeTLwiVsrEGMHniVNymhqOmTG7qv4xMz3NTbZKVHWXRcN88Kl24KPqVEVwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100459; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=eEvkw26GsjPJ2+KQBFMvv9HZSjhcKUNBqtRCzH0yx60=; b=gVYfEFS0FkQ4tFOoAGQOM/kHdhkWE7SSfS00Z290/vTERPJMxk1AFZz/7NpudVMg8lb3 OlqoZBq5maWHvW3dDzcbST4oV2W1S1Akd26XPDpPQDzI7n/WUcpltg/k5sPO8qzs6BEYe KogdowcV3gz68fvZYyQAhfVH0d2pTWC90w/VUlIeebAL83HfDzucvwcVn5QKbPE4vFaou 5XkiDSMuACJUrATgv5sX1hvYLqsE5fhqtPWwNmbn9CA2rmL0EZCbrKMuQDZLlMFAmlcux WfKsAUySuRXLS/YeVwjU7abvW3R0CKp1t9D6wscAwP5Lc95MKm6peqz6ljdNWvQ5MMw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=17eLE8FZ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2D59606A32A for ; Thu, 19 Nov 2026 15:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=17eLE8FZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 612461F000C4; Thu, 19 Nov 2026 15:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100459; bh=eEvkw26GsjPJ2+KQBFMvv9HZSjhcKUNBqtRCzH0yx60=; h=From:To:Cc:Subject:Date:Reply-To; b=17eLE8FZHR+YvkV5Ud01UVCOMQYANOJrvq5vikr4dntV7mnahOxIUmuMHDk/aMDC7 imawjVCdhwPI0Qm9xk9oHzn0fiFdscO1B9EwzQY9Fd3+msH718y/QR4xF0/oiJ9V90 bcYRo2RQJKvN+B7R1BgEjA4PPdR7LfO6SxvYXJDw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99516: nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection() Date: Thu, 19 Nov 2026 15:26:54 +0100 Message-ID: <2026111919-CVE-2026-99516-549d@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4869; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZZYfADdZXbgkEbRJ1sFuGkXDX+T/fmttTedPea8WzVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Sa/aBP3iXpmfKvgmciqrxoGrw6enH76130No025N rGLBTf87ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJLF3JMM92w8GqHmZbBaG0 7QtnXrp/ItH67AqGuRJrWmekuYh/eqq/I/hFdrP4kj//ugE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: fix use-after-free in nvmet_fc_ls_create_connection() nvmet_fc_ls_create_connection() looks up the association with nvmet_fc_find_target_assoc(), which returns it with a reference held, and drops that reference as soon as the target queue has been allocated. iod->assoc is then dereferenced again by nvmet_fc_makeconnid() while building the connection id. The queue only borrows the pointer and takes no reference of its own. Once the lookup reference is dropped the association is kept alive solely by the reference taken when it was created, so a disconnect LS or a remote port unregister running concurrently can free it before nvmet_fc_makeconnid() reads it: BUG: 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) Read of size 8 at addr ffff888179f1b000 by task kworker/u9:2/1167 Hardware 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 Workqueue: nvmet-wq nvmet_fc_handle_ls_rqst_work Call Trace: dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120) print_report (mm/kasan/report.c:378 mm/kasan/report.c:482) kasan_report (mm/kasan/report.c:595) 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) process_scheduled_works (kernel/workqueue.c:3322 kernel/workqueue.c:3405) worker_thread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) ret_from_fork (archkernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) Freed by task 1167 on cpu 0 at 405.998150s: kasan_save_track (mm/kasan/common.c:57 mm/kasan/common.c:78) kasan_save_free_info (mm/kasan/generic.c:584) __kasan_slab_free (mm/kasan/common.c:253 mm/kasan/common.c:285) kfree (include/linux/kasan.h:235 mm/slub.c:2705 mm/slub.c:6405 mm/slub.c:6720) nvmet_fc_handle_ls_rqst_work (drivers/nvme/target/fc.c:1808 drivers/nvme/target/fc.c:1995 drivers/nvme/target/fc.c:2021) process_scheduled_works (kernel/workqueue.c:3322 kernel/workqueue.c:3405) worker_thread (kernel/workqueue.c:3486) kthread (kernel/kthread.c:436) ret_from_fork (archkernel/process.c:158) ret_from_fork_asm (arch/x86/entry/entry_64.S:245) The buggy address belongs to the object at ffff888179f1b000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 0 bytes inside of freed 2048-byte region [ffff888179f1b000, ffff888179f1b800) Hold the lookup reference until the response has been built, and drop it on the error path as well. The Linux kernel CVE team has assigned CVE-2026-99516 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 6.12.117 with commit 74e01caeea4c16298f28bfb7ea87b0c9835e1777 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 6.18.61 with commit 6324f087caf817f00840baa82664dec3c5634f1c Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 7.3.2 with commit 5ee2e99021c5ec3e89aa6dc2fc1ad5ed46446523 Issue introduced in 4.10 with commit c53432030d86429dc9fe5adc3d68cb9d1343b0b2 and fixed in 7.4-rc1 with commit 2c29f8c9b9e598c09fa50aa02200136a107f6b3f 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-99516 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/target/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/74e01caeea4c16298f28bfb7ea87b0c9835e1777 https://git.kernel.org/stable/c/6324f087caf817f00840baa82664dec3c5634f1c https://git.kernel.org/stable/c/5ee2e99021c5ec3e89aa6dc2fc1ad5ed46446523 https://git.kernel.org/stable/c/2c29f8c9b9e598c09fa50aa02200136a107f6b3f