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 308D2367F26 for ; Sun, 18 Oct 2026 15:17:42 +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=1792336664; cv=none; b=Eq8QDsCPSIh+tIekb8VQ165KzpVNy3pcI9Yw1b3EIHFl0lmJ/zuF549mzpZb1qR9rkx8pxQd3ZytphnhEo40ft3K2mOqyvlnhw+EjOdCdkp36UcpJaJTm4Rp0OmaLMWj0j9q3pOmWog/7QVEojqo5fnWZy42JBd4UgrlDG9qgFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792336664; c=relaxed/simple; bh=zWQ0koPNLrX6uGhc2MaEdNbRvtu6csjME5W6hYlo4LM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T2qPio9f5J8xt3hRWGURfXNpTfMTtSL79RaiWZcOiwbJyQXdFgvnmaNnQBKE7eCos1pbtrcGrQEv1T2a9XUnxCKerk+5ChVihy3h6bjSUPqIihRszsgCGzu+vfuj6JIe78mLPauotJ/z00Yiexyvll0PAdUkbUBEIepk/LL7PZk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=THvMNm+N; 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="THvMNm+N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE3311F000C4; Sun, 18 Oct 2026 15:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792336662; bh=5/DbsL1fuB8SIJsB58gJrYupN9N1r6etWimW+6tyMGI=; h=From:To:Cc:Subject:Date:Reply-To; b=THvMNm+NrS7lN02h2OlNJEdnPj4v43y4cNKoErhovV2yTtrtbaarClNgQraGgbTGU DgL/wXFxvc0jZaNXhANT+GOAtH2ptVtmsyw4kfZgdNgZCaW04VSLglIDlkGIbl43vQ yGDZ5Bp4iihs75UKhTdiSbZ284FWybev+CZlP2Qk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98451: smb: client: use finish_no_open() for non-regular inodes Date: Sun, 18 Oct 2026 17:15:15 +0200 Message-ID: <2026101808-CVE-2026-98451-1365@gregkh> X-Mailer: git-send-email 2.56.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=3018; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k2aM31nfsisVSmy+3PXWBWcVFHq2pu1DLRYxYFthANw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHtXe/azS3mtp9Tj8xyd1XXlZj+2z5zdPy+m1EnVy8 b6c4Ty1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYifp5hwcp9XpI79v6dPUeH f5Lxwl1ptavXbGZYsDlJU1f3tlqCwBNp20OdG41W5Ob5AAA= 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: use finish_no_open() for non-regular inodes An O_CREAT open can find an existing symlink or another non-regular inode. cifs_atomic_open() calls finish_open() on it and attaches a cifsFileInfo. Symlink inodes have no CIFS release operation, so the dentry reference held by cifsFileInfo is leaked. FMODE_OPENED also prevents the VFS from following the symlink. Track whether cifs_do_create() returned an open server handle. For non-regular inodes, close the handle if present, remove the pending open, and call finish_no_open() so the VFS can continue the lookup. Do not set FMODE_CREATED unless a regular file was opened. For O_NOFOLLOW with __O_REGULAR, return -ELOOP before the VFS's -EFTYPE check. Defer closing a legacy POSIX handle on a non-regular inode until after inode lookup. This avoids closing it again if lookup fails. The Linux kernel CVE team has assigned CVE-2026-98451 to this issue. Affected and fixed versions =========================== Issue introduced in 3.6 with commit d2c127197dfc0b2bae62a52e1e0d3e3ff493919e and fixed in 6.12.113 with commit ed03d547598c92a036f20e89156540995cac889a Issue introduced in 3.6 with commit d2c127197dfc0b2bae62a52e1e0d3e3ff493919e and fixed in 6.18.56 with commit 70a7918fda54a06d836acc91eb9a3c7e860fe0a0 Issue introduced in 3.6 with commit d2c127197dfc0b2bae62a52e1e0d3e3ff493919e and fixed in 7.2.9 with commit 3c07deb26273155c180aedfd9041ab58015d2521 Issue introduced in 3.6 with commit d2c127197dfc0b2bae62a52e1e0d3e3ff493919e and fixed in 7.3-rc5 with commit e66cf1625ec4a3fe68346119f371def713fd0a4d 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-98451 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/dir.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/ed03d547598c92a036f20e89156540995cac889a https://git.kernel.org/stable/c/70a7918fda54a06d836acc91eb9a3c7e860fe0a0 https://git.kernel.org/stable/c/3c07deb26273155c180aedfd9041ab58015d2521 https://git.kernel.org/stable/c/e66cf1625ec4a3fe68346119f371def713fd0a4d