In the Linux kernel, the following vulnerability has been resolved: smb: client: add NULL check in automountfullpath page is checked for null in _buildpathfromdentryoptionalprefix when tcon->originfullpath is not set. However, the check is missing when it is set. Add a check to prevent a potential NULL pointer dereference.