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 484C7DF59 for ; Tue, 9 Dec 2025 01:33:16 +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=1765243996; cv=none; b=KeI3oLPDlKl7EojF8mAsrq7E++pL8yEYwmvEa7juOTreFbqXPmdZRnw0xJZk5v0edXw734v8Mlzy0hX+8leWePsWlTfT7CxKTTw6PenpWcoM321e6/GKUNNUf5mNfsFWCAy/IoBAKpalB28QGZdAvK/aFyb4vl5Wkkk8nkkWw+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243996; c=relaxed/simple; bh=IoTzqhCKWDCj2iQW8pSG/bodbsxwOpjTbsf+mxYcfE0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UgMtQRW1/s//7N15pf4Jm7cNS+MukN6a+3u9onHY7lmtH2Z/8YlXXOuH3rqMbK2YzUmuXDrWMjpgXRJhyczHpvxLPNDDKHm8BC3FGGx0CDPu+S+lGOX+Pn+6zulrqLAFnK5xVPOjVpHsKmZOOorGSzzqc4VI45ZJkOhnOJUz8wM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nC4Ru4Kj; 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="nC4Ru4Kj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9FBAC4CEF1; Tue, 9 Dec 2025 01:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243996; bh=IoTzqhCKWDCj2iQW8pSG/bodbsxwOpjTbsf+mxYcfE0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nC4Ru4KjBvjcam0AvWzPL1+KVU2OeFsEAPeFuSJmxqbIrIgrkXdoJLpZIijFaOmt5 q3rpFIOLiYLPnp/080TnSNyr9sY/WpQ1CEDLniATBa2J7IR/g0D5L7yrUHE0TeoZmZ 1K8VP/UavfSm8GTJkzGS4Om+4GGkC33XJUSS7WdA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53852: nvme-core: fix memory leak in dhchap_secret_store Date: Tue, 9 Dec 2025 10:31:36 +0900 Message-ID: <2025120901-CVE-2023-53852-69a1@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=3698; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rJuy5KgHb/Tw/ToiunnYquXGnE7t+APWRabKxLnxIEM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1VcfHG/YyWWo3uB2xaPtpPPKi6vn5f1ddVxXKv7aP N+wxP+FHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR9VCGuTJnlFebZ7xIeT2t J3BFPuubmk6mtQzzq3778hocnL9E79hchSP7L/lqazcVAQA= 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 memory leak in dhchap_secret_store Free dhchap_secret in nvme_ctrl_dhchap_secret_store() before we return fix following kmemleack:- unreferenced object 0xffff8886376ea800 (size 64): comm "check", pid 22048, jiffies 4344316705 (age 92.199s) hex dump (first 32 bytes): 44 48 48 43 2d 31 3a 30 30 3a 6e 78 72 35 4b 67 DHHC-1:00:nxr5Kg 75 58 34 75 6f 41 78 73 4a 61 34 63 2f 68 75 4c uX4uoAxsJa4c/huL backtrace: [<0000000030ce5d4b>] __kmalloc+0x4b/0x130 [<000000009be1cdc1>] nvme_ctrl_dhchap_secret_store+0x8f/0x160 [nvme_core] [<00000000ac06c96a>] kernfs_fop_write_iter+0x12b/0x1c0 [<00000000437e7ced>] vfs_write+0x2ba/0x3c0 [<00000000f9491baf>] ksys_write+0x5f/0xe0 [<000000001c46513d>] do_syscall_64+0x3b/0x90 [<00000000ecf348fe>] entry_SYSCALL_64_after_hwframe+0x72/0xdc unreferenced object 0xffff8886376eaf00 (size 64): comm "check", pid 22048, jiffies 4344316736 (age 92.168s) hex dump (first 32 bytes): 44 48 48 43 2d 31 3a 30 30 3a 6e 78 72 35 4b 67 DHHC-1:00:nxr5Kg 75 58 34 75 6f 41 78 73 4a 61 34 63 2f 68 75 4c uX4uoAxsJa4c/huL backtrace: [<0000000030ce5d4b>] __kmalloc+0x4b/0x130 [<000000009be1cdc1>] nvme_ctrl_dhchap_secret_store+0x8f/0x160 [nvme_core] [<00000000ac06c96a>] kernfs_fop_write_iter+0x12b/0x1c0 [<00000000437e7ced>] vfs_write+0x2ba/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-53852 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.1.39 with commit 2e9b141307554521d60fecf6bf1d2edc8dd0181d Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.3.13 with commit c41ac086d2abaf7527a5685f9c0a1c209ab7e0aa Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.4.4 with commit 6a5eda5017959541ab82c5d56bcf784b8294e298 Issue introduced in 6.0 with commit f50fff73d620cd6e8f48bc58d4f1c944615a3fea and fixed in 6.5 with commit a836ca33c5b07d34dd5347af9f64d25651d12674 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-53852 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/2e9b141307554521d60fecf6bf1d2edc8dd0181d https://git.kernel.org/stable/c/c41ac086d2abaf7527a5685f9c0a1c209ab7e0aa https://git.kernel.org/stable/c/6a5eda5017959541ab82c5d56bcf784b8294e298 https://git.kernel.org/stable/c/a836ca33c5b07d34dd5347af9f64d25651d12674