From mboxrd@z Thu Jan 1 00:00:00 1970 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 22DAD26CE32 for ; Fri, 1 May 2026 13:56:46 +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=1777643807; cv=none; b=u4rLT/tmNzRYvq6gzComu+AVKskYyM2c0cJ4F9vbdkX8OyoOCsC/iiqgxwePMA0VJXjZoewPtq+fr+3nuIPws9pQ+sxzvEPzUhi08KKb8onQ6SgeK+m6AU6RZ/FZ9uEO3VwDaLPtzHlgYrzniYxqoej3JJ2CY70RAeEku2hbywo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777643807; c=relaxed/simple; bh=T1/7uzmQqz3hYl7gsvVJSVHpLhaBzcFUOWQSVCrttAs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WT8esCBxJEcRL5fFHefpjGSJKxprM1VGioGXd5IFiiFCiuK1YmuqtLYSBZqa3/e7xjHAMeOZEbDYA4vp+FsVs6t/DYfiTb6yQrNzM1KHk7Ao+QcxZoRj/Jk3eftpRsIsXGjhW8qROXfh3nYjjJf2rjOkORA3jjv56xi7WoOFL/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jPvdsJMx; 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="jPvdsJMx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C22BC2BCB4; Fri, 1 May 2026 13:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777643806; bh=T1/7uzmQqz3hYl7gsvVJSVHpLhaBzcFUOWQSVCrttAs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=jPvdsJMxg/BvhMB88pDPy5nRlb/TCb4SRaCGwaFL4NsAOW4UNZGP6YkDVHOWngPVT nDF4l2Hds+DncbGfa5v9dFnPbbIOCQH8KH3scfHHC+9w4r9o7HkBsId8bfxPb8DfDy GNRrirBuCk9TFMS6MzRmlMPizBA3G65LbRUaRf1A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31710: smb: client: fix dir separator in SMB1 UNIX mounts Date: Fri, 1 May 2026 15:56:32 +0200 Message-ID: <2026050122-CVE-2026-31710-511c@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2166; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OlZEBtie63H2lQSzPOaDxwP49XZkIXWr5LEiq/TFDEw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlfNrIFMNwtjVzv9kjTad05P49NE0v6VUMOs70s/KYhH KppllHdEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5JMMwP5nb41ZX4Tc300e9 HC+tq/mnOrwUZpifXt2SePPNv0VbfXexewl6u7wMvXYLAA== 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: fix dir separator in SMB1 UNIX mounts When calling cifs_mount_get_tcon() with SMB1 UNIX mounts, @cifs_sb->mnt_cifs_flags needs to be read or updated only after calling reset_cifs_unix_caps(), otherwise it might end up with missing CIFS_MOUNT_POSIXACL and CIFS_MOUNT_POSIX_PATHS bits. This fixes the wrong dir separator used in paths caused by the missing CIFS_MOUNT_POSIX_PATHS bit in cifs_sb_info::mnt_cifs_flags. The Linux kernel CVE team has assigned CVE-2026-31710 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880 and fixed in 7.0.2 with commit fbbfcf35e1ee3396631f3dc6214cb626aa9814c3 Issue introduced in 7.0 with commit 4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880 and fixed in 7.1-rc1 with commit c4d3fc5844d685441befd0caaab648321013cdfd 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-2026-31710 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/connect.c fs/smb/client/smb1ops.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/fbbfcf35e1ee3396631f3dc6214cb626aa9814c3 https://git.kernel.org/stable/c/c4d3fc5844d685441befd0caaab648321013cdfd