Skip to contentSkip to conversation

CVE-2026-45972: smb: client: fix potential UAF and double free in smb2_open_file()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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 potential UAF and double free in smb2_open_file()

Zero out @err_iov and @err_buftype before retrying SMB2_open() to prevent an UAF bug if @data != NULL, otherwise a double free.

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

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

	Issue introduced in 6.1.163 with commit 743f70406264348c0830f38409eb6c40a42fb2db and fixed in 6.1.165 with commit 96e53bb3ee2f354cf6b4ab07bcc56e500f8b3f74
	Issue introduced in 6.6.124 with commit 3a6d6b332f92990958602c1e35ce0173e2dd62e9 and fixed in 6.6.128 with commit 7425453ea16dbc3bbb0f6cac4d60b537e5e4d151
	Issue introduced in 6.12.70 with commit b64e3b5d8d759dd4333992e4ba4dadf9359952c8 and fixed in 6.12.75 with commit 4d339b219004869e96c4ce56b8891f83a38da4c0
	Issue introduced in 6.18.10 with commit 9ee608a64e37cea5b4b13e436c559dd0fb2ad1b5 and fixed in 6.18.14 with commit e66dcf7bb9c4df5582c82bc3582725abcbfbea73
	Issue introduced in 6.19 with commit e3a43633023e3cacaca60d4b8972d084a2b06236 and fixed in 6.19.4 with commit 639deb962986ef2f5e2a6d5a600c66f922471e81
	Issue introduced in 6.19 with commit e3a43633023e3cacaca60d4b8972d084a2b06236 and fixed in 7.0 with commit ebbbc4bfad4cb355d17c671223d0814ee3ef4eda

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

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/smb2file.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/96e53bb3ee2f354cf6b4ab07bcc56e500f8b3f74
	https://git.kernel.org/stable/c/7425453ea16dbc3bbb0f6cac4d60b537e5e4d151
	https://git.kernel.org/stable/c/4d339b219004869e96c4ce56b8891f83a38da4c0
	https://git.kernel.org/stable/c/e66dcf7bb9c4df5582c82bc3582725abcbfbea73
	https://git.kernel.org/stable/c/639deb962986ef2f5e2a6d5a600c66f922471e81
	https://git.kernel.org/stable/c/ebbbc4bfad4cb355d17c671223d0814ee3ef4eda