Skip to contentSkip to conversation

CVE-2025-71223: smb/server: fix refcount leak in smb2_open()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 14

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 refcount leak in smb2_open()

When ksmbd_vfs_getattr() fails, the reference count of ksmbd_file must be released.

The Linux kernel CVE team has assigned CVE-2025-71223 to this issue.

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

	Fixed in 6.6.124 with commit 2456fde2b137703328f1695f60c68fe488d17e36
	Fixed in 6.12.70 with commit 39ca11ff158c98fb092176f06047628c54bcf7a1
	Fixed in 6.18.10 with commit 4665e52bde3b1f8f442895ce7d88fa62a43e48c4
	Fixed in 6.19 with commit f416c556997aa56ec4384c6b6efd6a0e6ac70aa7

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-2025-71223

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/2456fde2b137703328f1695f60c68fe488d17e36
	https://git.kernel.org/stable/c/39ca11ff158c98fb092176f06047628c54bcf7a1
	https://git.kernel.org/stable/c/4665e52bde3b1f8f442895ce7d88fa62a43e48c4
	https://git.kernel.org/stable/c/f416c556997aa56ec4384c6b6efd6a0e6ac70aa7