Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 997D134AAE3 for ; Tue, 16 Dec 2025 14:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896437; cv=none; b=F8gBtDbWOajNQuGlwrHV+PpdDP7xCPXkT0scy9QE2BRg3NlQOPofvJa0Y2q1tvOKiT5k3t+UQVeGJ5aVGVCWiMAycP0CeF2hrPmfiRWeZ70wJFQGpdXHnXikMfYSklB+0zB3C8cBnKJXDRn6mZ9d/Y9jUUmCSADXHIsMxUtTciE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896437; c=relaxed/simple; bh=8BFaOjK5jJRyg3i6vyzkvXAMGtxDAo+Z2fdddURNe9A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E9dzAeEI6nRz0w0CO5KXHEJX7rqqd4WuY64bswO1DwEKnO/RVHKeUS01nVmAVPDcE/vBQwimDAlgQQCCMroxNYodbvYeCWFOLEuLfZvRmxrlBJ8QO8o1xq1YiZeN3ZRB0f8vorYrJ6sHrpt+I1i1oMolFP1ax5tktLupQy01oos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ANgqROUj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ANgqROUj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D42BC19422; Tue, 16 Dec 2025 14:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765896436; bh=8BFaOjK5jJRyg3i6vyzkvXAMGtxDAo+Z2fdddURNe9A=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ANgqROUjCA1KuP1hAN7h4P2a8PxZ4IS0N57/hjNDPhWPYQNCX/7qyjmtzKD0d96P1 b3UbvCQxxXHNn3pXeNg3W2mJDOynpfaJHoO/BuePCG9VkHny7VBDtY9blUG/OIVR05 jq6iG0dmJieR0mkqZTv2KV5hJm17BI/A450yw940= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68265: nvme: fix admin request_queue lifetime Date: Tue, 16 Dec 2025 15:47:10 +0100 Message-ID: <2025121609-CVE-2025-68265-4800@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4148; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vXxSTNC0ELg6QURnH0NET+5zkw80ahh6FRy3gYWc9K4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOBW9Drs4TUeoLiXv//2Bx3svooFnf73+o19hy+FR1B F+KzmOpjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhISR7D/EiGvW4Z65pOf3Q+ dWF+w6s2qcuWFQxzuHS2/LSdFbDB85XA3LcK8nPLE/flAAA= 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: nvme: fix admin request_queue lifetime The namespaces can access the controller's admin request_queue, and stale references on the namespaces may exist after tearing down the controller. Ensure the admin request_queue is active by moving the controller's 'put' to after all controller references have been released to ensure no one is can access the request_queue. This fixes a reported use-after-free bug: BUG: KASAN: slab-use-after-free in blk_queue_enter+0x41c/0x4a0 Read of size 8 at addr ffff88c0a53819f8 by task nvme/3287 CPU: 67 UID: 0 PID: 3287 Comm: nvme Tainted: G E 6.13.2-ga1582f1a031e #15 Tainted: [E]=UNSIGNED_MODULE Hardware name: Jabil /EGS 2S MB1, BIOS 1.00 06/18/2025 Call Trace: dump_stack_lvl+0x4f/0x60 print_report+0xc4/0x620 ? _raw_spin_lock_irqsave+0x70/0xb0 ? _raw_read_unlock_irqrestore+0x30/0x30 ? blk_queue_enter+0x41c/0x4a0 kasan_report+0xab/0xe0 ? blk_queue_enter+0x41c/0x4a0 blk_queue_enter+0x41c/0x4a0 ? __irq_work_queue_local+0x75/0x1d0 ? blk_queue_start_drain+0x70/0x70 ? irq_work_queue+0x18/0x20 ? vprintk_emit.part.0+0x1cc/0x350 ? wake_up_klogd_work_func+0x60/0x60 blk_mq_alloc_request+0x2b7/0x6b0 ? __blk_mq_alloc_requests+0x1060/0x1060 ? __switch_to+0x5b7/0x1060 nvme_submit_user_cmd+0xa9/0x330 nvme_user_cmd.isra.0+0x240/0x3f0 ? force_sigsegv+0xe0/0xe0 ? nvme_user_cmd64+0x400/0x400 ? vfs_fileattr_set+0x9b0/0x9b0 ? cgroup_update_frozen_flag+0x24/0x1c0 ? cgroup_leave_frozen+0x204/0x330 ? nvme_ioctl+0x7c/0x2c0 blkdev_ioctl+0x1a8/0x4d0 ? blkdev_common_ioctl+0x1930/0x1930 ? fdget+0x54/0x380 __x64_sys_ioctl+0x129/0x190 do_syscall_64+0x5b/0x160 entry_SYSCALL_64_after_hwframe+0x4b/0x53 RIP: 0033:0x7f765f703b0b Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d dd 52 0f 00 f7 d8 64 89 01 48 RSP: 002b:00007ffe2cefe808 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffe2cefe860 RCX: 00007f765f703b0b RDX: 00007ffe2cefe860 RSI: 00000000c0484e41 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 R10: 00007f765f611d50 R11: 0000000000000202 R12: 0000000000000003 R13: 00000000c0484e41 R14: 0000000000000001 R15: 00007ffe2cefea60 The Linux kernel CVE team has assigned CVE-2025-68265 to this issue. Affected and fixed versions =========================== Fixed in 6.12.62 with commit e8061d02b49c5c901980f58d91e96580e9a14acf Fixed in 6.17.12 with commit e7dac681790556c131854b97551337aa8042215b Fixed in 6.18 with commit 03b3bcd319b3ab5182bc9aaa0421351572c78ac0 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-2025-68265 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/host/core.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/e8061d02b49c5c901980f58d91e96580e9a14acf https://git.kernel.org/stable/c/e7dac681790556c131854b97551337aa8042215b https://git.kernel.org/stable/c/03b3bcd319b3ab5182bc9aaa0421351572c78ac0