Skip to contentSkip to conversation

CVE-2025-71204: smb/server: fix refcount leak in parse_durable_handle_context()

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 parse_durable_handle_context()

When the command is a replay operation and -ENOEXEC is returned, the refcount of ksmbd_file must be released.

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

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

	Fixed in 6.6.124 with commit 07df5ff4f6490a5c96715b7c562e0b2908422e04
	Fixed in 6.12.70 with commit 8a15107c4c031fb19737bf2eb4000f847f1d5e4c
	Fixed in 6.18.10 with commit 70dd3513ed6ac8c6cab23f72c5b19f44ca89de9d
	Fixed in 6.19 with commit 3296c3012a9d9a27e81e34910384e55a6ff3cff0

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

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/07df5ff4f6490a5c96715b7c562e0b2908422e04
	https://git.kernel.org/stable/c/8a15107c4c031fb19737bf2eb4000f847f1d5e4c
	https://git.kernel.org/stable/c/70dd3513ed6ac8c6cab23f72c5b19f44ca89de9d
	https://git.kernel.org/stable/c/3296c3012a9d9a27e81e34910384e55a6ff3cff0