Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6914F344DB9 for ; Mon, 10 Aug 2026 11:41:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786362116; cv=none; b=cnk6+GXgU6x1jCHAMs8mHA42TzKAIi3Lh+DSRuZ71bqjaEPj0Q0etetKC840PctuTX++3pgNDGGfq4WardDOPwg2O3q3R8xSbtPpgmws8yuF9Rs5FK8CxaixIUQlPtefUHiNCaVqiMNdlTXNrJ+/W5sK/5VWgmHqs8dNi5Dwc9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786362116; c=relaxed/simple; bh=U0QgwwRABk9HN2paMyLhxRAxwiznqPiAJCpXVQDkIzE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ceEJNibD03zcmVOjTEvrzlsL9GpyEFhDVCT30iOVN1/0py3lEqd7R/lPme9msovq7IRLIAScRw4JxUxxDZxjFxKdqZlXP4aA+rdNzWktbbSvPegMvxAWchw//k3tqfuxh0/GbR9gMBIAtDNzzwY+z/te9BYocUGyzPbchxMkprs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tx+95C1T; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Tx+95C1T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5BA91F000E9; Mon, 10 Aug 2026 11:41:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786362115; bh=Njke6lfA83u8G07hu3WG+RcZRba2MsJMYcX3wKTZgag=; h=From:To:Cc:Subject:Date:Reply-To; b=Tx+95C1Tg74Jg23gxcFbbvDji3ZNhwqVANnd8U2aMWCxsWSB53pYL/jefxaqYOtsc zPNaA2qxegTTh10t0nyghDclsdjQfza34vxEvyCsof4mbXEfYDMvnsjJadgPwqCaUi llf2k0o05S5+HHSN2mnnfjtWSoCvQ49Bkj8rQcL4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68083: ksmbd: fix path resolution in ksmbd_vfs_kern_path_create Date: Mon, 10 Aug 2026 13:40:21 +0200 Message-ID: <2026081020-CVE-2026-68083-70ef@gregkh> X-Mailer: git-send-email 2.55.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=3151; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=our3s+rgobUVJ/oGZP1XS6sJ+1pmma7OBdTLUl/drwk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVO5ZoFgk385xfx/ikUK6tYf7B0JolJiZz8j+WHtfkX 5ksu3h7RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykM5BhnhlXq4zilZUXa1db S++45vFL727fDYYFfVe99nNV85o52U6e4uas/mWH7CZfAA== 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: fix path resolution in ksmbd_vfs_kern_path_create The SMB2 open lookup is rooted at the share with LOOKUP_BENEATH, but the create/mkdir/hardlink sink is not: ksmbd_vfs_kern_path_create() builds an absolute path with convert_to_unix_name() and resolves it from AT_FDCWD via start_creating_path(), so a ".." component is walked from the real filesystem root and escapes the export. An authenticated client races a missing path component so the rooted open lookup returns -ENOENT (taking the create branch) while the same component is present (a directory) when the create walk runs; the create then resolves ".." out of the share. Root the create walk at the share like the lookup and rename paths already are: resolve the parent with vfs_path_parent_lookup(..., LOOKUP_BENEATH, &share_conf->vfs_path) and create the final component with start_creating_noperm(). convert_to_unix_name() then has no callers and is removed. The Linux kernel CVE team has assigned CVE-2026-68083 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 265fd1991c1db85fbabaad4946ca0e63e2ae688d and fixed in 6.12.97 with commit 489d1ded01425c0fb33418172c0e4e588467526b Issue introduced in 5.15 with commit 265fd1991c1db85fbabaad4946ca0e63e2ae688d and fixed in 6.18.40 with commit c7c884a1305aa4540eb7942a50bd356b34120e1f Issue introduced in 5.15 with commit 265fd1991c1db85fbabaad4946ca0e63e2ae688d and fixed in 7.1.5 with commit 98185b3025beeae92d1fe700d5db26b9ac4bf025 Issue introduced in 5.15 with commit 265fd1991c1db85fbabaad4946ca0e63e2ae688d and fixed in 7.2-rc1 with commit 1c8951963d8ed357f70f59e0ad4ddce2199d2016 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-68083 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/misc.c fs/smb/server/misc.h 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/489d1ded01425c0fb33418172c0e4e588467526b https://git.kernel.org/stable/c/c7c884a1305aa4540eb7942a50bd356b34120e1f https://git.kernel.org/stable/c/98185b3025beeae92d1fe700d5db26b9ac4bf025 https://git.kernel.org/stable/c/1c8951963d8ed357f70f59e0ad4ddce2199d2016