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 ADCA741CB31 for ; Fri, 25 Sep 2026 10:24:34 +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=1790331875; cv=none; b=clCK1My3lmMo8njk5RTdVntycwy/p8KdJDAz24+tpTxGrBWQ5/gp9YNn/ETqk00z3qbWARITgAJQYqftCcq6APssL8X8kDod+mmc4NPMbd0Y9lcGIavxl9lTf7IJ8ENYN5ahF/rtBYQ+OfhWnl7RVWEF3Iop8mpkZRtCZF8zroM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331875; c=relaxed/simple; bh=5w0qIzosjsXxI8LivxMdZ0q+DkAMrdtu3IAJ4WJ1Ips=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pWgjESkKB/oRLH/6VMMo9yXkXVvYBbyA2B5vMF+pCC2iv/bbNQyTnY43QRkgSuxzmovg/58cORPkmjKkKdbkPHhEc5EJP+KM2IJ5vAm66AMZOme32guVCH35cbmipMLpcBoYNcJrdAupIYccKwGJqL8/vcEFUnMz1XmkryJ8NGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rBb0DjQK; 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="rBb0DjQK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B1A91F000FF; Fri, 25 Sep 2026 10:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331874; bh=U+HHuXnXphLA9x9EHY76BbX2np0gY6QRKLgqiFYWMj4=; h=From:To:Cc:Subject:Date:Reply-To; b=rBb0DjQKKPxH80+TNwjH4ppgm7Kt9nYiEiYrO54brGzGmOvkDWGmyqnHS2FmlN2ZS Lwp3P+FoIJ7bNwYFWtEtCXRV/K8Ll4PvtN6TlgrTH6pR5mh8djRqNms9mo1z2X5csY HVCLgMOgCafoBoZZmUZ1p3kcQFClGg8irC+dKcSk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97562: smb: client: pin DFS superblock in iterator callback Date: Fri, 25 Sep 2026 12:22:22 +0200 Message-ID: <2026092553-CVE-2026-97562-0822@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=2818; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hlXWO8W72hDSRo8z71kniPD7w9oGf/IGjaIe3qvJ4Ek=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvB2vWRo7bphyNt9iw531bclznNIE3/8JjZO9/vMlY +Xtl1fvdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEAvYyLDg8y7R//U276pcG 3MLfVhwpc1vUZc6wYMLdTZqpf5KiS5dXrzmU8fN++cWI5QA= 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: pin DFS superblock in iterator callback tcon_super_cb() stores a raw superblock pointer, but __cifs_get_super() takes its active reference only after iterate_supers_type() has dropped s_umount and its passive reference. Concurrent DFS automount expiry can therefore free the superblock before cifs_sb_active() uses it. A deterministic KASAN test reproduces the race as: BUG: KASAN: slab-use-after-free in cifs_sb_active+0x77/0x80 The same test passes with this change applied. Take the active reference in the callback while iterate_supers_type() still holds s_umount shared. cifs_put_tcp_super() remains the matching release. The Linux kernel CVE team has assigned CVE-2026-97562 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit bacd704a95ad0b93af995aae4a523aa046f46563 and fixed in 6.12.111 with commit ea43a15cea36dc5ddd832be5bddeac7dd804cbcf Issue introduced in 5.7 with commit bacd704a95ad0b93af995aae4a523aa046f46563 and fixed in 6.18.53 with commit a6b6561522212af852c9ad8a7dca8d59ef2c7377 Issue introduced in 5.7 with commit bacd704a95ad0b93af995aae4a523aa046f46563 and fixed in 7.2.7 with commit 5b01a8c0209690db75341528ec53fd87e0ac1460 Issue introduced in 5.7 with commit bacd704a95ad0b93af995aae4a523aa046f46563 and fixed in 7.3-rc3 with commit d806d5a85dcbe2a0f181b2f0f9f61ddfbefa1818 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-97562 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/misc.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/ea43a15cea36dc5ddd832be5bddeac7dd804cbcf https://git.kernel.org/stable/c/a6b6561522212af852c9ad8a7dca8d59ef2c7377 https://git.kernel.org/stable/c/5b01a8c0209690db75341528ec53fd87e0ac1460 https://git.kernel.org/stable/c/d806d5a85dcbe2a0f181b2f0f9f61ddfbefa1818