Skip to contentSkip to conversation

CVE-2026-43378: smb: server: fix use-after-free in smb2_open()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 8

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 use-after-free in smb2_open()

The opinfo pointer obtained via rcu_dereference(fp->f_opinfo) is dereferenced after rcu_read_unlock(), creating a use-after-free window.

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

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

	Fixed in 6.1.167 with commit e1b21e6066615e7d3d3a7aa2677e415e563fd7cc
	Fixed in 6.6.130 with commit b720c84087cb547f23ce03eab93568c1769e4556
	Fixed in 6.12.78 with commit 54b48ae83de8bb06e65079d96368efe359d4909c
	Fixed in 6.18.19 with commit 8f5b1a7cb009a93c48e9e334a2f59a660f9afc07
	Fixed in 6.19.9 with commit 190e5f808e8058640b408ccfed25440b441a718a
	Fixed in 7.0 with commit 1e689a56173827669a35da7cb2a3c78ed5c53680

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

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/e1b21e6066615e7d3d3a7aa2677e415e563fd7cc
	https://git.kernel.org/stable/c/b720c84087cb547f23ce03eab93568c1769e4556
	https://git.kernel.org/stable/c/54b48ae83de8bb06e65079d96368efe359d4909c
	https://git.kernel.org/stable/c/8f5b1a7cb009a93c48e9e334a2f59a660f9afc07
	https://git.kernel.org/stable/c/190e5f808e8058640b408ccfed25440b441a718a
	https://git.kernel.org/stable/c/1e689a56173827669a35da7cb2a3c78ed5c53680