Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100904; b=4p3+WgfJHsY+1Sg6ne36AthcPXa3lW7QRPK32clOUZ2GKFCpACxL8/jzvkRjiURWUCYb cJC06/SidU77NMViMQlJoXOhHAgjMtq5R5dO7lnyPfAPxw0WGai1YBgtEfZqWi+W6BEK0 VQ7mfHgWLdi2y9p5PqYu7f5iZ4VdF/2A4WVR79juiu4K1oVU3CwRZduWmNGX5cC0a1RA9 e6Uj0ljQS6xN7O+7F1nFdoYtaNFZ68WnYpMkELkmYFRfrBge2NKdRlQbLXh3s3JJQ3mj3 mYXtzw07Y/Onz1Tgd+JRmJ9wJMJjbupN8xwJX/K04pmPJNbGmdLH+uvYuZVw2jG2MUg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100904; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=YxfmoWtfLw9CW76zqv+yNFvx3Trz7cvCIbLKIAkJeik=; b=vjEsCZ11lJ56tP+2vejk7kJEhYS8rvWuknnH2toTdJ1SsKewG/YcyLcTJGCjo1dJtzEE 2nejqhoPknpr9IsBDkgMUiUkpWwnXf7fpfeM7oRgKWkJHbfqTT71PI4CxGO1+w7SAXSe0 YY+XwmiYTf9ftWvU2luDjJHXfvvsO9r6io4Y6SEMdZ471jQesfKrNYGUcvA3UdXyr1FsI doHLKKPz8Wzh5AT+2HhUIGRtMD06DkrYi326FwGyTgnwCiQhw5+QJei3PBaDCs8bAp6kb O08ki7xA1K6vcafJ/0JlHz2aI5axVjLvmjAgYbw0ULf34qiadwLmcGz8T1e1KFGNBWA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=NkxDZHH2; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C6DF606B3C1 for ; Thu, 19 Nov 2026 15:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=NkxDZHH2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F8791F000C7; Thu, 19 Nov 2026 15:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100904; bh=YxfmoWtfLw9CW76zqv+yNFvx3Trz7cvCIbLKIAkJeik=; h=From:To:Cc:Subject:Date:Reply-To; b=NkxDZHH2/u/Xz6IA44O8dAf1jzaoXcM3jJbtCJ4691oPHvqQfVLoumxn2Bh3AjhUY qRwxuvgqJIT7SNG/sFN3UI0WFJ0TPiDiroyaijr6kStaFVTwhpPTotdiw7wDqHtqVU JQ5sVvJYcSC0oknBhbU2JA33tX+9dKUIrWks8vIQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99535: ksmbd: prevent share root removal through empty paths Date: Thu, 19 Nov 2026 15:27:13 +0100 Message-ID: <2026111922-CVE-2026-99535-844a@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3280; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yoFIXy/vKJX2nAw3T0+i/YaC8LcBcUdqYxVeTgt+i4Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aattTz53cdE9I3To1jdY81/YjgKPLbauGhH2t7ff JGRz0W2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyk4thwV45qWtbRd6czJrn 4tu46OXvhHm38xkWNG6f9+z9PHVe+w1fFh+6xPLQ9VPAEQA= 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: ksmbd: prevent share root removal through empty paths A FileLinkInformation request can supply "/" as the new link name. smb2_get_name() strips the trailing slash and passes an empty string to ksmbd_vfs_kern_path_start_removing(). ksmbd_vfs_path_lookup() resolves an empty pathname as the configured share path, without LOOKUP_BENEATH. With ReplaceIfExists set, smb2_create_link() can therefore remove the share root from its parent before link creation fails. An authenticated client with a writable share and DELETE access to a file can trigger this if the share root is empty and the mapped user has write and search permission on its parent directory. Return -EINVAL for empty pathnames when for_remove is set, before resolving the share path or acquiring removal resources. Ordinary lookups continue to accept empty pathnames for opening the share root. The Linux kernel CVE team has assigned CVE-2026-99535 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 74d7970febf7e9005375aeda0df821d2edffc9f7 and fixed in 6.12.117 with commit 007eaa56b06fd05c55b86afabab3354ff7c24653 Issue introduced in 6.4 with commit 74d7970febf7e9005375aeda0df821d2edffc9f7 and fixed in 6.18.61 with commit 2756a41a82d618bf1d8b41d74108311815cb695c Issue introduced in 6.4 with commit 74d7970febf7e9005375aeda0df821d2edffc9f7 and fixed in 7.3.2 with commit 1f8945d2eb20a135b4e22e6fe2348a0191be208a Issue introduced in 6.4 with commit 74d7970febf7e9005375aeda0df821d2edffc9f7 and fixed in 7.4-rc1 with commit 9fd1fcbbf84986a7bcf601a2b90540899069d263 Issue introduced in 5.15.145 with commit 019aae488dbc67c97a33db03652e20e2c9e3afa7 Issue introduced in 6.1.71 with commit 6927ffe7479c72e7ebf885507227266a75f7c97d Issue introduced in 6.3.10 with commit ef6cc1c465786b3e4e735d1ab8b616b3e94402df 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-99535 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/vfs.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/007eaa56b06fd05c55b86afabab3354ff7c24653 https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263