Skip to contentSkip to conversation

CVE-2026-90166: smb/server: fix null-ptr-deref in ksmbd_ipc_tree_connect_request()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

smb/server: fix null-ptr-deref in ksmbd_ipc_tree_connect_request()

See the procedure below:

ksmbd_tree_conn_connect

    ksmbd_share_config_get
      share->name = kstrdup() // fail
      if (!test_share_config_flag(share, KSMBD_SHARE_FLAG_PIPE)) // false
      // do not check `share->name`
    ksmbd_ipc_tree_connect_request
      strlen(share->name) // null-ptr-deref

The Linux kernel CVE team has assigned CVE-2026-90166 to this issue.

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

	Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.12.110 with commit 4eb74a34ea401abfbbd5991076715dae3de938df
	Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 6.18.52 with commit 8461f27902727ad434375caf13a0100aafc0340f
	Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.2.6 with commit 7065d3648b1a48d2c49da3d6364dd3c4d503b10c
	Issue introduced in 5.15 with commit e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 and fixed in 7.3-rc1 with commit d2ccf905f47d2344270749f4dfa905afcd3edeb0

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-2026-90166

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/mgmt/share_config.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/4eb74a34ea401abfbbd5991076715dae3de938df
	https://git.kernel.org/stable/c/8461f27902727ad434375caf13a0100aafc0340f
	https://git.kernel.org/stable/c/7065d3648b1a48d2c49da3d6364dd3c4d503b10c
	https://git.kernel.org/stable/c/d2ccf905f47d2344270749f4dfa905afcd3edeb0