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 5F6AE2C15AB for ; Tue, 16 Sep 2025 13:01:04 +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=1758027664; cv=none; b=BWuw/MV/rRQdqaCDK06FF29djpXOZRKg9NqcClZjWqa97gqfUn5kUZvyDkWVJnu8fXIXMbyEfa9ewX3hkSNn70JM53FQBxGmhrCnDsiVRyPQpI9TsUWsLmKDBU/0Su1FeIIvlUd6H4MupvL57fiRgzKojfYHRQweFOU/9tP7x/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027664; c=relaxed/simple; bh=yDyapKgT3i88dV2Pl1mauSSOFZ0+ftxvKHdigmvwfbA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DQn1r3cr67AUdOYeGtBmR12ELMy2Enzah1+SCwRJrmFxStFOKu4IYF6wFAZicya7LKxCOtBN8LNIKOPwRmCQ3nkcTIhR3Bo3XQyP79w02LjQEfMevN4SZBBaILiJFlhvppM+J43FjNG2gf9t2sox9lVN0AxqaUwePegnya7W/3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y5t8PoNi; 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="y5t8PoNi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1FACC4CEEB; Tue, 16 Sep 2025 13:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758027664; bh=yDyapKgT3i88dV2Pl1mauSSOFZ0+ftxvKHdigmvwfbA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y5t8PoNi8/RaeQHm79uWbxn149O10TnSvriC/DKPZZVKXIyIj09msq5CIEP9rT/gG 4ATu4fmzZFx6NoqMFLDxVSTIQomsMlxluOQaaC3mMlzpv1/sVNxVDPiPmcNcVCG7dY B/mDn/wT1SxbJ+P2XeUjUKIBjLg/ArYUk/lDntQ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39825: smb: client: fix race with concurrent opens in rename(2) Date: Tue, 16 Sep 2025 15:00:31 +0200 Message-ID: <2025091616-CVE-2025-39825-8a7a@gregkh> X-Mailer: git-send-email 2.51.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=2469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=E+8Nk1yNC0k12nigZCDoHYIo3UheygOGXnfj6A0j2aA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn4xNecD/byaHdLsxycg/rwblnTnTsbCmaNlPqk2Cv/ ckdfleOdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE7AwYFuzfue+KNu+fiY71 Puk8eups3EslAxgWzNG02vc8J7IjQbCnsNV5XfTzm3ZNAA== 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: fix race with concurrent opens in rename(2) Besides sending the rename request to the server, the rename process also involves closing any deferred close, waiting for outstanding I/O to complete as well as marking all existing open handles as deleted to prevent them from deferring closes, which increases the race window for potential concurrent opens on the target file. Fix this by unhashing the dentry in advance to prevent any concurrent opens on the target. The Linux kernel CVE team has assigned CVE-2025-39825 to this issue. Affected and fixed versions =========================== Fixed in 6.1.150 with commit c9e7de284da0be5b44dbe79d71573f9f7f9b144c Fixed in 6.6.104 with commit 24b9ed739c8c5b464d983e12cf308982f3ae93c2 Fixed in 6.12.45 with commit c9991af5e09924f6f3b3e6996a5e09f9504b4358 Fixed in 6.16.5 with commit 289f945acb20b9b54fe4d13895e44aa58965ddb2 Fixed in 6.17-rc2 with commit d84291fc7453df7881a970716f8256273aca5747 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-39825 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/inode.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/c9e7de284da0be5b44dbe79d71573f9f7f9b144c https://git.kernel.org/stable/c/24b9ed739c8c5b464d983e12cf308982f3ae93c2 https://git.kernel.org/stable/c/c9991af5e09924f6f3b3e6996a5e09f9504b4358 https://git.kernel.org/stable/c/289f945acb20b9b54fe4d13895e44aa58965ddb2 https://git.kernel.org/stable/c/d84291fc7453df7881a970716f8256273aca5747