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 BDC7832E752 for ; Wed, 17 Sep 2025 14:58:08 +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=1758121088; cv=none; b=rGLaHHLadGRq0Zps3TIkNLbHCIZF/5UZvPvR+I2aDWEHPrjpcYo7IxkTFmxE8C0v4zQE6P8RePj9J7lLHsYY5pYL52eAVQC7d8GD0ixsmM4hRYsxX5vTeoWhNmywkN6QwJvPfVziosSjRrUE2lp2VUZRTs8QqmVOfcjxNdtcZyU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121088; c=relaxed/simple; bh=kUraaRdGIzXPnLYM0M/0V5toH4MJVaQ8ylgLR0mCPyo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JjIpT/7+3BVAp+AlvcxtLUua/SPEH8NLrBYnUsQr7XiNzpnJeFNJCOannLvEXw3bHp2fmbhd5a9JaZX+sgwRurB6QmucFxowNi7IFRwv+2gn/Qa4LCk3g8f3qJfflvf1S4YuCyepQfHeOYMopMd0L8V6twPuwm6B4w1mNwI4kvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eF5d0jWl; 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="eF5d0jWl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F0F5C4CEE7; Wed, 17 Sep 2025 14:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121088; bh=kUraaRdGIzXPnLYM0M/0V5toH4MJVaQ8ylgLR0mCPyo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eF5d0jWlKwrgFTYvvoX3aZd7+v3HuVUFRltiuatT/EWBIuJ6xtklzHgnBhHfLD+cp cdPKNLP3aeEhwf45KYsq2DCCU98+wyybirYhdg+gbIrfR78vzpq9OLsnYurtZmxAeI s80LgS0pBd92WKjz10VL3xI9J50ecDndbV6bjKsY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53346: kernel/fail_function: fix memory leak with using debugfs_lookup() Date: Wed, 17 Sep 2025 16:56:45 +0200 Message-ID: <2025091719-CVE-2023-53346-2268@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=2421; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8JUnlY6HHFzPTR1jZSHEDbhJKPCWg2lCbk/+QHfXqNo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzghzeN+TDk4NVzD9tfVu759er/m7fF47SsYd3FZhJ XDt4yzNjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIzGkM88yuPv4383XzQrHq K6mXyiR7Yjcc0mKY7+00YVmmgyq7xAlp/zkqPjtUJoonAwA= 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: kernel/fail_function: 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-53346 to this issue. Affected and fixed versions =========================== Fixed in 5.4.235 with commit f6d3aee1c66358471275df9dddd480010f061b0e Fixed in 5.10.173 with commit dd9981a11d74ff2eb253bb5c459876f8bd3c6c36 Fixed in 5.15.100 with commit bb99db06b8b6ce9351633fc61bec9919d8f6f52b Fixed in 6.1.18 with commit 29d53c4c5a6f6d2b93aaac95b65cb4c907faf2ff Fixed in 6.2.5 with commit 94f68f3e059c478e240f65fcb64746fe371295df Fixed in 6.3 with commit 2bb3669f576559db273efe49e0e69f82450efbca 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-53346 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: kernel/fail_function.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/f6d3aee1c66358471275df9dddd480010f061b0e https://git.kernel.org/stable/c/dd9981a11d74ff2eb253bb5c459876f8bd3c6c36 https://git.kernel.org/stable/c/bb99db06b8b6ce9351633fc61bec9919d8f6f52b https://git.kernel.org/stable/c/29d53c4c5a6f6d2b93aaac95b65cb4c907faf2ff https://git.kernel.org/stable/c/94f68f3e059c478e240f65fcb64746fe371295df https://git.kernel.org/stable/c/2bb3669f576559db273efe49e0e69f82450efbca