Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 670BC2FCFCD for ; Fri, 4 Jul 2025 13:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636597; cv=none; b=JC5N6MoSzD8ifrWhsVkmx3L4WsTIgJxndlz1jB8WKahmPIYqcs/1Oa5qipq1Ns19Cu2O+V53gi59MhnnemJjbgRHkhDa1wGEWtlPiBQGJ5gs3E1Kf+a7qISFlXitx/NVoWDj/x7pCD0dpyl9JHSjLCVE8GKBtO71d+eKLj5Ul1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636597; c=relaxed/simple; bh=fhKP/m6Ti6+uQhTS+jlhvoguoyewGHAuc+eXqTZb41g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qfS03cE+MD/Jv4WVe+UxcoZ6EnMg0dZc7lqHRAdYQvPXieQS+0Hmm5UWV4YKRc/3XXvKdRNb0SMmQzXs1YZomBCEMWLXM70tq5lcCu9Ou+az3nrkZiOBfE1S0YJNvVGk+B9bCEfNLJaTxkc55QLxSpLtfzVzhqPep0NPCXJLqWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ix+M99dC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ix+M99dC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0C5AC4CEE3; Fri, 4 Jul 2025 13:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636597; bh=fhKP/m6Ti6+uQhTS+jlhvoguoyewGHAuc+eXqTZb41g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ix+M99dCglPg1c2QlaoEjV65Nhuy12JxqPUQbpTAS+/jp6qgZO0+zEppJRrbwbEPD WR86hK/JcoTxLN6c2qr3Iv607m9xn2s8hkG+4PVeajn8XDxL0oOKayHBGBJsJZHVpi Fq1tjWrBcquVJltHKnjIYfN+LNkX5hqA//j+eKow= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38208: smb: client: add NULL check in automount_fullpath Date: Fri, 4 Jul 2025 15:37:37 +0200 Message-ID: <2025070420-CVE-2025-38208-97e1@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2108; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=itY503zoIT2LNS5g6KSvRpyMhZ0O+GSYRj7/6pjH3NE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpNwUV1BRLuXI3vj7/nW/Z6fX8um6rvx7cEX7vs+IJd WcDttyejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIdR3DgnNfJGXiZ6zis+I8 Wtxz40yz47vnPxjm19dY+P6okldykhXuKj8RdHfV7U3PAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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