Skip to contentSkip to conversation

CVE-2023-53025: NFSD: fix use-after-free in nfsd4_ssc_setup_dul()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 27, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

NFSD: fix use-after-free in nfsd4_ssc_setup_dul()

If signal_pending() returns true, schedule_timeout() will not be executed, causing the waiting task to remain in the wait queue.
Fixed by adding a call to finish_wait(), which ensures that the waiting task will always be removed from the wait queue.

The Linux kernel CVE team has assigned CVE-2023-53025 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.14 with commit f4e44b393389c77958f7c58bf4415032b4cda15b and fixed in 5.15.91 with commit 0a27dcd5343026ac0cb168ee63304255372b7a36
	Issue introduced in 5.14 with commit f4e44b393389c77958f7c58bf4415032b4cda15b and fixed in 6.1.9 with commit 32d5eb95f8f0e362e37c393310b13b9e95404560
	Issue introduced in 5.14 with commit f4e44b393389c77958f7c58bf4415032b4cda15b and fixed in 6.2 with commit e6cf91b7b47ff82b624bdfe2fdcde32bb52e71dd

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-53025

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:
fs/nfsd/nfs4proc.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/6ac4c383c39f8f2f955f868d1ad9365c2363e80b
	https://git.kernel.org/stable/c/0a27dcd5343026ac0cb168ee63304255372b7a36
	https://git.kernel.org/stable/c/32d5eb95f8f0e362e37c393310b13b9e95404560
	https://git.kernel.org/stable/c/e6cf91b7b47ff82b624bdfe2fdcde32bb52e71dd