Skip to contentSkip to conversation

CVE-2026-99748: ksmbd: revert fsids on durable reconnect and replay failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

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: revert fsids on durable reconnect and replay failure

On a durable handle reconnect or a request replay, smb2_open() switches to the SMB user's fsids before calling ksmbd_vfs_getattr(). If that call fails, the code jumps to err_out2 and skips ksmbd_revert_fsids() at err_out1. The user's credentials then stay installed on the shared ksmbd worker. Later work on that worker, including other users' requests, runs with the first user's fsuid, fsgid and supplementary groups. ksmbd_free_work_struct() also warns, because work->saved_cred is still set.

Jump to err_out1 instead. No path is held at this point, so skipping the path_put() at err_out is correct.

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

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

	Issue introduced in 6.9 with commit c8efcc786146a951091588e5fa7e3c754850cb3c and fixed in 7.3.5 with commit bd7142a1d60c8aeb203e007515e077bcded88769
	Issue introduced in 6.9 with commit c8efcc786146a951091588e5fa7e3c754850cb3c and fixed in 7.4-rc2 with commit 539223f18026448f67d33d09719c355b91db7fd0
	Issue introduced in 6.6.32 with commit 8df4bcdb0a4232192b2445256c39b787d58ef14d

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

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/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/bd7142a1d60c8aeb203e007515e077bcded88769
	https://git.kernel.org/stable/c/539223f18026448f67d33d09719c355b91db7fd0