Skip to contentSkip to conversation

CVE-2025-38208: smb: client: add NULL check in automount_fullpath

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 4, 2025

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: add NULL check in automount_fullpath

page is checked for null in __build_path_from_dentry_optional_prefix when tcon->origin_fullpath is not set. However, the check is missing when it is set.
Add a check to prevent a potential NULL pointer dereference.

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

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

	Fixed in 6.6.95 with commit 37166d63e42c34846a16001950ecec96229a8d17
	Fixed in 6.12.35 with commit a9e916fa5c7d0ec2256aa44aa24ddd92f529ce35
	Fixed in 6.15.4 with commit cce8e71ca1f7ad9045707f0d22490c1e9ed1df6c
	Fixed in 6.16-rc1 with commit f1e7a277a1736e12cc4bd6d93b8a5c439b8ca20c

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

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/namespace.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/37166d63e42c34846a16001950ecec96229a8d17
	https://git.kernel.org/stable/c/a9e916fa5c7d0ec2256aa44aa24ddd92f529ce35
	https://git.kernel.org/stable/c/cce8e71ca1f7ad9045707f0d22490c1e9ed1df6c
	https://git.kernel.org/stable/c/f1e7a277a1736e12cc4bd6d93b8a5c439b8ca20c