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 D7508340A64 for ; Wed, 22 Oct 2025 13:27:13 +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=1761139633; cv=none; b=IkvlGjai2NiF0WuOo+EeZA5uKnkErlQhe5LRDwi2Xt7I1wlsiKaoXi++gjNFJfFTUr/tnB0OAybhzWCdaI5OA6PMNHk6o/xZEMcVJmMrSYRX1UhOhqD7fIFvI8KJtPvKAI6VwNwR++WqVMrmnkSknL02w6x+W/Alk8NvOeA9BT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139633; c=relaxed/simple; bh=+9fm0K6nDdqipYSTLLfPsCVS4dIfwf6n3QMzvliLB9I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mdyWV5vQ1ypL0VI+XiCDwLkJQ4ULPEXnHSuxh3XnxLCB0ZefReKmo5zrEeVC19Y3MMhP88ubTy0tWkdvBDniUKlYl3XDkfNxYlgYFKIvaDtIFuJO21NDzzEdDt5nK4yw549r/6tIop5kV9x2aB2hTYO5Y6wx89lNNqrJbGbK3c0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BjxS3moo; 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="BjxS3moo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66626C4CEE7; Wed, 22 Oct 2025 13:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139633; bh=+9fm0K6nDdqipYSTLLfPsCVS4dIfwf6n3QMzvliLB9I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BjxS3mooR4hPLl2SyGe0MheQpcJQgFr/Hng0GhXE2N9JrWmrFh8UdMQZ7CUvAEEk1 WOhl1qfy1uFaBRSgme+QDjKy20jI3BNXGETWwg0jhZw05aJqQUtKs7QI8bv/xP7+Xa nrRdTW9d+pR2FIZzAUJONcWedHEwbQ3iFcI4QJu4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53697: nvdimm: Fix memleak of pmu attr_groups in unregister_nvdimm_pmu() Date: Wed, 22 Oct 2025 15:24:36 +0200 Message-ID: <2025102211-CVE-2023-53697-3078@gregkh> X-Mailer: git-send-email 2.51.1 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=2395; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x+Oiv12OiGu89ioHtuc9MLrbLGE7bK0nViOZG5XDFyg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv0+K2ZgwTUxbMaSh/mVE23nr7m5j3GjTsRRj/0di 1x9/hTKdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBETrExzDP4vOZajqebzLLv 6fstv9nvUpM/tYhhfmbrK3635+9rH9ltm9V57gmDX+FTVgA= 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: nvdimm: Fix memleak of pmu attr_groups in unregister_nvdimm_pmu() Memory pointed by 'nd_pmu->pmu.attr_groups' is allocated in function 'register_nvdimm_pmu' and is lost after 'kfree(nd_pmu)' call in function 'unregister_nvdimm_pmu'. The Linux kernel CVE team has assigned CVE-2023-53697 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 0fab1ba6ad6ba1f76380f92ead95c6e861ef8116 and fixed in 6.1.53 with commit 500a6ff9c2a81348fe0f04e2deb758145e8ab94e Issue introduced in 5.18 with commit 0fab1ba6ad6ba1f76380f92ead95c6e861ef8116 and fixed in 6.4.16 with commit 4999f2ec5fde7c45e3ecafda5b78560cc1c7bdb5 Issue introduced in 5.18 with commit 0fab1ba6ad6ba1f76380f92ead95c6e861ef8116 and fixed in 6.5.3 with commit 16259c80542ee8945aaa39cfc6a1809bcdc08ffe Issue introduced in 5.18 with commit 0fab1ba6ad6ba1f76380f92ead95c6e861ef8116 and fixed in 6.6 with commit 85ae42c72142346645e63c33835da947dfa008b3 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-53697 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/nvdimm/nd_perf.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/500a6ff9c2a81348fe0f04e2deb758145e8ab94e https://git.kernel.org/stable/c/4999f2ec5fde7c45e3ecafda5b78560cc1c7bdb5 https://git.kernel.org/stable/c/16259c80542ee8945aaa39cfc6a1809bcdc08ffe https://git.kernel.org/stable/c/85ae42c72142346645e63c33835da947dfa008b3