Skip to contentSkip to conversation

CVE-2023-54280: cifs: fix potential race when tree connecting ipc

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 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:

cifs: fix potential race when tree connecting ipc

Protect access of TCP_Server_Info::hostname when building the ipc tree name as it might get freed in cifsd thread and thus causing an use-after-free bug in __tree_connect_dfs_target(). Also, while at it, update status of IPC tcon on success and then avoid any extra tree connects.

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

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

	Fixed in 6.2.15 with commit 536ec71ba060a02fabe8e22cecb82fe7b3a8708b
	Fixed in 6.3.2 with commit 553476df55a111e6a66ad9155256aec0ec1b7ad0
	Fixed in 6.4 with commit ee20d7c6100752eaf2409d783f4f1449c29ea33d

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

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/cifs/dfs.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/536ec71ba060a02fabe8e22cecb82fe7b3a8708b
	https://git.kernel.org/stable/c/553476df55a111e6a66ad9155256aec0ec1b7ad0
	https://git.kernel.org/stable/c/ee20d7c6100752eaf2409d783f4f1449c29ea33d