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 A657348F832 for ; Fri, 25 Sep 2026 10:24:14 +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=1790331855; cv=none; b=sYcNA1Pa4x1d7vWZJgOj/tYqKE6qFAxe2+FNfNzhun30jkpjnJG7s3KwGpKCumIlnm3UD8+3v4CDR5uwyzHnZhECxOEnCi+0PmJYgFbAhMVKwupeYi1R7dSJpZdraRdO2frTaZDifFrBX4+NFMyQIbxkf1sRT4eE9OAPe3aWHPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331855; c=relaxed/simple; bh=eB27z1OMarn4s/z0WkEM6lHd1Hd/TZYlRFdHlMJUZxA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EFFFCFQIeZNAoZy6ScA/xk/OU5PKsLoUO/6IeQRDmZJLIDHhPReKjRxRWj4GTnhYvnQnE+u0l73bg3vFok2oRUV1bWhH7GyGJQuj6BDm1iqPz2NTAmOL8JsBxbQn5867E2OXyBXxY0BFIpWy0GMDqExbNoPmWro6q0ewd4mh6qY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QdyWJf0C; 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="QdyWJf0C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B1F61F000FF; Fri, 25 Sep 2026 10:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331854; bh=f7KC4uoYQYX7bV9ZDwmQmPgAgVh1rRx3+9JysvdvkCI=; h=From:To:Cc:Subject:Date:Reply-To; b=QdyWJf0CXtdarOCicP8FhQRMgnY6785/SEVLlvAONcSIhrdssoegHq6Vs1IvQIIvq nVhXMIBgVkZEcs0zbNtOWPBPNn/Sw6i8aIqIYLZ8/e9FMO6fFyLPwpISDv61mDH5l/ Ugfb1D86SAeygCeoDyRZ6o00wPeERf2sz1y4g4mY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97556: smb: client: avoid leaking refcount when cifs_sb_tlink() fails Date: Fri, 25 Sep 2026 12:22:16 +0200 Message-ID: <2026092551-CVE-2026-97556-ea0f@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=3326; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BOMSIy/ZRIRlKfvtuiqPrqzuhjxWsSDLuzZmDStAhBw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvO2/5HJlSmgemBt6r9/o9p20DNnZf6pNj/XtCu1Y0 HShSnBbRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkU4lhDmfAXNe/2eXSynpM lacPv12R8KX6LsP8sKjqNqkuGdGOJb27dsjvNXmveF4TAA== 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: avoid leaking refcount when cifs_sb_tlink() fails cifs_oplock_break() takes over the reference that cifs_queue_oplock_break() acquired when it queued the work, and drops it with _cifsFileInfo_put() once the break has been processed. Only in setups with "-o multiuser", cifs_sb_tlink() may fail, at which point cifs_oplock_break() returns without putting the file reference, mirroring the reference leak we already fixed in the companion patch to cifs_queue_oplock_break(). This would trigger a crash due to busy inodes on the next unmount: BUG: Dentry ... still in use (1) [unmount of cifs cifs] VFS: Busy inodes after unmount of cifs (cifs) Drop the reference on that path as well. Doing so before the out label mirrors the normal path, which also puts the reference before cifs_done_oplock_break(). Found by Sashiko code review. The failure path was not exercised at runtime. The Linux kernel CVE team has assigned CVE-2026-97556 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit e8f5f849ffce24490eb9449e98312b66c0dba76f and fixed in 6.12.111 with commit 9ec991e148368e3207e98134c509a625097f7693 Issue introduced in 6.5 with commit e8f5f849ffce24490eb9449e98312b66c0dba76f and fixed in 6.18.53 with commit dd03fd658ea59821505e0e643b6b7cbdf51c4e1d Issue introduced in 6.5 with commit e8f5f849ffce24490eb9449e98312b66c0dba76f and fixed in 7.2.7 with commit 1d1b0f1d812a4011a57bc6c70492c34a2e46c6dd Issue introduced in 6.5 with commit e8f5f849ffce24490eb9449e98312b66c0dba76f and fixed in 7.3-rc3 with commit 23b26f4408ac3f35a482d2e5cf6fc865d4201b71 Issue introduced in 5.15.128 with commit b99f490ea87ebcca3a429fd8837067feb56a4c7c Issue introduced in 6.1.47 with commit 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7 Issue introduced in 6.4.12 with commit 6b67a6d2e50634fe127e656147c81915955e9f5e 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-97556 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/file.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/9ec991e148368e3207e98134c509a625097f7693 https://git.kernel.org/stable/c/dd03fd658ea59821505e0e643b6b7cbdf51c4e1d https://git.kernel.org/stable/c/1d1b0f1d812a4011a57bc6c70492c34a2e46c6dd https://git.kernel.org/stable/c/23b26f4408ac3f35a482d2e5cf6fc865d4201b71