Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 411611A4E9E for ; Tue, 20 May 2025 16:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756962; cv=none; b=g/ir9ev48YCR6NfgBPBOR3nI2Qn2aVXK9yqOPw3wGT59LsI6mMHoqMZQ5Ri6njfjPnrD5fW2sefNNHCnDXyfEuSwmMupGI03Zj/5GOTGXLsYcb3EphF1ofpsBr3j/CLDGMG5eS6c2YlOlDPNrNjU1InZ5tbLZr2yvn6uvQZPcPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756962; c=relaxed/simple; bh=cW+CLe97JJ3vRHMiGDAUNd5jANZsxpZS/Fa7C66WMV4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TGT8Cr+zAMf35nE6nnodzK/5405PCJ7D3OJDKsZkKd5OrK2kxSwI9aqlEU/ulSbJDvDJcbSkmAzXR9mdr/aoc07uAlh+HFLkCOZA/igVm9ZuqCLi06v6wAyDwSoB6V/2Zom7uFWVlBz8Vw/wtMrfvaZp6hcCa9FdlU5wYnabt5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1MHCQMDe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1MHCQMDe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8DF3C4CEE9; Tue, 20 May 2025 16:02:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756962; bh=cW+CLe97JJ3vRHMiGDAUNd5jANZsxpZS/Fa7C66WMV4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1MHCQMDeWRBg0R3NXXfnYuQrg7qKFRBSRr5vd2orrToxmS/MbL7Mu3dm6MtXSCavn ACBXGFuTEuuNul65VydJ/O3Cu8no2+0K7VBJeL9m5F7ObXsw+Is93fWl46C9RjycRK DemPd/7S6irlqvpjh+w5BoA4FIR37gASNzZrnK0g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37954: smb: client: Avoid race in open_cached_dir with lease breaks Date: Tue, 20 May 2025 18:02:08 +0200 Message-ID: <2025052002-CVE-2025-37954-6751@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2308; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zYK+ldIznY2TB2NRQ4kGf07mCwqeUenFV3ZBk45MROo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6y6tEWiUl3KQKrqU+SvK5et9KbMuES+5bTzOVlzA5S dvw18R0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwER+VjLMUz0UszyydtaP4DdG i831ludX+S08yzDPQPmgfKT0ilOfyx//doh8mnGpo2EqAA== 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 race in open_cached_dir with lease breaks A pre-existing valid cfid returned from find_or_create_cached_dir might race with a lease break, meaning open_cached_dir doesn't consider it valid, and thinks it's newly-constructed. This leaks a dentry reference if the allocation occurs before the queued lease break work runs. Avoid the race by extending holding the cfid_list_lock across find_or_create_cached_dir and when the result is checked. The Linux kernel CVE team has assigned CVE-2025-37954 to this issue. Affected and fixed versions =========================== Fixed in 6.6.91 with commit 2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9 Fixed in 6.12.29 with commit 571dcf3d27b24800c171aea7b5e04ff06d10e2e9 Fixed in 6.14.7 with commit 2407265dc32bc8cc45b62a612c2a214ba9038e8b Fixed in 6.15-rc6 with commit 3ca02e63edccb78ef3659bebc68579c7224a6ca2 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-2025-37954 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/cached_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/2ed98e89ebc2e1bc73534dc3c18cb7843a889ff9 https://git.kernel.org/stable/c/571dcf3d27b24800c171aea7b5e04ff06d10e2e9 https://git.kernel.org/stable/c/2407265dc32bc8cc45b62a612c2a214ba9038e8b https://git.kernel.org/stable/c/3ca02e63edccb78ef3659bebc68579c7224a6ca2