Skip to contentSkip to conversation

CVE-2026-23282: smb: client: fix oops due to uninitialised var in smb2_unlink()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

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: client: fix oops due to uninitialised var in smb2_unlink()

If SMB2_open_init() or SMB2_close_init() fails (e.g. reconnect), the iovs set @rqst will be left uninitialised, hence calling SMB2_open_free(), SMB2_close_free() or smb2_set_related() on them will oops.

Fix this by initialising @close_iov and @open_iov before setting them in @rqst.

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

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

	Issue introduced in 6.17 with commit 1cf9f2a6a544288516a7b9e883a48eba6246bcf2 and fixed in 6.18.17 with commit 86163b98891aa9800f6103252e5acc7bb98afb91
	Issue introduced in 6.17 with commit 1cf9f2a6a544288516a7b9e883a48eba6246bcf2 and fixed in 6.19.7 with commit dc710c87af3341554d02d634ada1d2036c49a94a
	Issue introduced in 6.17 with commit 1cf9f2a6a544288516a7b9e883a48eba6246bcf2 and fixed in 7.0-rc3 with commit 048efe129a297256d3c2088cf8d79515ff5ec864

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

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/client/smb2inode.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/86163b98891aa9800f6103252e5acc7bb98afb91
	https://git.kernel.org/stable/c/dc710c87af3341554d02d634ada1d2036c49a94a
	https://git.kernel.org/stable/c/048efe129a297256d3c2088cf8d79515ff5ec864