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 563A125A331 for ; Fri, 2 May 2025 15:59:24 +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=1746201564; cv=none; b=nbZOsrCCB8lt6o6udEZcgF9tJaqz6yPYqEUxJ846WcsStyelK26Cd9HyCY7jpEzsH3bXeb538BapaouW9W/n7KqUhsOOB32tmSas7dvr3pyi5BQInsgNtNiZMf7HGfG0Ycoh27/tB66rXTn/Gr2PRUdsYAaeQVpu3qmrCV9WO1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201564; c=relaxed/simple; bh=bUAaOJEeUmkw36bYRV7yuoZDPC6TWTglB59GSEiokTc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KIBqJ2wma/NTNeR+25BjSqif9fslRo/Cruu5WZtdM5JRMcL9CFfkea6MT1TAXRI8wc/q+5h/88TpI+N8yg/+9irefJ7YMUREa48Rz72HjT6/M8YmJPQLLXDCDHjoiMJJO7C/pbWJj99m6alNd+91yRR3qObcC4ONMrPcCR++hUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vuZjIDb6; 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="vuZjIDb6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3C30C4CEE4; Fri, 2 May 2025 15:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201564; bh=bUAaOJEeUmkw36bYRV7yuoZDPC6TWTglB59GSEiokTc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vuZjIDb6YefDGjUc4bNGV/5r0gaEygQ9X912nIEHJL41l6OA79IB7gdZro5yYp1PB bFR7wD5W0T8nceALCtY8HKMWVHJhGi+suOEhdVbwPnpEW8xZ6ciGGXwt66753gW8H1 4Rr0vWcUiEUlehYG9MayLZn3rRvJZMaPkcx876+Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53097: powerpc/iommu: fix memory leak with using debugfs_lookup() Date: Fri, 2 May 2025 17:56:02 +0200 Message-ID: <2025050222-CVE-2023-53097-fd46@gregkh> X-Mailer: git-send-email 2.49.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=2124; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kGg8BDFUg1gbHnKmGIkcDuCK7RfmncacDokEBrFc/wg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir15JrJnAJL7k6o5nr4+ezT+Y5c2002KO3rwbOaVOd elXS8SKO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiS2QZFpwtVIlax7y0Z/Hd /rqlgouOZtz93cEwP6uWxe595c5OxrADjEwc1z9mdKzxAAA= 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: powerpc/iommu: fix memory leak with using debugfs_lookup() When calling debugfs_lookup() the result must have dput() called on it, otherwise the memory will leak over time. To make things simpler, just call debugfs_lookup_and_remove() instead which handles all of the logic at once. The Linux kernel CVE team has assigned CVE-2023-53097 to this issue. Affected and fixed versions =========================== Fixed in 5.15.103 with commit e3a62a35f903fd8be5b44542fe3901ec45f16757 Fixed in 6.1.20 with commit 24c1bd1cd0d1ff821fd7d2f01a1e648c7882dfc2 Fixed in 6.2.7 with commit 4050498c0ae3946c223fc63e9dd7b878b76611e0 Fixed in 6.3 with commit b505063910c134778202dfad9332dfcecb76bab3 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-53097 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: arch/powerpc/kernel/iommu.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/e3a62a35f903fd8be5b44542fe3901ec45f16757 https://git.kernel.org/stable/c/24c1bd1cd0d1ff821fd7d2f01a1e648c7882dfc2 https://git.kernel.org/stable/c/4050498c0ae3946c223fc63e9dd7b878b76611e0 https://git.kernel.org/stable/c/b505063910c134778202dfad9332dfcecb76bab3