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 9C61F2E610F for ; Tue, 7 Oct 2025 15:25:04 +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=1759850704; cv=none; b=KPgeJGZ8ynPu8XPtqK6lTfFbpSUZd6P1K8kEU9gQyJroX/s4bo7YfFXcu9p1Sc+BJIasPTsdR0+zX5U/xWLMkdMii6ihiJHUqF3P7zNJJ5Rsozwwv6CIM/OlArTLXBYUTF0bluRBgDQyIWrmgGZF72jazHPwRVeT5w8pMearG+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850704; c=relaxed/simple; bh=bQBthK3PocSE0pCUP0lSjfCYqaIeAqVLAMhfBw9bxig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KjILMDsOY2+on7v3mNaefAnZns43B93/riJjl/55/Vd4ONmhvV1uDNHM6Sc/SDmZqNW/js7B1tauxW2RakiGsL8jQSaL5N6eMoPwpt5zYHTaQ8kal1IWzvd7kUO2RCBY+eNDGe61OvyXRkrpjP7r5WM1aQSATzsUzugIkIcgc4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RBd+YyyJ; 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="RBd+YyyJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C308C4CEF1; Tue, 7 Oct 2025 15:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850704; bh=bQBthK3PocSE0pCUP0lSjfCYqaIeAqVLAMhfBw9bxig=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RBd+YyyJl+2srYp8s3shujpErY7RMd5gTbECRY004CzSZ6NlZ32quqpaed6S2NEg5 zzOq5BC8qfNhRStRaJ7yB+YeSqPEiO1N8wC7mAQyhN8IddKo/Du3BbN2dGdE/ECxQz BfTlmfWlC2tfLrMxd8iDz9ezDkYLUlQWS1TstHzg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53670: nvme-core: fix dev_pm_qos memleak Date: Tue, 7 Oct 2025 17:21:29 +0200 Message-ID: <2025100705-CVE-2023-53670-46fe@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3292; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HNkLTCcP8jXoJM6yTrVrubqXnl/5HEdEE2dFzQzxX7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9R8qru3oZZ2/3/LFb4+mm3dyF8yfFqS0/O7W6wvrn GzPXeXJ64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ8DcwLGh7NWXWnvQc3pO3 7P6p9L7X3MO8sZ5hnrqw96R7GfGpa70fzl632WfPETXubAA= 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-core: fix dev_pm_qos memleak Call dev_pm_qos_hide_latency_tolerance() in the error unwind patch to avoid following kmemleak:- blktests (master) # kmemleak-clear; ./check nvme/044; blktests (master) # kmemleak-scan ; kmemleak-show nvme/044 (Test bi-directional authentication) [passed] runtime 2.111s ... 2.124s unreferenced object 0xffff888110c46240 (size 96): comm "nvme", pid 33461, jiffies 4345365353 (age 75.586s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<0000000069ac2cec>] kmalloc_trace+0x25/0x90 [<000000006acc66d5>] dev_pm_qos_update_user_latency_tolerance+0x6f/0x100 [<00000000cc376ea7>] nvme_init_ctrl+0x38e/0x410 [nvme_core] [<000000007df61b4b>] 0xffffffffc05e88b3 [<00000000d152b985>] 0xffffffffc05744cb [<00000000f04a4041>] vfs_write+0xc5/0x3c0 [<00000000f9491baf>] ksys_write+0x5f/0xe0 [<000000001c46513d>] do_syscall_64+0x3b/0x90 [<00000000ecf348fe>] entry_SYSCALL_64_after_hwframe+0x72/0xdc The Linux kernel CVE team has assigned CVE-2023-53670 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.1.39 with commit e1379e067b9485e5af03399fe3f0d39bccb023ad Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.3.13 with commit 7237c26431cc78e5ec3259f4350f3dd58f6a4319 Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.4.4 with commit 2ed9a89192e3192e5fea7ff6475c8722513f325e Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.5 with commit 7ed5cf8e6d9bfb6a78d0471317edff14f0f2b4dd 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-2023-53670 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/e1379e067b9485e5af03399fe3f0d39bccb023ad https://git.kernel.org/stable/c/7237c26431cc78e5ec3259f4350f3dd58f6a4319 https://git.kernel.org/stable/c/2ed9a89192e3192e5fea7ff6475c8722513f325e https://git.kernel.org/stable/c/7ed5cf8e6d9bfb6a78d0471317edff14f0f2b4dd