Skip to contentSkip to conversation

CVE-2024-50283: ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19, 2024

lore
Share & tools
lore
#0 lore raw

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

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

ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp

ksmbd_user_session_put should be called under smb3_preauth_hash_rsp(). It will avoid freeing session before calling smb3_preauth_hash_rsp().

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

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

	Fixed in 6.1.117 with commit f7557bbca40d
	Fixed in 6.6.61 with commit c6cdc08c25a8
	Fixed in 6.11.8 with commit 1b6ad475d4ed
	Fixed in 6.12 with commit b8fc56fbca74

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-2024-50283

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/server.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/f7557bbca40d4ca8bb1c6c940ac6c95078bd0827
	https://git.kernel.org/stable/c/c6cdc08c25a868a08068dfc319fa9fce982b8e7f
	https://git.kernel.org/stable/c/1b6ad475d4ed577d34e0157eb507be00c588bf5c
	https://git.kernel.org/stable/c/b8fc56fbca7482c1e5c0e3351c6ae78982e25ada