Skip to contentSkip to conversation

CVE-2023-53346: kernel/fail_function: fix memory leak with using debugfs_lookup()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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