Skip to contentSkip to conversation

CVE-2023-53399: ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()

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

ksmbd: fix NULL pointer dereference in smb2_get_info_filesystem()

If share is , share->path is NULL and it cause NULL pointer dereference issue.

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

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

	Fixed in 5.15.111 with commit 227eb2689b44d0d60da3839b146983e73435924c
	Fixed in 6.1.28 with commit a70751dd7b60eab025e97e19b6b2477c6eaf2bbb
	Fixed in 6.2.15 with commit b35f6c031b87d9e51f141ff6de0ea59756a8e313
	Fixed in 6.3.2 with commit 1636e09779f83e10e6ed57d91ef94abcefdd206b
	Fixed in 6.4 with commit 3ac00a2ab69b34189942afa9e862d5170cdcb018

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

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/ksmbd/smb2pdu.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/227eb2689b44d0d60da3839b146983e73435924c
	https://git.kernel.org/stable/c/a70751dd7b60eab025e97e19b6b2477c6eaf2bbb
	https://git.kernel.org/stable/c/b35f6c031b87d9e51f141ff6de0ea59756a8e313
	https://git.kernel.org/stable/c/1636e09779f83e10e6ed57d91ef94abcefdd206b
	https://git.kernel.org/stable/c/3ac00a2ab69b34189942afa9e862d5170cdcb018