Skip to contentSkip to conversation

CVE-2024-26592: ksmbd: fix UAF issue in ksmbd_tcp_new_connection()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 22, 2024

lore
Share & tools
lore
#0 lore raw

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

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

ksmbd: fix UAF issue in ksmbd_tcp_new_connection()

The race is between the handling of a new TCP connection and its disconnection. It leads to UAF on struct tcp_transport in ksmbd_tcp_new_connection() function.

The Linux kernel CVE team has assigned CVE-2024-26592 to this issue.

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

	Fixed in 6.1.75 with commit 380965e48e9c
	Fixed in 6.6.14 with commit 24290ba94cd0
	Fixed in 6.7.2 with commit 69d54650b751
	Fixed in 6.8-rc1 with commit 38d20c62903d

Please see https://www.kernel.org or 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-2024-26592

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/smb/server/connection.c
fs/smb/server/connection.h
fs/smb/server/transport_rdma.c
fs/smb/server/transport_tcp.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/380965e48e9c32ee4263c023e1d830ea7e462ed1
	https://git.kernel.org/stable/c/24290ba94cd0136e417283b0dbf8fcdabcf62111
	https://git.kernel.org/stable/c/69d54650b751532d1e1613a4fb433e591aeef126
	https://git.kernel.org/stable/c/38d20c62903d669693a1869aa68c4dd5674e2544